[OSRM-talk] Use OSRM on rivers, railways, power lines
Daniel Patterson
daniel at mapbox.com
Thu Aug 24 21:18:40 UTC 2017
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 your substations way areas, and
`is_startpoint` to false for the transmission lines.
The route will start by following the outside edge of the substations
area polygon, but it sounds like that doesn't matter too much to you.
daniel
On Thu, Aug 24, 2017 at 1:40 PM, François Lacombe <fl.infosreseaux at gmail.com
> wrote:
> 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 maxspeed key, and transformers as toll
>
> As you may see in the relation example I gave, there is two substations at
> the ends of line members.
> Differently from roads or rivers, you can't connect to power lines or
> pipelines anywhere. Start and end into substations is mandatory
> (power=substation or pipeline=substation, they are both areas)
> How can I told osrm to look for the nearest substation before starting
> routing in the graph exclusively composed of power lines or pipelines ?
>
> Guidance information isn't so relevant in such networks, then I will only
> focus on osrm path answer
>
> François
>
> *François Lacombe*
>
> fl dot infosreseaux At gmail dot com
> www.infos-reseaux.com
> @InfosReseaux <http://www.twitter.com/InfosReseaux>
>
> 2017-08-24 18:52 GMT+02:00 Ricardo Pereira <ricardo.pereira at gmail.com>:
>
>> We use OSRM to route within water only (Oceans and Rivers). It makes
>> absolute no difference what you are routing through as long as you can
>> provide a mesh with your topology.
>> Our Lua script therefore matches the tags that we create for own data,
>> nothing to do with OSM.
>>
>> Cheers
>>
>> On Thu, 24 Aug 2017 at 16:15 François Lacombe <fl.infosreseaux at gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> Since there is not only roads but many other topological networks mapped
>>> on OSM, I'm wondering how osrm may be usable on them.
>>>
>>> Example : a power route used to establish a link between two substations
>>> http://www.openstreetmap.org/relation/6694740
>>>
>>> I know pretty well how lua profiles are built, for cars, bike,
>>> pedestrian... but is there any profile available for power or gas pipelines?
>>> Let's say we have proper data, is the profile the only thing to change
>>> to use osrm on pipelines or rivers exclusively ?
>>>
>>> Many thanks for any answer regarding this question
>>>
>>>
>>> François
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> 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/20170824/5db61a25/attachment-0001.html>
More information about the OSRM-talk
mailing list