apoc.spatial.geocode
语法 |
|
||
描述 |
使用地理编码服务(默认:OpenStreetMap)返回给定地址的地理位置(纬度、经度和描述)。 |
||
输入参数 |
名称 |
类型 |
描述 |
|
|
要搜索的位置。 |
|
|
|
返回结果的最大数量。默认值为: |
|
|
|
当达到最大请求配额时是否抛出异常。默认值为: |
|
|
|
|
|
返回参数 |
名称 |
类型 |
描述 |
|
|
找到位置的详细信息映射。 |
|
|
|
从给定提供商返回的数据映射。 |
|
|
|
找到位置的纬度。 |
|
|
|
找到位置的经度。 |
|
|
|
找到位置的描述。 |
|
使用示例
CALL apoc.spatial.geocode('Union House, London');
| location | data | latitude | longitude | description |
|---|---|---|---|---|
{description: "Union House, 182-194, Union Street, Bankside, Southwark, London Borough of Southwark, London, Greater London, England, SE1 0LR, United Kingdom", latitude: 51.503819199999995, longitude: -0.10101882640252435} |
{osm_type: "way", osm_id: 77765231, licence: "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", boundingbox: ["51.5037439", "51.5038945", "-0.1013092", "-0.1007285"], importance: 0.31100000000000005, lon: "-0.10101882640252435", display_name: "Union House, 182-194, Union Street, Bankside, Southwark, London Borough of Southwark, London, Greater London, England, SE1 0LR, United Kingdom", type: "yes", class: "building", place_id: 104116750, lat: "51.503819199999995"} |
51.503819199999995 |
-0.10101 882640252435 |
"Union House, 182-194, Union Street, Bankside, Southwark, London Borough of Southwark, London, Greater London, England, SE1 0LR, United Kingdom" |
{description: "Union House, Shepherds Bush Green, Brook Green, London Borough of Hammersmith and Fulham, London, Greater London, England, W12 7DP, United Kingdom", latitude: 51.504723, longitude: -0.2249915937565324} |
{osm_type: "way", osm_id: 159245997, licence: "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", boundingbox: ["51.5045808", "51.5048507", "-0.2251614", "-0.2248218"], importance: 0.31100000000000005, lon: "-0.2249915937565324", display_name: "Union House, Shepherds Bush Green, Brook Green, London Borough of Hammersmith and Fulham, London, Greater London, England, W12 7DP, United Kingdom", type: "yes", class: "building", place_id: 123432321, lat: "51.504723"} |
51.504723 |
-0.22499 15937565324 |
"Union House, Shepherds Bush Green, Brook Green, London Borough of Hammersmith and Fulham, London, Greater London, England, W12 7DP, United Kingdom" |
{description: "Union House, 6, Martin Lane, Bishopsgate, City of London, Greater London, England, EC4R 0DP, United Kingdom", latitude: 51.510519, longitude: -0.08806049069724674} |
{osm_type: "way", osm_id: 809354346, licence: "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", boundingbox: ["51.5104519", "51.5106113", "-0.0882068", "-0.0878968"], importance: 0.30100000000000005, lon: "-0.08806049069724674", display_name: "Union House, 6, Martin Lane, Bishopsgate, City of London, Greater London, England, EC4R 0DP, United Kingdom", type: "commercial", class: "building", place_id: 289689410, lat: "51.510519"} |
51.510519 |
-0.08806 049069724674 |
"Union House, 6, Martin Lane, Bishopsgate, City of London, Greater London, England, EC4R 0DP, United Kingdom" |