apoc.spatial.reverseGeocode

Procedure APOC Core

apoc.spatial.reverseGeocode(latitude,longitude) YIELD location, latitude, longitude, description - look up address from latitude and longitude from a geocoding service (the default one is OpenStreetMap)

Signature

apoc.spatial.reverseGeocode(latitude :: FLOAT?, longitude :: FLOAT?, quotaException = false :: BOOLEAN?) :: (location :: MAP?, data :: MAP?, latitude :: FLOAT?, longitude :: FLOAT?, description :: STRING?)

Input parameters

Name Type Default

latitude

FLOAT?

null

longitude

FLOAT?

null

quotaException

BOOLEAN?

false

Output parameters

Name Type

location

MAP?

data

MAP?

latitude

FLOAT?

longitude

FLOAT?

description

STRING?

Usage Examples

CALL apoc.spatial.reverseGeocode(51.5074, 0.1277);
Table 1. Results
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"