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

How to init pelias with the data for multiple countries #327

Closed
borys-spiridonov-yal opened this issue Nov 2, 2023 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@borys-spiridonov-yal
Copy link

Hi,
There are a few examples (/projects) showing how to generate data for a particular area.
I have a use case to cover several countries: Canada, USA, and Greece.

  1. Is it possible to set up Pelias for those countries specifically or do I have to run full planet build?
  2. Is it possible to merge two projects together to have a database that covers several countries? If we yes, then can you please provide instructions?
@borys-spiridonov-yal borys-spiridonov-yal added the enhancement New feature or request label Nov 2, 2023
@missinglink
Copy link
Member

missinglink commented Nov 2, 2023

Hi @borys-spiridonov-yal you can certainly run multiple countries.

Two options:

Either edit your pelias.json file to include multiple countries, the fields which accept a country code are arrays. You could essentially just merge two project files together.

Or, you can import one country and then import the next country, as long as you don't drop the elastic search index between then the result will contain both.

@borys-spiridonov-yal
Copy link
Author

Thank you @missinglink . this helps a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants