<div>hi Daniel, thanks for the link..</div>
<div>&nbsp;</div>
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left">I did the following:</div>
<div dir="ltr" style="TEXT-ALIGN: left">&nbsp;</div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><b><span lang="EN" style="mso-ansi-language: EN"><font size="3"><font face="Times New Roman">UPDATE calle SET to_cost=length(the_geom), reverse_cost=length(the_geom);</font></font></span></b></div>

<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><b><span lang="EN" style="mso-ansi-language: EN"><font size="3"><font face="Times New Roman"></font></font></span></b>&nbsp;</div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><b><span lang="EN" style="mso-ansi-language: EN"><font size="3"><font face="Times New Roman">UPDATE calle SET reverse_cost=reverse_cost + 1000000 WHERE oneway!=0 ,&nbsp; oneway!=0 are one way streets.</font></font></span></b></p>

<div>my query:</div>
<div>&nbsp;</div>
<div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN" style="mso-ansi-language: EN"><font size="3"><font face="Times New Roman">SELECT edge_id as gid,cost as length FROM shortest_path_astar(&#39;SELECT gid AS id,source::int4, target::int4, to_cost::double precision as cost, reverse_cost::double precision, x1,y1,x2,y2 FROM calle&#39;,3412,3411,false,true)<b></b></font></font></span></p>
</div>
<div>&nbsp;</div>
<div>this do not works 100%, with some street works with others no... </div>
<div>&nbsp;</div>
<div>
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left">I am missing something?</div></div>
<div>&nbsp;</div>
<div>RG<br><br></div>
<div class="gmail_quote">2009/2/11 Daniel Kastl <span dir="ltr">&lt;<a href="mailto:kastl@orkney.co.jp">kastl@orkney.co.jp</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">So I guess pgRouting doesn&#39;t know that there is a one way street.<br>You might want to read this: <a href="http://pgrouting.postlbs.org/wiki/OneWayStreets" target="_blank">http://pgrouting.postlbs.org/wiki/OneWayStreets</a><br>
<br>Daniel<br><br><br>Valeria Muņoz schrieb:<br>
<div>
<div></div>
<div class="Wj3C7c">&gt; HI!!<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; I have a little problem with my routing, the best path from A to<br>&gt; B do not respect the traffic direction.<br>&gt; attached image.<br>&gt;<br>&gt; please check in the example vicente perez rosales street<br>
&gt;<br>&gt; Query<br>&gt;<br>&gt; rt.gid,rt.the_geom AS tg, AsText(rt.the_geom) AS wkt,<br>&gt; length(rt.the_geom) AS length, calle.gid FROM calle, (SELECT gid,<br>&gt; the_geom FROM dijkstra_sp_delta( &#39;calle&#39;, 3414, 3406, 3000) ) as rt<br>
&gt; WHERE calle.gid=rt.gid;<br>&gt;<br>&gt;<br>&gt; RG<br>&gt;<br></div></div>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>
&gt;<br>&gt; _______________________________________________<br>&gt; Pgrouting-users mailing list<br>&gt; <a href="mailto:Pgrouting-users@lists.postlbs.org">Pgrouting-users@lists.postlbs.org</a><br>&gt; <a href="http://lists.postlbs.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.postlbs.org/mailman/listinfo/pgrouting-users</a><br>
&gt;<br><br></blockquote></div><br>