Reverse geocode GPS to address
bus_reverse_geocodeConvert WGS-84 latitude and longitude to a full Chinese postal address with province, city, district, township, and administrative codes.
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.
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 |