logoSpatial Topology

venue

撰寫 venue.geojson

venue.geojson 是一個描述場域範圍的 GeoJSON 檔案,其中的座標圍出了該場域在空間中的幾何形狀。如果在同一個 venue 中有多個建築,範圍就必須包含所有建築。以陽交大為例的話,因為學校裡有多個建築,因此 venue 畫的範圍實際上是整個校區,而不是單一棟建築個別的多邊形組合成的MultiPolygon

要注意填寫的欄位包含以下幾個:

PropTypeDefault
geometry?
polygon
-
address_id?
string
e.g. "b2c99096-281b-4d6e-b8c9-8042a264609b"
coordinates?
array
e.g. [121.5158815, 25.1228118]
website?
string
e.g. "https://nycu.edu.tw/"
phone?
string
e.g. "+886228267000"
hours?
string
e.g. "Mo-Fr 09:00-17:00"
name?
string
e.g. { "en": "National Yang Ming Chiao Tung University - Yangming Campus", "zh": "國立陽明交通大學 - 陽明校區" }
category?
string
e.g. university, hospital, etc.
id?
string
uuid v4
venue.geojson
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "id": "ddebcd0e-d79f-4e86-8d93-705f55d8a977",
      "feature_type": "venue",
      "properties": {
        "category": "businesscampus",
        "restriction": null,
        "name": {"en": "STO HQ Office", "zh": "STO 總辦公室"},
        "alt_name": null,
        "hours": "Mo-Fr 09:00-18:00",
        "phone": "+886225099905",
        "website": "https://www.spatial-topology.com/",
        "display_point": {
          "type": "Point",
          "coordinates": [121.5572281, 25.0345613]
        },
        "address_id": "becf9d88-b4f3-4a4b-8e05-d8615407d023"
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [121.5572099, 25.0346744],
            [121.5572088, 25.0346449],
            [121.5570939, 25.0346471],
            [121.5570912, 25.0344727],
            [121.5571986, 25.034471],
            [121.5571979, 25.0344369],
            [121.5573424, 25.0344351],
            [121.5573474, 25.0346723],
            [121.5572099, 25.0346744]
          ]
        ]
      }
    }
  ]
}

多個建築的 venue 進到 IMDF Sandbox 後如下圖所示: venue-multi-buildings

決定 venue.geojson 的形狀以及座標

因為 venue.geojson 用來描述場域範圍,因此只要形狀與實際上差不多,並且確認包含每棟建築物即可。
使用 geojson.io 來繪製 venue.geojson,並且確認每個建築物都在 venue.geojson 的範圍內。畫完就可以馬上得到 venue.geojson 的座標描述,再拿去給 ChatGPT 轉換成 IMDF 格式即可。 draw-venue

建議使用單一 polygon 描述 venue

基於陽交大交大校區的 geo-referencing 的報告,建議使用單一 polygon 描述 venue,並確保 venue 涵蓋所有建築物。 venue-advise 例如:官方範例中的維多利亞機場的 venue.geojson 就使用一個 polygon 描述整個機場範圍(藍框範圍),而不是分成多個建築物的區域。 victoria-airport