Twinkle HubTwinkle Hub

座標查最近 POI

tw_query_geo_theme_nearest

更多工具 · 同一族🇹🇼 台灣唯讀

座標 + theme_id → 最近 1 個 POI (GeoJSON Feature).

Args: theme_id: 從 list_geo_themes() 取得, e.g. 'o4XTdRod' 避難收容處所 / 'YoFiEKsY' 寺廟 / 'kJqZSMsB' 測速 / 'cOSQaz8H' 交通事故. lng / lat: WGS84. Returns: {found, theme_id, feature: GeoJSON {geometry, properties}}

典型問: 「我家最近的避難所」「101 大樓附近的寺廟」.

參數

參數型別說明
theme_id *string—
lng *number—
lat *number—
原始 JSON schema
{
  "properties": {
    "theme_id": {
      "title": "Theme Id",
      "type": "string"
    },
    "lng": {
      "title": "Lng",
      "type": "number"
    },
    "lat": {
      "title": "Lat",
      "type": "number"
    }
  },
  "required": [
    "theme_id",
    "lng",
    "lat"
  ],
  "title": "query_geo_theme_nearestArguments",
  "type": "object",
  "additionalProperties": false
}

呼叫​方式

起手式——參數見上表
tw_query_geo_theme_nearest({ theme_id: "…" })