<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18702">
</head>
<body>
<div><font color="#808080" size="2" face="Verdana">
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">Hi,</span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">I am new user of this pgrouting users list. I hope used correctly.</span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">I used pgrouting 1.02 on postgres 8.2.17. At this time, I can't update Postgresql.</span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">There is a different comportment between 'shortest_path_astar' and 'driving_distance'&nbsp;functions when I use reverse_cost column.</span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">Here are&nbsp;graphe conditions :</span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font>&nbsp;</div>
<ul>
<li><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">For each edge without one-way : cost=reverse_cost=length</span></font>
</li><li><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">For each edge with one-way&nbsp;similar to digitalisation way : cost=length reverse_cost=-1 (or 100000)</span></font><span class="542210415-05012012">
</li><li><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">For each edge with one-way&nbsp;inverse of&nbsp;digitalisation way : cost=-1&nbsp; (or 100000)&nbsp;reverse_cost=length</span></font>
</li><li><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012">All another edges are not in graphe.</span></font></li></ul>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font>&nbsp;</div>
<div><span class="542210415-05012012"><font face="Verdana"><font color="#808080"><font size="2"><span class="257315713-05012012"><strong>shortest_path_astar:</strong></span>
</font></font></font>
<div><span class="257315713-05012012"><font color="#808080" size="2" face="Verdana"></font></span>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><em>has_reverse_cost = false :
</em></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="542210415-05012012">Edges with 'cost=-1' are forbiden and Pgrouting don't used them. 'Reverse_cost' information is not used.</span></span></font></div>
</span></span></div>
<div><font color="#808080" size="2" face="Verdana"><span class="542210415-05012012"></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><em>has_reverse_cost = true:</em>
</span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">Edges with 'cost=-1' are used if 'reserve_cost' is more than 0. Cost used by pgrouting is 'reserve_cost' column.</span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">Edges with 'reverse_cost=-1' are used if 'cost' is more than 0. Cost used by pgrouting is 'cost' column.</span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></font>&nbsp;</div>
</span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">T</span></span></span></font><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">his
 computing is correct.</span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></font>&nbsp;</div>
<div><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><strong>Driving_distance:</strong></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><strong></strong></span></font>&nbsp;</div>
<span class="257315713-05012012"><em><font color="#808080" size="2" face="Verdana">has_reverse_cost = false :
</font></em></span>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">Edges with 'cost=-1' are forbiden and Pgrouting don't used them. 'Reverse_cost'
 information is not used.</span></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></font>&nbsp;</div>
<div><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">
<div><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><font face="Verdana"><font color="#808080"><font size="2"><em>has_reverse_cost = true<span class="542210415-05012012">
</span>:</em> </font></font></font></span></span></span></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><em>Cas<span class="542210415-05012012">e one :&nbsp;Edge with</span>&nbsp;<span class="542210415-05012012">'</span>cost=-1<span class="542210415-05012012">'</span>&nbsp;<span class="542210415-05012012">
 and '</span>reverse_cost=<span class="542210415-05012012">length'</span>:</em></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">Edge can be traveled on digitalisation way ( cost =-1!!). Cost used by pgrouting
 is 'Reverse_cost'&nbsp;column.</span></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><em>Case two : Edge with cost=length&nbsp;<span class="542210415-05012012"> and
</span>reverse_cost=<span class="542210415-05012012">-1</span>:</em></span></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">Edge
 can be traveled on inverse digitalisation way. More,&nbsp; Cost used by pgrouting is 'cost' column.</span></span></span></span></span></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></span></span></span></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">In
 this two case, pgrouting don't respect restrictions. This computing is not correct.</span></span></span></span></span></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></span></span></span></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></span></span></span></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">Could
 you me if this result is normal or not ?</span></span></span></span></span></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></span></span></span></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">Sorry
 for my bad english and best regards</span></span></span></span></span></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></span></span></span></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></span></span></span></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012">Samuel
 -- Paris</span></span></span></span></span></span></span></span></font></div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></span></span></span></span></font>&nbsp;</div>
<div><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></span></font><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="257315713-05012012"><em><span class="542210415-05012012"></span></em></span></span></span></font></span></span></span></span><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"></span></font></span></span></span><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></font><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></font><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"><span class="542210415-05012012"></span></span></span></font><font color="#808080" size="2" face="Verdana"><span class="257315713-05012012"><span class="257315713-05012012"></span></span></font>&nbsp;</div>
</div>
</div>
</font></div>
<div>&nbsp;</div>
</body>
</html>