[OSM-talk] JOSM update / why does API return GPS points in descending order?
80n
80n80n at gmail.com
Fri Mar 28 22:30:53 GMT 2008
On Fri, Mar 28, 2008 at 5:37 PM, Andy Robinson (blackadder) <
blackadderajr at googlemail.com> wrote:
> Frederik Ramm wrote:
> >Sent: 28 March 2008 5:10 PM
> >To: Raphael Mack
> >Cc: talk at openstreetmap.org
> >Subject: Re: [OSM-talk] JOSM update / why does API return GPS points in
> >descending order?
> >
> >Hi,
> >
> >> mh, I guess this cannot be fixed in josm, since the the server returns
> >the
> >> stored gps points in arbitrary order. I would even suggest not to draw
> >any
> >> direction arrows for gps data from the server.
> >
> >But they can't be too arbitrary since drawing lines in between the
> >points would reveal a completely chaotic picture otherwise. I think
> >David Earl is right about sorting by timestamp since this is what's in
> >the API source:
>
> And since its rare for two people to have the same time period for the
> same
> area by chance it generally works (just back to front). But of course that
> cant be guaranteed, especially if the area is large.
>
It would happen though when there's been a mapping party.
>
> Cheers
>
> Andy
>
> >
> >points = Tracepoint.find_by_area(min_lat, min_lon, max_lat, max_lon,
> >:offset => offset, :limit => TRACEPOINTS_PER_PAGE, :order => "timestamp
> >DESC" )
> >
> >... and the "DESC" nicely explains the observation that all arrows are
> >in the wrong direction! I wonder why it is there. TomH?
> >
> >Bye
> >Frederik
> >
> >_______________________________________________
> >talk mailing list
> >talk at openstreetmap.org
> >http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20080328/0779b1ca/attachment.html>
More information about the talk
mailing list