[OSM-talk] JOSM update / why does API return GPS points in descending order?
Frederik Ramm
frederik at remote.org
Fri Mar 28 17:10:23 GMT 2008
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:
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
More information about the talk
mailing list