maps_geocode
Convert an address into coordinates, normalized address components, place ID, and viewport. Use component filters to resolve ambiguous addresses. Empty results indicate zero matches, not an error.
Instructions
Convert an address into coordinates, plus the normalised address components, place ID and viewport. Narrow ambiguous addresses with components, e.g. "country:CH". An empty results array means ZERO_RESULTS, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bounds | No | Optional viewport bias "swLat,swLng|neLat,neLng". | |
| region | No | CLDR region code biasing the result, e.g. "ch". | |
| address | Yes | Address or place name to locate, e.g. "Bundesplatz 3, 3005 Bern, Switzerland". | |
| language | No | ISO 639 language code for the formatted address. | |
| components | No | Optional component filter narrowing the search, e.g. "country:CH" or "country:CH|postal_code:3033". Useful when the same street name exists in several countries. |