v1

latestOpenAPI 3.0.32026-07-1761214.3 KB
Geocoding

Combined forward + reverse geocoding

Unified entrypoint that auto-routes to forward or reverse:

  • ?q=… (with optional lat,lon for proximity bias) → forward search.
  • ?lat=&lon= only → reverse geocode.

Internally calls the same orchestrators as /api/v1/search and /api/v1/reverse.

get/api/v1/geocode

Query parameters

qstring
latnumber double
lonnumber double
limitinteger
langstring

Response

reverse result

Example response

{
  "data": {
    "id": "node:240109189",
    "name": "Berlin",
    "label": "Berlin, Germany",
    "type": "city",
    "coords": {
      "lat": 52.52,
      "lon": 13.405
    },
    "admin": {
      "country": "Germany",
      "state": "Berlin",
      "city": "Berlin"
    }
  },
  "meta": {
    "upstream": "ok",
    "count": 5
  }
}
All 6 operations