geocode
Convert a place description or address into latitude and longitude coordinates to enable nearby location searches.
Instructions
Convert an address or place description to GPS coordinates.
Use this when a user describes their location (hotel name, landmark, street address) and you need coordinates for search_nearby.
Args: address: Address, place name, landmark, or location description. Examples: "Ferry Building San Francisco", "Eiffel Tower Paris", "Times Square New York"
Returns:
Dictionary with:
- formatted_address: The official address Google matched
- latitude: Latitude coordinate
- longitude: Longitude coordinate
- place_id: Google Place ID
Example: geocode("Ferry Building, San Francisco")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |