Nominatim API
ENDPOINTS
/nominatim/geocodeCity Geocode
Geocode any city name to coordinates, bounding box, and full GeoJSON boundary polygon using Nominatim.
QUERY PARAMS
City name to geocode.
State or province name for disambiguation.
ISO 3166-1 alpha-2 country code (e.g., us, jp, gb).
{
"name": "San Francisco",
"type": "administrative",
"class": "boundary",
"osm_id": 111968,
"geojson": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-123.173825,
37.775727
],
[
-123.156757,
37.73784
],
[
-123.126114,
37.71673
],
[
-123.09285,
37.713688
],
[
-123.068589,
37.673041
],
[
-123.040696,
37.650328
],
[
-122.986747,
37.641783
],
[
-122.963006,
37.651984
],
[
-122.941364,
37.67658
],
[
-122.935865,
37.702459
],
[
-122.949985,
37.732187
],
[
-122.9945311,
37.7692015
],
[
-123.033841,
37.778375
],
[
-123.043,
37.7947642
],
[
-123.070494,
37.81383
],
[
-123.1050169,
37.823106
],
[
-123.132272,
37.819676
],
[
-123.166012,
37.796885
],
[
-123.173825,
37.775727
]
]
],
[
[
[
-122.6162066,
37.8153638
],
[
-122.588174,
37.789362
],
[
-122.5754041,
37.7082697
],
[
-122.2814578,
37.7082002
],
[
-122.3466351,
37.8108018
],
[
-122.37382,
37.8835693
],
[
-122.4321472,
37.9296678
],
[
-122.418742,
37.8525993
],
[
-122.4993053,
37.8199182
],
[
-122.5181854,
37.8253886
],
[
-122.5280478,
37.8152301
],
[
-122.6162066,
37.8153638
]
]
]
]
},
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
"osm_type": "relation",
"place_id": 324244721,
"importance": 0.780971280931417,
"place_rank": 12,
"addresstype": "city",
"boundingbox": [
"37.6403143",
"37.9296678",
"-123.1738250",
"-122.2814578"
],
"center_point": {
"latitude": 37.7879363,
"longitude": -122.4075201
},
"display_name": "San Francisco, California, United States"
}