filtering gps history points


i am trying to filter my gps history points.

firstly, i would like to ignore/combine points if they are too close to the previous position.

i can do this like so.

$old_lat = $old_long = "0";

foreach($history['data'] as $record) {

//calculate distance in meters

$distance = distance($record['latitude'], $record['longitude'], $old_lat, $old_long, "V");

if($distance >= 300) {

echo 'add(jQuery(this), number += 1, "' . date("d-m-Y @ h:i:s",$record['timestamp']) . '", "[url removed, login to view]' . $name . 'u=' . $history['user'] . '", "' . $history['user'] . '", "' . $record['latitude'] . '", "' . $record['longitude'] . '");';

$old_lat = $record['latitude'];

$old_long = $record['longitude'];


the problem with the above is that if i arrive home at 6pm on friday and stay outside my house for 24hours, it will show the latest position as at 6pm on fri.

i would like it to show a position outside my house but with a date 'from and to' time like (28/10/11 18:00 - 29/10/11 18:00) rarther than just (28/10/11 18:00) which looks inacurate.

secondly i would like a sanity check on positions as i do sometimes receive some dodgy points.

so something like - check the time differance and the distance difference between the two points and calulate the speed that would be required for it, if speed is over 90/100mph do not show it as it is probably inacurate.

£20 budget

FYI - Using GMAP3 google maps V3 API for maps - markers - polylines to display history data.

Skills: HTML, Javascript, PHP

See more: latest jquery, jquery api google, timestamp, points, php gps, my points, longitude, latitude, history], history, GPS, gps name, GPS maps, d points, c# gps, c gps, google api date time, maps distance, javascript time difference, jquery positions, gps check, jquery date add, gmap3 add, fri data, distance calculate

About the Employer:
( 8 reviews ) Harrogate, United Kingdom

Project ID: #1270840

2 freelancers are bidding on average £250 for this job


Hi, We have experience with GPS Tracking Web App, Please check PMB.

£250 GBP in 5 days
(6 Reviews)

please check PMB

£250 GBP in 5 days
(0 Reviews)