Skip to content

Reverse Geocoding

Reverse geocoding enumerates the features nearest to a latitude/longitude pair. Use it to name map clicks, convert GPS traces into addresses, or infer hierarchy metadata from telemetry.

Try it: GET /reverse
NameRequiredDescription
point.lat, point.lonYesCoordinates to resolve. Latitudes must be between -90 and 90, longitudes between -180 and 180.
sizeNoNumber of candidates to return (1–40, default 10).
boundary.circle.radiusNoSearch radius in kilometers (0.1–5). Defaults to 1 km and caps at 5 km.
boundary.country, boundary.gidNoRestrict results to ISO-3166 codes or a Pelias gid ancestor.
sources, layersNoFilter responses to specific data providers or feature layers.
  • Tighten boundary.circle.radius to avoid city-level results when users expect the nearest address.
  • Provide both sources and layers when you only trust certain datasets for address-level accuracy.
  • Thin the candidate list with size=1 or size=3 to cut response times for high-volume workloads.
  • Use boundary.gid when you already know the containing administrative boundary from a previous query.
Terminal window
curl -s -G 'https://api-na.geobridge.io/v1/reverse' \
-H 'Accept: application/json' \
-H "X-API-Key: ${GEOBRIDGE_API_KEY}" \
--data-urlencode 'point.lat=48.858268' \
--data-urlencode 'point.lon=2.294471' \
--data-urlencode 'size=3' \
--data-urlencode 'layers=address'

Reverse geocoding also returns a GeoJSON FeatureCollection. Each feature.properties record includes a distance field (kilometers) describing how far the result is from the query point and a confidence score to help you reject weak matches.

  • Invalid coordinates trigger an HTTP 400 response. Validate inputs before calling the API to avoid productive retries.
  • Requests that exceed the five kilometer radius ceiling are coerced to 5 km and emit a Pelias warning in the geocoding metadata. Inspect geocoding.warnings during debugging.
  • Timeouts (HTTP 408) and transient server errors (HTTP 5xx) are safe to retry with exponential backoff.