geocode
Parse structured addresses to geographic coordinates. Optionally specify city to improve accuracy.
Instructions
将结构化地址解析为经纬度坐标,例如 '北京市朝阳区望京 SOHO' → location 'lng,lat'。
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 |
|---|---|---|---|
| city | No | 可选,指定查询城市以提高准确度,例如 '北京' | |
| address | Yes | 待解析的结构化地址,例如 '北京市朝阳区望京 SOHO' |