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")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |