graphhopper / graphhopper

Open source routing engine for OpenStreetMap. Use it as Java library or standalone web server.

Home Page:https://www.graphhopper.com/open-source/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not Selecting Sea Route between tangier med and elgeciras for Morocco to Spain Route

MsaidBENJAA opened this issue · comments

image

When attempting to select a route between Morocco and Spain using GraphHopper, the Tangier Med - elgeciras sea route is not being considered as an option.

commented

Apparently it is considered as an option, but the route still takes the Tanger-Tarifa ferry, because it is assumed to be faster.
In OSM Tanger-Tarifa link is mapped with duration=0:35 while Algeciras-Tangier Med is mapped with duration=1:30.

how can we force the API to take the Algeciras-Tangier Med ferry, we need it to take the algeciras-Tangier Med, as it is the one that supports the big trucks transpotaion

commented

You should be able to use a via-point in the middle of the sea like this: https://graphhopper.com/api/1/route/profile=car&point=35.85323,-5.53651&point=35.971832,-5.436935&point=36.132057,-5.461992

This does not work on graphhopper.com/maps because snapping to a ferry is avoided. When using the API you have to make sure you are not using snap_preventions=['ferry'].

But regarding the problem: Are you saying big trucks are allowed on one but not the other ferry? This can be mapped in OSM.

yes they are not allowed on Tanger-Tarifa. how can we map it in OSM?

commented

OSM supports different kinds of vehicle restrictions like maximum weight, length etc. Some of this is documented here: https://wiki.openstreetmap.org/wiki/DE:Key:access
If you don't know it is best to get in touch with the OSM mapping community. You could for example contact the users that created/edited these ferries.

commented

I'm closing here since this is rather a mapping issue. For further questions related to using GraphHopper please use our forums.