Skip to main content
Geocode API converts a place name or address into coordinates. Send free-form text like Marina Bay Sands, Singapore, or a structured address with typed components; results come back ordered by relevance, each with lon/lat that plug directly into the coordinates of Directions and the other routing APIs.

Endpoint

Quickstart

Request Parameters

Search input

Exactly one of text or the structured fields is required. Structured fields that are empty are ignored — the API only sees what you provide.

Response options

Examples

Response

response-example.json

Response fields

Scores how well a result matches the query:
timezone has name (IANA name), offset_STD/offset_DST (+08:00-style) and their *_seconds equivalents. bbox is the place’s bounding box as [lon1, lat1, lon2, lat2], useful for centering a map view.
Geocode results use the same lng,lat order as the routing APIs — paste lon,lat straight into coordinates. See Coverage for the countries served.

Errors

Recipes

  • Geocode → route: results[0].lon / results[0].lat are already in lng,lat order — drop them into /route/v1/driving/{lng},{lat} or an SDK RouteRequest(origin=[lon, lat])
  • Disambiguate common names: prefer the structured form with city + country — they are the strongest disambiguators
  • Pin results to one country: filter=countrycode:sg; see Coverage for supported codes

Directions

Route between the coordinates you just geocoded

Nearest

Snap a coordinate to the road network

Fleet Optimization

VROOM vehicle routing with time windows and capacity