GoGoDuk

GET /v1/reverse

Proximity-based reverse geocoding.

Returns the places nearest to a coordinate.

Required scope: geocoding:read

Request

GET /v1/reverse?point.lat=10.7769&point.lon=106.7009
X-API-Key: gdk_live_xxxxxxxxxxxxxxxxxxxxxxxx
curl -G "https://api.gogoduk.com/v1/reverse" \
-H "X-API-Key: $GOGODUK_API_KEY" \
--data-urlencode "point.lat=10.7769" \
--data-urlencode "point.lon=106.7009"

Query parameters

NameRequiredDescription
point.latyesLatitude in decimal degrees.
point.lonyesLongitude in decimal degrees.
sizenoMax results, 1–5. Default 1.
boundary.circle.radiusnoSearch radius in km. Default 0.05, capped at 0.1.
langnoLanguage code, default vi.
boundary.countrynoComma-separated ISO codes (VN,TH).

Response

{
  "results": [
    {
      "place_id": "ChIJO3p-WAAvdTER8L3Uli6PgXM",
      "address": "114 Nguyễn Huệ, Bến Nghé, Quận 1, Thành phố Hồ Chí Minh, Vietnam",
      "lat": 10.7768196,
      "lon": 106.7009035,
      "district": "Phường Sài Gòn",
      "city": "Thành phố Hồ Chí Minh",
      "country": "VN",
      "confidence": 1,
      "distance_km": 0.0089
    }
  ]
}

Response fields

FieldTypeDescription
results[].place_idstringPlace identifier. Note: snake_case here for historical reasons.
results[].addressstringFull formatted address.
results[].latnumberLatitude.
results[].lonnumberLongitude.
results[].districtstringWard / district. May be null.
results[].citystringCity / province. May be null.
results[].countrystringISO alpha-2 country code.
results[].confidencenumber0..1 match confidence.
results[].distance_kmnumberDistance from the query point.

Common errors

  • 400 BAD_REQUEST — missing point.lat / point.lon.
  • 401 INVALID_API_KEY / 403 INSUFFICIENT_SCOPE — auth/scope failure.
  • 503 — service unavailable.

On this page