Hackpads are smart collaborative documents. Join Hackpad Now.
579 days ago
1 / 2
Unfiled. Edited by kiang 579 days ago
選舉黃頁基本上是由兩棵 MPTT 樹狀結構所組成, areas 為行政區、 elections 為選舉區,這樣子切割的原因是部份選舉區跟行政區需要額外對應,像是個別議員選區經常會對應到一個以上的行政區,因此切開來處理。 透過 api 取得的資料都會有 rght 與 lft 用在 MPTT 索引的欄位,只要 rght - lft = 1 就表示該節點為樹葉 (leaf node) ,它不會有下一層。
978 days ago
3 / 5
Unfiled. Edited by 雨蒼 林 978 days ago
(五十天,五十張選舉圖)

Stop sharing the collection with ?

This pad is open to "", so will still be able to access it.
Cancel
Feed

Contact Support



Please check out our How-to Guide and FAQ first to see if your question is already answered! :)

If you have a feature request, please add it to this pad. Thanks!


Log in / Sign up