geocode
Convert a location query into latitude, longitude, and address details via the Nominatim (OpenStreetMap) API.
Instructions
Forward geocode a location query using the Nominatim (OpenStreetMap) API. Returns latitude, longitude, and address details for matching places.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Free-form search query, e.g. '221B Baker Street, London' | |
| limit | No | Maximum number of results to return (1-40, default 5) | |
| bounded | No | Restrict results to within the viewbox (requires viewbox) | |
| viewbox | No | Bounding box to boost results: 'x1,y1,x2,y2' (min_lon,min_lat,max_lon,max_lat) | |
| countrycodes | No | Comma-separated ISO 3166-1 alpha-2 country codes to filter results, e.g. 'gb,us' | |
| addressdetails | No | Include structured address breakdown in results (default true) |