Install
openclaw skills install geocodeReverse geocode latitude/longitude to a human-readable region using geocode.com.cn. Triggers on reverse geocode, lat/lng, latitude/longitude, coordinates to address, 经纬度转地址, 坐标查地点.
openclaw skills install geocodeResolve coordinates back to a place name.
Provider: https://geocode.com.cn via curl.
Current root response behavior:
GET https://geocode.com.cn/ without params returns 400 Bad Requesthttps://geocode.com.cn/?lat=39.9042&lon=116.4074{baseDir}/scripts/geocode.sh hint
{baseDir}/scripts/geocode.sh reverse 32.9042 110.805 --lang zh-CN
{baseDir}/scripts/geocode.sh reverse 37.819929 -122.478255 --lang en
goplacesGET /?lat=<latitude>&lon=<longitude>.accept-language may still be passed, but the documented contract on the site only guarantees lat and lon.GEOCODE_BASE_URL optionally points at another endpoint for testing or self-hosting.GEOCODE_USER_AGENT overrides the default identifying User-Agent.User-Agent; do not use default curl UA for repeated calls.{baseDir}/scripts/geocode.sh reverse 32.9042 110.805 --lang zh-CN
{baseDir}/scripts/geocode.sh reverse 37.819929 -122.478255 --lang en
curl --get 'https://geocode.com.cn/' \
-A 'openclaw-geocode-skill/1.0 (interactive use)' \
--data 'lat=32.9042' \
--data 'lon=110.805'
{baseDir}/scripts/geocode.sh hint
curl -iL 'https://geocode.com.cn/'
Current response body:
{
"demo": "https://geocode.com.cn/?lat=25.7433&lon=123.4733",
"zh": ["国家/地区", "省", "市", "县", "乡镇/街道"],
"en": ["Country", "admin1", "admin2", "", "name"]
}
Successful responses return a compact JSON array, not an object. The root hint now documents five display fields instead of the old six-field output description.
Fixed order mapping:
0: Country / 国家/地区1: admin1 / 省2: admin2 / 市3: county-level field when present / 县4: name / 乡镇/街道Example:
["CN", "Taiwan Province", "Yilan County", "Toucheng Township", ""]
name, county, admin2, and admin1name slot over water or remote areascurl only.search is intentionally unsupported because geocode.com.cn explicitly says it only supports GET /?lat=<latitude>&lon=<longitude>.