Reverse geocode GPS to address
bus_reverse_geocodeConvert WGS-84 latitude/longitude coordinates into a Chinese postal address with province, city, district, township, and formatted address, plus citycode and adcode for use in other tools.
Instructions
Convert WGS-84 lat/lng to a Chinese postal address (province, city, district, township, formatted address).
Useful when you have raw GPS coordinates and need a human-readable place name, or the citycode/adcode to pass to other tools.
Args:
lat (string, required): WGS-84 latitude, decimal, e.g. '31.230416'
lng (string, required): WGS-84 longitude, decimal, e.g. '121.473701'
response_format ('markdown' | 'json')
Returns (json): { "formatted": "上海市黄浦区...", "province": "上海市", "city": "上海市", "district": "黄浦区", "township": "南京东路街道", "citycode": "021", "adcode": "310101" }
For municipalities (Shanghai/Beijing/Tianjin/Chongqing) the upstream emits an empty 'city' value; this tool back-fills it with 'province' so the field is always a usable string.
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": {
"lat": "<lat>",
"lng": "<lng>"
},
"name": "bus_reverse_geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude, WGS-84, e.g. '31.230416' | |
| lng | Yes | Longitude, WGS-84, e.g. '121.473701' | |
| response_format | No | Output format: 'markdown' for human-readable text, 'json' for full structured data | markdown |