-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the role of the key_list in geolocation? #420
Comments
It's a prioritized list of keys that are searched for a match as different keys may be used for location info in different countries. So, in the above example, it'll search for a match with Ah, I see that Paddy commented on this here. |
Ah, thanks much, ghosts from the past, I didn't remember that thread anymore, thanks for pointing it out, @jgodfrey! Finetuning sounds tricky because of the different address formats that countries have. In England, many houses have their own names, and then there are many subdivisions of the town, district, county, and whatever. Other countries probably have their peculiarities. |
Agreed - the normalization of international location information is a messy business... |
I am coming back to this issue because I would really like to be able to tweak the Nominatim output a bit more.
In configuration.yaml we have this
In Nominatim, these seem to be the available categories:
But how do I specify the selection of fields in configuration.yaml? I am not sure I have fully grasped the logic yet. I would expect the name of the category somewhere. |
Used a foggy Sunday to experiment a bit. Using this setting
brings very useful (and sometimes surprising) location data. May I recommend putting it into our build? |
If that gives more meaningful descriptions over a wide variety of locations then I think we should change it. The only question I would have is in the fourth part of the address where you show "region" if found else "county" else "state" else "province". In the US there might be some obscure counties that would benefit from having the state shown as well. The logic might almost be
as most US states are recognisable without the country! But if you've tested your |
This thread has sparked me to do some location format experimentation too. I agree @paddywwoof that, in the US, the country is unnecessary if we have state. Further, I don't want/need to see the county if I have a city or town. But, I do find the "suburb" adds some additional value. With that in mind, here's what I'm using ATM.
Though, when fiddling with this, I immediately wondered if we should switch the stored location data to be (some form of) the raw data from Nominatim instead of the pre-baked, configured location string. That way, we could "assemble" any configuration of the final string on-demand from the stored data. That'd make tweaking the configuration much more dynamic as it wouldn't be necessary to delete the stored data and request it again when the configuration changes. |
A clever setting would be one in which you can suppress certain information, such as the country, based on the country. So, e.g., for the US or Germany, no country is shown; for all others, it is. But I guess unless we can find a simple way to implement it, it's too much hassle. |
I never really looked a at the geolocation settings at a deeper level before but I wonder what
this does?
The text was updated successfully, but these errors were encountered: