Nominatim · Example Payload

Nominatim Lookup Example

GeocodingOpenStreetMapMapsLocationServicesOpenSourcePublic APIs

Nominatim Lookup Example is an example object payload from Nominatim, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "https://nominatim.openstreetmap.org/lookup?osm_ids=R146656,W104393803,N240109189&format=jsonv2&addressdetails=1",
    "headers": {
      "User-Agent": "my-geocoding-app/1.0 (contact@example.com)",
      "Accept": "application/json"
    }
  },
  "response": [
    {
      "place_id": 257803017,
      "licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
      "osm_type": "relation",
      "osm_id": 146656,
      "lat": "53.4791301",
      "lon": "-2.2447149",
      "category": "boundary",
      "type": "administrative",
      "place_rank": 16,
      "importance": 0.71614935,
      "addresstype": "city",
      "name": "Manchester",
      "display_name": "Manchester, Greater Manchester, England, United Kingdom",
      "address": {
        "city": "Manchester",
        "county": "Greater Manchester",
        "state": "England",
        "country": "United Kingdom",
        "country_code": "gb"
      },
      "boundingbox": ["53.3401354", "53.5445408", "-2.3199438", "-2.1469829"]
    }
  ]
}