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 3-character `mz:country` when preparing records #9

Open thisisaaronland opened 7 years ago

thisisaaronland commented 7 years ago

Use pycountry to grab 3-character country after wof/iso country codes are set in the export_feature method:

https://pypi.python.org/pypi/pycountry

Related:

https://github.com/whosonfirst-data/whosonfirst-data/issues/155#issuecomment-252768936