pelias-deprecated / dockerfiles

Containerized Local Installation Package for the Pelias geocoder
https://pelias.io
MIT License
32 stars 25 forks source link

How to configure pelias.json if multiple regions/cities need to be imported? #49

Closed jengeb closed 6 years ago

jengeb commented 6 years ago

Assuming that I need to import the datasets for Idaho and Oregon, I would adjust the imports in pelias.json. I would configure the id of importPlace, e.g. Idaho for the whosonfirst dataset as follows and run the build script.

    "whosonfirst": {
      "datapath": "/data/whosonfirst",
      "importVenues": false,
      "importPostalcodes": true,
      "importPlace": "85688657",
      "api_key": "your-api-key"
    }

After this I would like to import the dataset for Oregon with the importPlace id 85688513. What's the best way to do that? Changing the pelias.json file and running the build script again for each region?

orangejulius commented 6 years ago

For now, yes running the WOF importer twice would be the best way. @missinglink and I were just discussing allowing importPlace to contain an array of IDs so that several areas could be imported.

jengeb commented 6 years ago

@orangejulius Thanks for your help and quick response.