focus_lat+focus_lon, or restrict to specific countries with country (comma-separated ISO 3166-1 alpha-3 codes). Supply focus_lat+focus_lon whenever you have any spatial context — a visible viewport, a previous result, a known anchor. Common place names like “Cambridge”, “Bath”, or “Lebanon” exist in several countries; a focus point picks the one the user means.
Example prompts
- “Where is Buckingham Palace?”
- “Find the coordinates for 10 Downing Street, London”
- “Geocode ‘Empire State Building’ and tell me the lat/lng”
- “What are the coordinates for Springfield? I mean the one in Illinois.”
What you get back
A list of matching locations, each with coordinates (lat/lng), a full label, country, region, district (borough or municipality, e.g. “City of Westminster”), locality, optional confidence score (omitted when 1.0; present when below), and the result type (venue, address, street, locality, etc.). When all results share the same country / country_code / region, those fields are hoisted to a top-levelcontext object so they aren’t repeated on every result. Read shared admin from context, per-result variation from results[i].
Tips for landmark queries
- Qualify with city context.
"Big Ben, London"resolves much more reliably than"Big Ben"alone — the comma form lets the parser treat the city as administrative context. - Plain street addresses don’t need extra context —
"10 Downing Street, London"is enough.
Map rendering
Responses include arender envelope with a point layer for the matched candidates (per-feature properties carries name, label, place_type, confidence). Pass compact: true for summary-only responses. See response defaults & controls and render envelopes.