g0v / addressbook.parser

Taiwan government addressbook parser
15 stars 3 forks source link

單位的歷史記錄 #22

Closed Superbil closed 10 years ago

Superbil commented 11 years ago

對於單一 organiztion 提供歷史記錄

像是可查詢這個機關以前的名稱

Superbil commented 10 years ago

在 Spec 中的 other_name 可以用來表示舊的名稱

example is come from here

{
  "id": "abc-inc",
  "name": "ABC, Inc.",
  "other_names": [
    {
      "name": "Bob's Diner",
      "start_date": "1950-01-01",
      "end_date": "1954-12-31"
    },
    {
      "name": "Joe's Diner",
      "start_date": "1955-01-01"
    },
    {
      "name": "Famous Joe's"
    }
  ]
}

只要有 _enddate 的就表示為舊的名稱,定義在這邊 other_name