whosonfirst / whosonfirst-www-boundaryissues

Boundary Issues is a web-application for editing Who's On First data.
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Update reversegeo pony to use mz.wof.hierarchy (and friends) #258

Open thisisaaronland opened 7 years ago

thisisaaronland commented 7 years ago

Specifically:

https://github.com/whosonfirst/py-mapzen-whosonfirst-hierarchy#rebuilding-the-hierarchy-for-a-wof-record

And:

https://github.com/whosonfirst/py-mapzen-whosonfirst-spatial#mapzenwhosonfirstspatialwhosonfirstpip

thisisaaronland commented 7 years ago

The mz.wof.hierarchy code should be considered relatively stable at this point but keep in mind there may still be bugs so discovering and fixing them if necessary is part of the work.

thisisaaronland commented 7 years ago

Also neither of these libraries are included as dependencies in the py-mz.wof wrapper package so you will need to install them "by hand" for now.

thisisaaronland commented 7 years ago

See also: wof-hierarchy-rebuild

$> wof-hierarchy-rebuild -H /usr/local/data/whosonfirst-data/data/110/875/835/5/1108758355.geojson 
INFO:root:rebuild hierarchy for /usr/local/data/whosonfirst-data/data/110/875/835/5/1108758355.geojson
INFO:root:append parent and hierarchy for 1108758355
INFO:root:parent ID has changed for 1108758355
INFO:root:Ghinda'e (1108758355) has CHANGED parent ID is now 85671105
INFO:root:[{u'continent_id': 102191573,
  u'country_id': 85632781,
  u'county_id': 1108758355,
  u'region_id': 85671105}]