<div dir="ltr">Franccois,<div><br></div><div> 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.</div><div><br></div><div> Set `is_startpoint` to true for your substations way areas, and `is_startpoint` to false for the transmission lines.</div><div><br></div><div> 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.</div><div><br></div><div>daniel</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 24, 2017 at 1:40 PM, François Lacombe <span dir="ltr"><<a href="mailto:fl.infosreseaux@gmail.com" target="_blank">fl.infosreseaux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi Daniel, Ricardo,<br><br></div>Thank you for your answers.<br><br></div>I completely agree on necessity of perfect connectivity between features.<br></div>It has been a concern for me regarding power networks for years of contribution now.<br><br></div>The challenge is currently to adapt car profile to power lines<br></div>Voltage may act as the maxspeed key, and transformers as toll<br></div><div><br></div><div>As you may see in the relation example I gave, there is two substations at the ends of line members.</div><div>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)<br></div><div>How can I told osrm to look for the nearest substation before starting routing in the graph exclusively composed of power lines or pipelines ?<br></div><div><br></div><div>Guidance information isn't so relevant in such networks, then I will only focus on osrm path answer<br></div><div><div><div><br></div><div>François<br></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-9152853986605028308gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b>François Lacombe</b><br><br>fl dot infosreseaux At gmail dot com<br><a href="http://www.infos-reseaux.com" target="_blank">www.infos-reseaux.com</a><br><a href="http://www.twitter.com/InfosReseaux" target="_blank">@InfosReseaux</a></div></div></div><div><div class="h5">
<br><div class="gmail_quote">2017-08-24 18:52 GMT+02:00 Ricardo Pereira <span dir="ltr"><<a href="mailto:ricardo.pereira@gmail.com" target="_blank">ricardo.pereira@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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. <div>Our Lua script therefore matches the tags that we create for own data, nothing to do with OSM.</div><div><br></div><div>Cheers<br><br><div class="gmail_quote"><div><div class="m_-9152853986605028308h5"><div dir="ltr">On Thu, 24 Aug 2017 at 16:15 François Lacombe <<a href="mailto:fl.infosreseaux@gmail.com" target="_blank">fl.infosreseaux@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-9152853986605028308h5"><div dir="ltr"><div><div><div>Hi all,<br><br></div>Since there is not only roads but many other topological networks mapped on OSM, I'm wondering how osrm may be usable on them.<br><br></div><div>Example : a power route used to establish a link between two substations<br><a href="http://www.openstreetmap.org/relation/6694740" target="_blank">http://www.openstreetmap.org/r<wbr>elation/6694740</a><br></div><div><br></div>I know pretty well how lua profiles are built, for cars, bike, pedestrian... but is there any profile available for power or gas pipelines?<br></div>Let's say we have proper data, is the profile the only thing to change to use osrm on pipelines or rivers exclusively ?<br><div><div><br></div><div>Many thanks for any answer regarding this question<br><br><br></div><div>François</div></div></div></div></div><span>
______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a><br>
</span></blockquote></div></div></div>
<br>______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>