Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to whitelist postalcode countries #230

Closed
trescube opened this issue May 4, 2017 · 1 comment
Closed

Allow user to whitelist postalcode countries #230

trescube opened this issue May 4, 2017 · 1 comment

Comments

@trescube
Copy link
Contributor

trescube commented May 4, 2017

The whosonfirst importer currently forces a user looking to import postalcodes to download and import postal codes from literally every single one of the 213 countries. That seems a bit excessive if, say, they're only interesting in importing Germany postal codes. Perhaps the importer can look for an array in pelias config of whitelisted country ISO2's to import. My personal use case is that I'm just trying to run a test import and I'm hacking the code a bit to just run a single country.

@orangejulius
Copy link
Member

As of #487 and the https://github.com/pelias/whosonfirst/releases/tag/v4.0.0 release, we support countryCode as config parameter, and postal codes are only downloaded on a per-country basis! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants