[openstreetmap/openstreetmap-website] Snap to highways/cities on low-zoom placement of navigation markets (Issue #4649)

tomFlowee notifications at github.com
Fri Apr 5 09:43:46 UTC 2024


### Problem

On the website you can drag the navigation marker for routing, the from and the to.

On low zoom levels it becomes quite tricky to actually do what is expected and the market often ends up slightly off of the location you want. Basically a random location anywhere from 50 to 2000 meters from the actually wanted location.

The best known issue there is if you want to route not from an address to an address, but only roads and you drop the icon on a big multi-lane road. There is a pretty good chance you just dropped it on the lane going the opposite direction and this causes your routing to be quite different than expected.

Or if you want to route to a town, not a specific address, just from one town to another. It would make a LOT of sense to just route to the outskirts of the town and not to the exact address where I randomly dropped my marker. Because at low zoom I can't really be accurate. I use low zoom because I just want to route to the town, not a specific address.

### Description

Using high zoom, the user has all the control they need.

Using low zoom, however, I think it would be nice if OSM would add snapping to big elements. Elements like highways and towns.

What I'd expect then is that if I drop my navigation marker 5 pixels left of the highway, the website assumes I wanted to hit the highway. Because at low zoom it is extremely unlikely the user was actually trying to hit that barn next to the road. And thus snaps the marker back to the main road.

In a second stap it might be nice for the communication between the OSM model and the routing services to have marker saying "this is a snapped marker!". Because that allows the routing service to assume that my marker is on the entire highway, not on one specific lane. Avoiding the silly problem of starting to route south while we wanted to drive north..
Similarly, a "snapped-to" value of a town could also be smarter routed to simply the general area of the town instead of all the way into the center where the town dot happens to be located.

### Screenshots

_No response_

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4649
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/4649 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240405/b3eac2e8/attachment.htm>


More information about the rails-dev mailing list