View Single Post
Posts: 166 | Thanked: 106 times | Joined on Dec 2007 @ Finland
#6
Originally Posted by fragos View Post
GPS fix to GPX fix gives a strait line -- as the crow flies distance, not miles driven. When I forget to check the odometer I use the mileage from from Google Maps directions. If you had a GPX route file used by Maemo Mapper and others you could calculate the driving distance because you'd have lat/lon for each turn and points in between.
I know. Calculating the distance between the points:

http://en.wikipedia.org/wiki/Great-circle_distance

I have been experimenting with this for other purposes. I do also know that liblocation library includes this calculation

http://maemo.org/api_refs/5.0/5.0-fi...nce-utils.html

and some applications on maemo already use it (ecoach for instance).

My doubts were in the cases where the fix is lost. You'd probably have to do some filtering with the location.
 

The Following User Says Thank You to jlu For This Useful Post: