Twinkle HubTwinkle Hub
Sign in

📌 2026-06-30 added: 🎓 Teacher exam dual corpus — 12,731 qualification questions + 2,421 recruitment questions (519 datasets)

View full changelog →

Lookup district code by coord

twtools-lookup_district_by_coord

TW-specificMIT

座標 → 行政區代碼 (縣市/鄉鎮市區/村里).

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.

Input 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"
}

How to call

Once your Twinkle Hub MCP client is configured, your agent will see twtools-lookup_district_by_coord. Just ask it to call — example:

# Ask Claude / any MCP client:
請用 twtools-lookup_district_by_coord 處理 "…"。

# It will call:
twtools-lookup_district_by_coord(input="…")

Haven't set up a client yet?

Claude Desktop in 3 minutes — download the .mcpb and double-click, or see docs for other clients.

See user docs