<div>Hi</div>
<div>  </div>
<div>
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left">After a while I returned to my work pgrouting. I&#39;m trying to define whether a user should turn right or left with the function azimuth .</div>
<div dir="ltr" style="TEXT-ALIGN: left">
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left"> </div>
<div dir="ltr" style="TEXT-ALIGN: left">My problem is: does not work:) I&#39;m doing something wrong.</div></div>
<div dir="ltr" style="TEXT-ALIGN: left"> </div>
<div dir="ltr" style="TEXT-ALIGN: left">My query:</div>
<div dir="ltr" style="TEXT-ALIGN: left"> </div>
<div dir="ltr" style="TEXT-ALIGN: left">A-SELECT azimuth(startpoint(the_geom),endpoint(the_geom)) as azimuth from calle where gid = 4390<br>B-SELECT azimuth(startpoint(the_geom),endpoint(the_geom)) as azimuth from calle where gid = 7326<br>
C-SELECT azimuth(startpoint(the_geom),endpoint(the_geom)) as azimuth from calle where gid = 4392<br>D-SELECT azimuth(startpoint(the_geom),endpoint(the_geom)) as azimuth from calle where gid = 4402</div>
<div dir="ltr" style="TEXT-ALIGN: left"> </div>
<div dir="ltr" style="TEXT-ALIGN: left">
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left">After obtaining the results:</div>
<div dir="ltr" style="TEXT-ALIGN: left">
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left">I compare A con B if the result is &lt;1=turn left &gt;1 tunr right</div>
<div dir="ltr" style="TEXT-ALIGN: left">
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left">I compare B con C if the result is &lt;1=turn left &gt;1 tunr right</div>
<div dir="ltr" style="TEXT-ALIGN: left">
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left">I compare C con D if the result is &lt;1=turn left &gt;1 tunr right</div>
<div dir="ltr" style="TEXT-ALIGN: left"> </div>
<div dir="ltr" style="TEXT-ALIGN: left"> </div>
<div dir="ltr" style="TEXT-ALIGN: left">
<div id="result_box" dir="ltr" style="TEXT-ALIGN: left">can someone please guide me?</div></div>
<div dir="ltr" style="TEXT-ALIGN: left">RG</div></div></div></div></div></div>