pelias / placeholder

stand-alone coarse geocoder
https://placeholder.demo.geocode.earth
MIT License
313 stars 35 forks source link

placeholder_1 | parent not found! continent_id 102191581 #215

Open irbian opened 2 years ago

irbian commented 2 years ago

Describe the bug I´m getting this warning

placeholder_1 | parent not found! continent_id 102191581

And no info regarding the continent Europe on the responses

Steps to Reproduce I´m using pelias/docker

Initially my config was

 "whosonfirst": {
      "datapath": "/data/whosonfirst",
      "importPostalcodes": true,
      "countryCode": "ES",
      "importPlace": [
        "404227369"
      ]
    },

But after seeing the message, I added the continent info too

 "whosonfirst": {
      "datapath": "/data/whosonfirst",
      "importPostalcodes": true,
      "countryCode": "ES",
      "importPlace": [
        "404227369",
        "102191581"
      ]
    },

Expected behavior I expect to see info regarding the continent Europe

Environment (please complete the following information): latest pelias/docker

missinglink commented 2 years ago

It might not be very well documented but super-national entities (such as continents, political unions etc.) are stored under the XY country code.

Most people don't require them so they're turned off by default but you can change countryCode to an Array: ["ES", "XY"] and it'll download those files during the download step.

orangejulius commented 2 years ago

Ah yeah, that's a bit confusing on our part. Maybe we should add the XY and XX files to the list of downloads in all cases?