Hi
As I'm curious about this thread, I gave the proposed solution a try. On
the same osm.pbf data for France, I compared the default car profile
with the same profile modified with mode_ferry = 0 on line 151.
The modified profile does prevent routing through some ways tagged as
"route":
Thank you this works
2015-11-11 16:23 GMT+01:00 Daniel Hofmann :
> If you take a look at the car profile, you will see a ferry_mode variable,
> that sets the travel mode:
>
>
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:
thanks - I was still at the LUA stage (and quite a bit can be worked out from
just this level).
The explanation below explains 0 and 1, but I couldn't see any explanation of
the other values - despite some c++ code that set default TravelMode values of
4 in a couple of places. No
Let me show you how you can find out more about specific variables like
mode_ferry:
your best bet is to search the code base, for example, see this initial
search for mode_ferry:
https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93=mode_ferry=Code
you can see how we set
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 wrote:
> If you take