whosonfirst / py-mapzen-whosonfirst-export

Export tools for the Who's On First documents
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Ensure hierarchies contain all common placetype parents #13

Open stepps00 opened 6 years ago

stepps00 commented 6 years ago

Update the export library to ensure that all hierarchies are updated to include all common placetype parents. If a common parent placetype is not found, default to -1.

For example, a neighbourhood should always have the following placetypes in its hierarchy:

- continent (C)
  - country (C)
    - region (C)
       - locality (C)
          - neighbourhood (C)
stepps00 commented 6 years ago

see: https://github.com/whosonfirst/whosonfirst-placetypes

stepps00 commented 6 years ago

Once this lands, reconcile this with the code here: https://github.com/whosonfirst/py-mapzen-whosonfirst-hierarchy/.