incubator-baremaps icon indicating copy to clipboard operation
incubator-baremaps copied to clipboard

Searching for alternate names in Geonames

Open Drabble opened this issue 3 years ago • 0 comments

Discussed in https://github.com/baremaps/baremaps/discussions/457

Originally posted by Drabble April 14, 2022 When we retrieve elements from Geonames, the only searchable fields are name, country and country code. Maybe we should also be able to search for alternate names as well (with a lower weight), so that we get more matches.

An example is the Switzerland country entry doesn't match for helvetia, suisse, schweiz, confederatio helvetica...

Geonames switzerland entry

Some of these alternate names shouldn't be indexed because they are specific to a language. For example japanese, swedish, etc. But some of these alternate names are not specific to a language, as you can see in the code/lang columns.

Drabble avatar Apr 14 '22 13:04 Drabble