amap_geocode
Convert addresses to geographic coordinates and reverse geocode coordinates to structured addresses. Use it to obtain start and end points before planning a route.
Instructions
地址 ↔ 经纬度互转。传入 address 将地址解析为经纬度;传入 location(lng,lat)做逆地理编码返回结构化地址。做任何路径规划前,先用此工具获取起点/终点的坐标。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "amap_geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | 城市,缩小搜索范围,如「北京」 | |
| address | No | 结构化地址,如「北京市朝阳区阜通东大街6号」 | |
| location | No | 经纬度(lng,lat),做逆地理编码时使用,如「116.481488,39.990464」 |