[OSRM-talk] How to disable all ferry routes?

Richard Marsden winwaed at gmail.com
Thu Nov 12 00:06:10 UTC 2015


By coincidence I was working through the lua scripts trying to understand them.

So what is the significance of the 1,2,3?  Just unique identifiers. As long as they're non-zero, they will be enabled?

Richard

On Nov 11, 2015, at 9:23 AM, Daniel Hofmann <hofmann at mapbox.com> wrote:

> If you take a look at the car profile, you will see a ferry_mode variable, that sets the travel mode:
> 
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L151
> 
> If you set this to 0 (i.e. 'inaccessible") as defined here:
> 
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35
> 
> then the extractor discards ferry routes because you marked them inaccessible.
> 
> On Wed, Nov 11, 2015 at 9:03 AM, Peter Becker <floyd.net at gmail.com> wrote:
> Hello, i dont want any ferries in my routes. Is this possible?
> 
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
> 
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20151111/5b1fc5be/attachment.html>


More information about the OSRM-talk mailing list