pelias / labels

Pelias Label generation
https://pelias.io
MIT License
4 stars 9 forks source link

fix for rare cases where country labels are blank #47

Closed missinglink closed 3 years ago

missinglink commented 3 years ago

This issue was closed today https://github.com/pelias/api/issues/720 but I noticed when clicking the link that we still have a rare labelling issue.

In the case where the record is a country and it has no admin info, we currently produce no label 😱

Screenshot 2021-06-09 at 12 16 28

It's a very rare case, in fact this Geonames Philippines doc might be the only one, but this PR fixes it.