Twinkle HubTwinkle Hub

座標查最近 POI

tw_query_geo_theme_nearest

Autres outils · 26 outils🇹🇼 Taïwanlecture seule

座標 + 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 大樓附近的寺廟」.

Paramètres

NomTypeDescription
theme_id *string
lng *number
lat *number
Schéma JSON brut
{
  "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"
}

Comment appeler

Amorce — paramètres dans le tableau
tw_query_geo_theme_nearest({ theme_id: "…" })