<div dir="ltr"><div>Thanks, Steve! I need to start first with something easier, since I see lots of gaps with my skills and this tool(/general pgrouting). I try to figure out it first in grass and if it goes fine, then pgrouting. Cheers, Laura<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/24 Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 7/24/2013 2:19 PM, Laura Kauria wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I'm new with pgrouting/postgresql and I would need some detailed<br>
instructions making distance matrix using road network. Can you lead me<br>
to a good source or give some instructions here to get started?<br>
<br>
Thanks in advance! I have mac and I'd like to use pgrouting via QGIS or<br>
grass.<br>
</blockquote>
<br></div></div>
Hi Laura,<br>
<br>
I will outline the process below, but you should read the docs for the details on how to do the steps:<br>
<br>
Say you have ten locations the you want to build a distance matrix for:<br>
<br>
1. map you locations to the nearest edge nearest end node<br>
2. for each node call pgr_kdijkstra() with the node as source and the remainder of nodes as targets.<br>
3. place the values in real8[][] array<br>
4. adjust the array to be symmetric ie: a[i,j] == a[j,i] (we only support symmetric TSP<br>
5. call pgr_tsp(a, start_id [, end_id])<br>
<br>
I have no idea how you would do this from QGIS or grass.<br>
<br>
Hope this helps,<br>
  -Steve<br>
______________________________<u></u>_________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org" target="_blank">Pgrouting-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-<u></u>users</a><br>
</blockquote></div><br></div>