<div dir="ltr">Yes, connectivity will be a problem in that example.  If you make the lines `is_startpoint=false` and they're not connected to something else, then you won't be able to route over them.<div><br></div><div>You will need to do some pre-processing here - create artificial nodes at the points where the substation boundaries cross the lines and connect both ways to those artificial nodes.</div><div><br></div><div>daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 24, 2017 at 2:33 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"><br><div class="gmail_extra"><div class="gmail_quote"><span class="">2017-08-24 23:18 GMT+02:00 Daniel Patterson <span dir="ltr"><<a href="mailto:daniel@mapbox.com" target="_blank">daniel@mapbox.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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></blockquote><div><br></div></span><div>That's exactly what I need, thank you<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></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></blockquote><div><br></div></span><div>It doesn't matter indeed.</div><div>But it may be an issue that power lines aren't actually connected to substation perimeter ?</div><div><br></div><div>Like this one : <a href="https://www.openstreetmap.org/way/100500802" target="_blank">https://www.openstreetmap.org/<wbr>way/100500802</a></div><div>The outside edge of the substation is the fence surrounding it and power lines goes above it without connection.</div><div><br></div><div>Should I preprocess my data to make it more accessible to osrm or there's other way ?</div><div><br></div><div>Francois<br></div></div><br></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>