You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect snapping for ferry routes. LocationIndex should know only start and end #322
Hi all,
I rely on Graphhopper for simulating opportunistic networks of mobile devices in real-world setups. The project is called Alchemist and it is supported by University of Bologna. The high number of randomly displaced devices allowed me to spot some curious behaviour, that I was able to reproduce in the web version of Graphhopper: apparently, navigable lines are interpreted as legit foot path.
That is a ferry, not really swimming and not really anomalous. In order to map sequential data points to edge ids you might be interested in our map matching component
But I see what you mean and maybe the route should not start directly on a ferry and also not mix ferries.
Unfortunately the (nicely powerful) map matching is not a viable work around in my case: I often need, for instance, to displace hypothetical network nodes on a real-world map, and in order to do that I use the method mentioned above. As you surely realise, this is disruptive if the simulated area comprises navigable water streams. I am currently working this around using bike paths, but is clearly sub optimal.
Anyway, apart from my very problems, which I believe should not be considered since graphhopper aims at a general navigator solution, it appears to me that:
I agree with you that it makes little sense starting a route from a ferry. One problem here is that if you try to start to navigate from a bridge, even a little drift in GPS precision may lead to the suggestion of taking a ferry. I noted also that if ferries and bridges intersect, on intersection points some times a ferry is suggested as closer point.
I also agree that ferries should not be mixed. More in general, they should not be considered as plain roads.
Mixing ferries and walks inevitably makes route times mismatch reality (unless graphhopper is considering ferries timetables, which I guess it is not). I think that in case the ferry routes management is modified, this issue should also be considered.
GH seems to really only work with the idea of 'highways' at the moment, ie. where one can move over the 'public' routes and essentially with no rights issues. Ferries (presumably) will cost money, have timetables, different speeds, as indicated above. For me, this indicates that rather than treating ferry journeys as paths (alone), the appropriate approach would be to work on using routes (osm relations).
changed the title [-]Improve foot routing for ferries[/-][+]Incorrect snapping for ferry routes. LocationIndex should know only start and end[/+]on Feb 7, 2016
Activity
karussell commentedon Feb 10, 2015
That is a ferry, not really swimming and not really anomalous. In order to map sequential data points to edge ids you might be interested in our map matching component
But I see what you mean and maybe the route should not start directly on a ferry and also not mix ferries.
karussell commentedon Feb 10, 2015
See the corresponding OSM layer for a more detailed look of the ferry routes.
DanySK commentedon Feb 11, 2015
Than you for your answer, I understand.
Unfortunately the (nicely powerful) map matching is not a viable work around in my case: I often need, for instance, to displace hypothetical network nodes on a real-world map, and in order to do that I use the method mentioned above. As you surely realise, this is disruptive if the simulated area comprises navigable water streams. I am currently working this around using bike paths, but is clearly sub optimal.
Anyway, apart from my very problems, which I believe should not be considered since graphhopper aims at a general navigator solution, it appears to me that:
[-]Foot routing may end up suggesting to swim[/-][+]Improve foot routing for ferries[/+]neiljp commentedon Jul 19, 2015
It seems to me that ferries are currently treated as 'paths' in the analysis. This is suggested to me partly due to the existence of routes such as the following:
https://graphhopper.com/maps/?point=51.501998%2C-0.123103&point=51.504562%2C-0.120656&vehicle=foot&locale=en-US&elevation=true&layer=OpenStreetMap
GH seems to really only work with the idea of 'highways' at the moment, ie. where one can move over the 'public' routes and essentially with no rights issues. Ferries (presumably) will cost money, have timetables, different speeds, as indicated above. For me, this indicates that rather than treating ferry journeys as paths (alone), the appropriate approach would be to work on using routes (osm relations).
Does anyone else agree?
karussell commentedon Jul 20, 2015
yes, introducing duplicate paths regarding the ferry routes would be necessary here too, or via 'turn restrictions'
[-]Improve foot routing for ferries[/-][+]Incorrect snapping for ferry routes. LocationIndex should know only start and end[/+]karussell commentedon Sep 10, 2020
This is now possible with snap preventions, e.g. https://graphhopper.com/maps/?point=51.502091%2C-0.123076&point=51.500435%2C-0.12225&vehicle=foot&snap_prevention=ferry
detailed error message (graphhopper#322)