Opened 2 months ago
Last modified 7 weeks ago
#24519 new enhancement
Adding tags: autocompletion should offer keys sorted by highest usage
| Reported by: | daganzdaanda | Owned by: | team |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core | Version: | tested |
| Keywords: | UI; autocompletion | Cc: |
Description
A small "pet peeve" of mine is that when adding "addr:*" tags by using the "add tag" (Alt-A) dialogue, the autocompletion will offer the next unused addr:* key in alphabetic order.
It is a bit annoying that "addr:street" is quite far down in the alphabet ;-)
Maybe the order of keys should not follow the alphabet, but the most used keys should come first?
Leaving out what looks like some locally used keys, Taginfo gives this sequence:
addr:housenumber
addr:street
addr:city
addr:postcode
addr:country
addr:state
addr:district
addr:place
addr:suburb
addr:neighbourhood
addr:hamlet
addr:province
addr:full
addr:floor
addr:conscriptionnumber
addr:unit
addr:subdistrict
addr:municipality
addr:interpolation
addr:housename
This could work with other keys as well.
Attachments (0)
Change History (5)
comment:1 by , 2 months ago
comment:2 by , 8 weeks ago
Maybe there could be a "handmade" list just for addr:*?
Looking at https://taginfo.openstreetmap.org/search?q=addr%3A there is a strong drop-off of usage after "addr:full" which has 9.4 million, and addr:floor has "only" 4.6 million.
Of course this would set a precedence, but after looking at taginfo for ":", I don't think there's another prefix with a similar situation.
comment:3 by , 8 weeks ago
Yes, something like a handmade list came to my mind as well. I have the same problem with some values, e.g. for key building. After a restart JOSM may suggest the rather seldom hospital instead of house after typing "ho". Or a driveway: JOSM may suggest drive-through unless I type "drivew".
This depends on things which I mapped before.
The question is in what situation exactly one wants the list to take precedence. I'll experiment with this while also working on #24516
comment:4 by , 7 weeks ago
Just my two cents, if I'd be looking for a key of which I know the name, just not the exact spelling, I'd rather look through an alphabetic list - assuming I know the first letter - than a seemingly randomly sorted list based on usage. But if it only affects autocomplete (but keeps the dropdown sorting alphabetically) I wouldn't mind and indeed like this feature.
comment:5 by , 7 weeks ago
Thanks for the hint. I agree that the shown list should be sorted alphabetically.



I agree that this would be helpful, I just have no idea how to implement this without asking taginfo for all keys found in the preferences and maybe also all those found in the current dataset.
OTOH the problem disappears while editing because JOSM then - by default - prefers autocompletion with the recently added tags.