Prefill city when using a street name suggestion
When we currently enter the name of a street, we get autocompletion suggestions based on existing roads in the neighbourhood. It would help quite a bit if the associated city field would also be filled in whenever we use one of these suggested road names. I know that every street has a city set (or none, on purpose) in the underlying data model, so this shouldn't be a big effort to add.
(see Mock up 1 + 2 attached )
I'm still contemplating whether I'll write a userscript for this or not. It's not so easy to hook into those functions, if I remember correctly.
Implementation notes:
To distinguish between nearby street names that exist in two cities (motorway names, for example, but also local roads can sometimes keep their name between cities), it would be best to also show the city name in the suggestions list. At the moment road names show up several times in the suggestions whenever they exist nearby in more than one city, which can be slightly confusing at first.
If no city is set for the selected street, the 'none' checkbox for the city should be checked as well. It can of course still be changed afterwards, but I suspect that most of the time this would be most practical.
This behaviour should only activate if a suggestion has not been clicked or has not been navigated to with the down arrow (or any other means of selecting a suggestion that I'm forgetting here). When just typing in a name, the city should not be set automatically.
Notes about my mock-up
An alternative for detailing the city name would be using a comma as separator, like it is done when you're not editing the name. Other alternatives: putting it between brackets or making the font smaller. The last one has the advantage that it takes up less space.
For the first one I had to decrease the left and right padding of the autocompletion to 15px to prevent the dropdown to be covered by the scroll bar. This can probably be done better.
For the second one I used these CSS properties: font-size:0.7em; padding-left:5px; font-weight:bold; text-transform:uppercase
by Glodenox
Link to original suggestion: https://www.waze.com/forum/viewtopic.php?f=1525&t=250354
-
AdminWaze Team (Admin) (Admin, Waze) commented
This was partially implemented in the beta editor, it seems :)
It's a bit difficult to trigger, but whenever you have two roads with a different city set, the city gets added to the find-as-you-type results. When exactly it triggers is still a bit unclear to me as it seems to require no city to be set for a new segment to work, though new segments automatically get the local city set already, so this is a relatively rare occurrence.Could be improved further, but I'm already happy this was partially implemented.