| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple project showing how to use location services to measure speed. The sample app reports helpful data (location coordinates, accuracy, sampling timeframe)
Deriving speed from location data works better at higher speed (say, over 20 km/h).
Backlogged samples may be considered to refine the output. This approach is implemented using a confidence parameter. Not receiving location updates while not moving is a problem. This is crudely addressed using a timeout (an alternative).
With newer devices it is possible to leverage Core Motion or equivalent via a custom plugin.
The method used here does not aim at producing smooth results. If you need smooth results, consider using extrapolation or accelerometric data.
To extract distances from geographic coordinates, I adapted [nifty JS code by Chris Veness] (http://www.movable-type.co.uk/scripts/latlong.html) at movable-type.co.uk
| Back | FazBrowse Home | New Git URL |