pelias / docker

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

Geocode-Dashboard shows 400+ countries #306

Closed spammads closed 1 year ago

spammads commented 1 year ago

Hi there. Thanks for the enormous effort which you put in the project. I am wondering why the geocode-dashboard shows 400+ entries under "country". My Elasticsearch shows just 200 and a few for my planetbuild. I fear I missed something during the imports... Any guesses are appreciated. Thanks & Best of luck

missinglink commented 1 year ago

Hmm considering there are 206 sovereign states it might be an error on the geocodearth import which may be duplicating some countries.

cc/ @orangejulius, any idea what's going on here? Is it possibly counting both 2 & 3 letter country codes in the aggregation?

orangejulius commented 1 year ago

This is a classic question that a few people have been confused by in the past :)

We import countries from both Geonames and Who's on First, and the Pelias Dashboard counts both.

@CKranebitter I saw from your profile that you opened an issue on the Headway app, and that project does not currently import Who's on First data. This means they're missing quite a few important Pelias features, and probably is the result in the discrepancy.

spammads commented 1 year ago

Ah. Sorry if this is a duplicate. My current planetbuild is a classic build of pelias without using the Earthfile from Headway. I followed the steps described in your /pelias/projects/planet repository. So Wof and Geonames should be there.

spammads commented 1 year ago

Closing this one as the question is answered.

michaelkirk commented 1 year ago

@CKranebitter I saw from your profile that you opened an issue on the Headway app, and that project does not currently import Who's on First data. This means they're missing quite a few important Pelias features, and probably is the result in the discrepancy.

Sorry to jump into your issue tracker, and it sounds like this wasn't the issue anyway, but Headway does import WOF data as of ~4 months ago https://github.com/headwaymaps/headway/pull/156