pelias / whosonfirst

Importer for Who's on First gazetteer
MIT License
27 stars 43 forks source link

Support downloading individual country SQLite databases #459

Closed orangejulius closed 4 years ago

orangejulius commented 5 years ago

The Who's on First team now publishes country specific whosonfirst-data-admin-$$-latest.db SQLite databases.

These new files could be used to limit the amount of data needed for regional builds. This is a common request since the planet DB is quite large (27GB as of this writing).

There are at least a few considerations:

msschl commented 4 years ago

Are there any planes on this feature? It would be awesome.

missinglink commented 4 years ago

Yes this is definitely happening this quarter but unfortunately isn't the sort of feature that usually attracts sponsorship funding and so it's a lower priority than some other features right now ;(

We've made some recent progress by publishing up-to-date data builds of WOF: https://wof.synergy.io/sqlite/

missinglink commented 4 years ago

Data moved to a permanent home at https://geocode.earth/data/whosonfirst

orangejulius commented 4 years ago

This is done and should work as of #487!

It took an entire infrastructure (now sponsored by Geocode Earth) to generate proper country bundles, as well as some tweaks to the importer code here.

But you can now set the imports.whosonfirst.countryCode property to a 2-letter country code (as described in the readme). If anyone has any issues don't hesitate to let us know.