Geocode a place or address
geocodeConvert a place name or address into geographic coordinates. Choose Nominatim for precise addresses or Photon for fuzzy place names to retrieve matching locations with latitude, longitude, and OSM identifier.
Instructions
Converts a place name or address into coordinates using OpenStreetMap. Returns matching places with lat/lon, a display label and the OSM id. Provider "nominatim" (default) is best for addresses; "photon" is typo-tolerant and better for fuzzy place names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results, default 3 | |
| query | Yes | Place name or address | |
| language | No | Language for place names (IETF code like "en" or "de"), default "en" | |
| provider | No | Geocoder to use, default nominatim | |
| countrycodes | No | Restrict to countries: comma-separated ISO 3166-1 alpha-2 codes, e.g. "de,lu" (Nominatim only) |