<br><div class="gmail_quote">On Fri, Mar 28, 2008 at 5:37 PM, Andy Robinson (blackadder) <<a href="mailto:blackadderajr@googlemail.com">blackadderajr@googlemail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Frederik Ramm wrote:<br>
>Sent: 28 March 2008 5:10 PM<br>
>To: Raphael Mack<br>
>Cc: <a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
>Subject: Re: [OSM-talk] JOSM update / why does API return GPS points in<br>
>descending order?<br>
<div class="Ih2E3d">><br>
>Hi,<br>
><br>
>> mh, I guess this cannot be fixed in josm, since the the server returns<br>
>the<br>
>> stored gps points in arbitrary order. I would even suggest not to draw<br>
>any<br>
>> direction arrows for gps data from the server.<br>
><br>
>But they can't be too arbitrary since drawing lines in between the<br>
>points would reveal a completely chaotic picture otherwise. I think<br>
>David Earl is right about sorting by timestamp since this is what's in<br>
>the API source:<br>
<br>
</div>And since its rare for two people to have the same time period for the same<br>
area by chance it generally works (just back to front). But of course that<br>
cant be guaranteed, especially if the area is large.<br>
</blockquote><div><br>It would happen though when there's been a mapping party.<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Cheers<br>
<font color="#888888"><br>
Andy<br>
</font><div><div></div><div class="Wj3C7c"><br>
><br>
>points = Tracepoint.find_by_area(min_lat, min_lon, max_lat, max_lon,<br>
>:offset => offset, :limit => TRACEPOINTS_PER_PAGE, :order => "timestamp<br>
>DESC" )<br>
><br>
>... and the "DESC" nicely explains the observation that all arrows are<br>
>in the wrong direction! I wonder why it is there. TomH?<br>
><br>
>Bye<br>
>Frederik<br>
><br>
>_______________________________________________<br>
>talk mailing list<br>
><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk" target="_blank">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br>
<br>
<br>
_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk" target="_blank">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br>
</div></div></blockquote></div><br>