[OSRM-talk] "nearest suitable road segment" Was: Helgoland in St. Peter-Ording
daniel at mapbox.com
Wed Aug 17 18:56:40 UTC 2016
OSRM simply snaps the coordinate to the nearest road. If the back yard "streets" are part of the main road network (i.e. not `access=private`), then it's simply the closest road segment to your start point that gets used. Nominated is returning the building centroid for Münsterstraße 15a, so it's snapping to the parking lot roads.
I'm not really sure what we could change in OSRM to fix this - perhaps excluding `service=parking_aisle` road segments might have the general effect? Maybe in this case there should be a `service=driveway` on the entrance to the parking lot, and we should exclude driveways?
> On Aug 17, 2016, at 10:54 AM, Florian Lohoff <f at zz.de> wrote:
> Hola Patrick,
> On Tue, Aug 16, 2016 at 08:29:13PM +0200, Patrick Niklaus wrote:
>> Hey Jürgen,
>> OSRM routed immer vom jeweils nächsten Straßensegment der
>> Eingabe-Koordinaten. Das heißt in dem Fall, da sich auf Helogland
> Just to continue on this with a related issue - What is a "suitable" street
> segment. highway=*something vehicle suitable* and ignoring
> access tags?
> I have a case where there is a building - belonging to the big
> front street, though when i use it as a route start/endpoint i get
> routed to the private residents parking space in the backyard as
> that street segment is spatially nearer.
> I now tried to set an access=private to the highway=service
> service=parking_aisle in the backyard which seems to solve the issue
> although incorrectly tagged. There is no "access prohibiting sign"
> for the backyard.
> Look at the start Point which is "Berliner Straße 1, Gütersloh".
> This is where i sprinkeled some magic "access=private" on the backyard
> road segments:
> Example - which now works:
> This is a broken example:
> Münsterstraße 15a, Gütersloh will be routed through a customer
> parking space:
> I am unshure on how to fix this correctly.
> Modifying spatial data to make the "main road" be more
> close seems like a really broken method.
> Putting access=private or stuff on backyard roads although
> they are not marked as such seems broken too.
> I was always thinking about some relation to mark
> access to a specific address/building/poi from a certain street/way.
> to=<building outline>
> to=<address node>
> This is not a pure OSRM issue - Mapzen/Graphhopper have identical issues.
> A Mapzen route which has problems "Hohenzollernstraße 1, Gütersloh"
> Florian Lohoff f at zz.de
> UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
More information about the OSRM-talk