Hi Ricardo,

  There is currently no built-in method for this.  OSRM supports ferry
routes, but only when they're drawn explicitly in OpenStreetMap, and
tagged with route=ferry.

  To do this correctly, you would probably need to draw your own ways
down the rivers that you want to support, and connect those to the
rest of the network.  It may or may not be OK to add this data to OSM
itself, I suspect you will need to maintain your own data, and merge
it into an OSM extract (using a tool like osmosis).  It might be
difficult to keep the connectivity correct if you update your base
map.

  I don't think using the outlines of the river polygons for routing
will be practical - I can imagine a lot of cases where the shape might
be very bad for routing, we would route you along the edge of the
river, rather than down the center.  It might get very strange when
rivers hit lakes.  I also don't know if all the necessary roads/paths
would be properly connected to the edges of the river at the points
you want.

  TL;DR - there's no easy way to do it.

daniel

> On Jun 13, 2017, at 08:41, Ricardo Pereira <ricardo.pere...@gmail.com> wrote:
>
> Good morning.
> I'm new to OSRM and would be thankful if someone could direct me to the right 
> approach/documentation to achieve the following:
>
> On top of the normal OSM data supporting "road" traffic, I'd like to also 
> include waterway graphs, that would allow OSRM to also calculate routes for 
> another type of vehicle (e.g. boat).
> I would expect to provide a "waterway" graph with the same type of variables 
> as a road, just as maximum speed, etc, but would expected that it was 
> reserved vehicles of the "boat" type, so that those ways would be used only 
> with the right profile.
>
> Please notice also, that my preference would be to add the rivers to normal 
> road data, not have a separate instance "pretending rivers to be roads".
>
> Thanks in advance,
> Ricardo
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk

_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to