座標查行政區代碼
tw_lookup_district_by_coord
台灣專屬MIT
座標 → 行政區代碼 (縣市/鄉鎮市區/村里).
Args:
lng / lat: WGS84.
unit: 'county' / 'town' / 'village' (default).
Returns: {found, result: [{countyid, countycode, countyname,
townid, towncode, townname,
villcode, villname}]}
關鍵: 之前 hub geo_basemap join_keys「行政區代碼」95.9% phantom,
本 tool 補完: 點位 dataset (lat/long) → 行政區代碼 → 跨 dataset join.輸入 schema
{
"properties": {
"lng": {
"title": "Lng",
"type": "number"
},
"lat": {
"title": "Lat",
"type": "number"
},
"unit": {
"default": "village",
"enum": [
"county",
"town",
"village"
],
"title": "Unit",
"type": "string"
}
},
"required": [
"lng",
"lat"
],
"title": "lookup_district_by_coordArguments",
"type": "object"
}呼叫方式
配置好 Twinkle Hub 的 MCP client 後,agent 會看到 tw_lookup_district_by_coord。直接讓它呼叫即可,例如:
# Ask Claude / any MCP client: 請用 tw_lookup_district_by_coord 處理 "…"。 # It will call: tw_lookup_district_by_coord(input="…")
尚未設定 Client?
Claude Desktop 約 3 分鐘即可完成設定 — 下載 .mcpb 檔案並雙擊即可,或參閱文件中的各 Client 安裝步驟。
查看使用者設定文件