logoSpatial Topology

address

撰寫 address.geojson

address.geojson 是一個包含地址資訊的 GeoJSON 檔案,其格式如下:

PropTypeDefault
postal_code_vanity?
null or STRING
null
postal_code_ext?
null or STRING
null
postal_code?
null or STRING
e.g. "112304"
country?
null or ISO 3166
e.g. "TW"
province?
null or ISO 3166-2
e.g. "TW-TPE"
locality?
null or STRING
e.g. "Taipei City"
unit?
null or STRING
null
address?
null or STRING
e.g. "No. 155, Sec. 2, Linong St., Beitou Dist., Taipei City 112304, Taiwan"
id?
string
uuid v4
address.geojson
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "id": "8fe6c935-f94d-40d2-9cd6-1b897ae25615",
      "feature_type": "address",
      "properties": {
        "address": "9F, No. 556, Guangfu S. Rd., Da'an Dist., Taipei City 106, Taiwan",
        "unit": null,
        "locality": "Taipei City",
        "province": "TW-TPE",
        "country": "TW",
        "postal_code": "106",
        "postal_code_ext": null,
        "postal_code_vanity": null
      },
      "geometry": null
    }
  ]
}

實際上要做的就只有填寫 idaddresslocalityprovincecountrypostal_code 這幾個欄位,其他欄位可以留空 (null)。如果在 venue 中有填寫網站,要確認這邊的地址與網站的地址是一致的。 地址可以去郵局網站翻譯成英文,注意格式要符合 GeoJSON 的規範就可以。