Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-28 Thread Daniel Patterson
Hi François, Currently, OSRM doesn't know anything about route relations (although some work has started on it here: https://github.com/Project-OSRM/osrm-backend/pull/4438). For now, you'd need to convert them to separate ways, or copy the relation tags onto the relevant ways so that the

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-28 Thread François Lacombe
Hi Daniel, This is indeed an interesting point. In substations, every incoming line is often connected to busbars, which allow to switch power from lines to another. They are supposed to be in OSM when outdoor and visible on aerial imagery like this one :

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-24 Thread François Lacombe
2017-08-24 23:18 GMT+02:00 Daniel Patterson : > Franccois, > > In the lua profiles, you can set the `result.is_startpoint` property in > `process_way` (used to be `way_function`) to determine whether you can snap > to them. We currently use this for ferry routes - paths can

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-24 Thread Daniel Patterson
Franccois, In the lua profiles, you can set the `result.is_startpoint` property in `process_way` (used to be `way_function`) to determine whether you can snap to them. We currently use this for ferry routes - paths can use them, but can't start/end on them. Set `is_startpoint` to true for

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-24 Thread François Lacombe
Hi Daniel, Ricardo, Thank you for your answers. I completely agree on necessity of perfect connectivity between features. It has been a concern for me regarding power networks for years of contribution now. The challenge is currently to adapt car profile to power lines Voltage may act as the

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-24 Thread Daniel Patterson
Hi Francois, In theory, yes, you could route on powerlines, gas lines, or any other linear feature. Ensuring connectivity could be problematic - often rivers are not connected to paths in OSM. Waterways are a bit problematic as they're often modeled as areas - if you modify the Lua script