apoc.spatial.reverseGeocode
语法 |
|
||
描述 |
使用地理编码服务(默认:OpenStreetMap)从给定的地理位置(纬度、经度)返回文本地址。此过程最多返回一个结果。 |
||
输入参数 |
名称 |
类型 |
描述 |
|
|
位置的纬度。 |
|
|
|
位置的经度。 |
|
|
|
达到最大请求配额时是否抛出异常。默认为: |
|
|
|
|
|
返回参数 |
名称 |
类型 |
描述 |
|
|
找到位置的详细信息映射。 |
|
|
|
从给定提供商返回的数据映射。 |
|
|
|
找到位置的纬度。 |
|
|
|
找到位置的经度。 |
|
|
|
找到位置的描述。 |
|
使用示例
CALL apoc.spatial.reverseGeocode(51.5074, 0.1277);
| location | data | latitude | longitude | description |
|---|---|---|---|---|
{description: "Crossway, London Borough of Bexley, London, Greater London, England, SE28 8NH, United Kingdom", latitude: 51.50743369498096, longitud e: 0.1274535888695359} |
{country: "United Kingdom", country_code: "gb", road: "Crossway", city: "London", state_district: "Greater London", postcode: "SE28 8NH", state: "England", city_district: "London Borough of Bexley"} |
51.50743369498096 |
0.1274535888695359 |
"Crossway, London Borough of Bexl ey, London, Greater London, England, SE28 8NH, United Kingdom" |