GET/v1/utils/geocode
Resolve a city or place name to latitude, longitude, and timezone
Resolve a city or place name to coordinates and timezone. Returns up to {limit} matches. When a query is ambiguous (e.g. 'Fatehabad' exists in multiple states), multiple results are returned so the developer can present a disambiguation UI or use the first result. Examples: ?q=Mumbai, ?q=Rome Italy, ?q=New York USA, ?q=London UK Pass state/country for precise results: ?q=Fatehabad,Haryana or ?q=Fatehabad&country=in
Request parameters
qrequired
string
City or location name. Use comma for disambiguation: 'Fatehabad,Haryana'
limitoptional
integer
Maximum results to return
countryoptional
string | null
ISO country code to narrow results, e.g. 'in', 'us'
Response fields
success
boolean
True if the request succeeded
message
string
Human-readable status message
data
object
data.query
string
The search query as received.
data.count
integer
Number of results returned.
data.ambiguous
boolean
True if multiple locations matched the query.
data.results
array[object]
List of matching locations.
data.results[].label
string
Human-readable location label.
data.results[].city
string | null
City name.
data.results[].state
string | null
State or region.
data.results[].country
string | null
Country name.
data.results[].latitude
number
Latitude in decimal degrees.
data.results[].longitude
number
Longitude in decimal degrees.
data.results[].timezone
string
IANA timezone identifier.
data.results[].place_id
string
Nominatim place ID.
data.tip
string | null
Disambiguation hint when ambiguous is True.
Errors
Missing or invalid API key.
Upstream ephemeris service error.
Reserved; product endpoints are not feature-gated by plan (quota differs by tier).
Unexpected server error.
Too many requests in a short window.
Request body exceeds the size limit.
Referenced resource was not found.
Request body failed schema validation.