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

Update the export library to populate the wof:hierarchy with placetype_alt placetypes #12

Open stepps00 opened 6 years ago

stepps00 commented 6 years ago

As a follow-up to the conversation in https://github.com/whosonfirst-data/whosonfirst-data/issues/952, update the export library to include the placetypes in the wof:placetype_alt property.

For example:

If 1109371865, a borough placetype feature as "wof:placetype_alt":"county", the following hierarchy should be seen in this record:

1109371865.geojson

"wof:hierarchy":[
       {
           "borough_id":1109371865,
           "continent_id":102191577,
           "country_id":85632505,
           "county_id":1109371865,
           "locality_id":421174285,
           "region_id":85668081
       }
   ],
stepps00 commented 6 years ago

https://github.com/whosonfirst/py-mapzen-whosonfirst-export/blob/master/mapzen/whosonfirst/export/__init__.py#L168