Reverse Geocode a Coordinate and Discover What Is Around It
A 2-step recipe with Google Maps Platform. We can help you get access.
Recipe · 2 steps
Reverse Geocode a Coordinate and Discover What Is Around It
with Google Maps Platform
Resolve a coordinate to an address and enumerate the places surrounding it.
- Convert the raw coordinate into an address. The location_type output is the honest quality signal here - ROOFTOP is an exact fix while APPROXIMATE means the address is a neighbourhood-level guess and should be labelled as such.
- List the places around the geocoder's snapped coordinate, ranked by distance. The Geocoding API's lat/lng are remapped onto the Places API's latitude/longitude circle centre - the two services name these fields differently and passing them
What you'll need to have ready
- latitude: Latitude of the coordinate to reverse geocode.
- longitude: Longitude of the coordinate to reverse geocode.
- apiKey: Google Maps Platform API key. The Geocoding API takes the key as the required `key` query parameter; the Places API takes it as the X-Goog-Api-Key header applie
- resultType: Pipe-separated address types to filter reverse geocoding results by (e.g. "street_address|route").
- language: Language in which to return the geocoding results (e.g. "en").
- radiusMeters: Radius in metres of the circle to search for surrounding places.
- includedTypes: Place types to include in the surroundings scan.
- searchFieldMask: Comma-separated fields for the nearby search response.
- languageCode: BCP-47 language code for place results (e.g. "en").
- regionCode: CLDR region code used to bias place results (e.g. "US").
For your developer
Arazzo workflow google-maps:reverse-geocode-to-nearby, 2 operations: geocode → searchPlacesNearby. Specs on APIs.io.