pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
314 stars 217 forks source link

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

Closed borys-spiridonov-yal closed 8 months ago

borys-spiridonov-yal commented 8 months ago

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?
missinglink commented 8 months ago

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 commented 8 months ago

Thank you @missinglink . this helps a lot!