geocode
Convert a place name to WGS84 latitude and longitude coordinates for use in mapping and spatial analysis.
Instructions
Forward geocode a place name to a WGS84 coordinate (decimal degrees).
Units: latitude/longitude in decimal degrees. Example: geocode(query="KL Sentral") -> GeoPoint(lat=3.1355, lon=101.7044)
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": {
"query": "<query>"
},
"name": "geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude in decimal degrees [-90, 90]. | |
| lon | Yes | Longitude in decimal degrees [-180, 180]. |