<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">Hi,<div><br></div><div>How many shortest path calculations are you looking at? You could probably do a all pairs shortest path dijkstra and filter the results.  You could batch multiple one to many (point to layers)  In QGIS using the processing plug-in.</div><div><br></div><div>I did create an algorithm using networkX that could be modified to work with two input layers.  This could be useful if QGIS is not fast enough or if you have too many routes to calculate.  You will find it in the links below. Keep in mind this algorithm was for rivers therefore you have no trafic rules.  This would need more work.</div><div><br></div><div>You will also find an article we wrote in Data that may help.  If you have trouble with the network, look in the QGIS hub for the models. Look for the 3 “fix directional networks models”.</div><div><br></div><div>I added a few YouTube videos I made.</div><div><br></div><div><a href="https://gitlab.com/njacadieux/upstream_downstream_shortests_path_dijkstra">https://gitlab.com/njacadieux/upstream_downstream_shortests_path_dijkstra</a><a href="https://www.mdpi.com/2306-5729/5/1/8"> </a></div><div><br></div><div><a href="https://www.mdpi.com/2306-5729/5/1/8">https://www.mdpi.com/2306-5729/5/1/8</a></div><div><br></div><div><a href="https://plugins.qgis.org/models/">https://plugins.qgis.org/models/</a></div><div><br></div><div><a href="https://youtu.be/v61PafSByvM">https://youtu.be/v61PafSByvM</a></div><div><br></div><div><a href="https://youtu.be/qQrHcKtmr3o">https://youtu.be/qQrHcKtmr3o</a></div><div><br></div><div><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 5 mai 2022 à 10:38, Francesca Parente via Qgis-user <qgis-user@lists.osgeo.org> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hello everyone,<div><br></div><div>I'd need to identify optimal destinations (within a point layer of geolocated facilities) for each territory of a given set of possible origins. </div><div>I already calculated a distance matrix between the two point-layers, and also applied the distance-to-nearest-hub tool to generate a string layer and identify the optimal facilities.</div><div>But I'd like to obtain a more realistic estimate, accounting for the roads network (and ideally their travel times). With quite a few issues, I finally managed to import an OSM road network from <a href="http://download.geofabrik.de">download.geofabrik.de</a> (in order to cover my area of interest, I had to merge two different vectors fo Center and Southern Italy and then extract a focus spot in between the two and save it as a lighter layer, otherwise it also took an eternity to run every analysis). <br></div><div><br></div><div>So now my question would be: is there a tool to perform a layer-to-layer shortest-path analysis that takes it into account? </div><div>All that I could find was either point-to-point or layer-to-point/point-to-layer (I looked also at built-in network analysis tool and Qneat3 plugin).</div><div><br></div><div>Any kind of inputs and suggestions will be more than welcome! </div><div>Thanks a lot for your support and have a good day,</div><div>Francesca<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>----------------------------</div><div><font face="monospace, monospace">Francesca Parente</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace" size="1">_ <a href="https://phd.uniroma1.it/web/FRANCESCA-PARENTE_nT1602922_IT.aspx" target="_blank">SESS Euro PhD</a> in SocioEconomic and Statistical Studies</font></div><div><font face="monospace, monospace" size="1">_ <a href="https://sep.luiss.it/" target="_blank">Luiss SEP</a> School of European Political Economy</font></div><div><br></div><div><span style="font-family:monospace,monospace;font-size:x-small"><br></span></div><div><span style="font-family:monospace,monospace;font-size:x-small">email: </span><font color="#20124d"><a href="mailto:francescaparente.rse@gmail.com" style="font-family:monospace,monospace;font-size:x-small" target="_blank">francescaparente.rse@gmail.com</a><span style="font-family:monospace,monospace;font-size:x-small"> <br></span><font face="monospace" size="1">       <a href="mailto:parentef@luiss.it" target="_blank">parentef@luiss.it</a></font> </font></div><div><br></div></div></div></div></div></div></div></div></div></div>
<span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span>Qgis-user@lists.osgeo.org</span><br><span>List info: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br><span>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br></div></blockquote></div></div></body></html>