whyceewhite / CarLess

Logging commuting trips completed using transit or pedestrian modes of transportation.
0 stars 0 forks source link

Some tracked waypoints are locating in a haphazard manner #82

Closed whyceewhite closed 8 years ago

whyceewhite commented 9 years ago

During several executions, the mapping waypoints will occur in random, nearby locations. The result is a mapping polyline and distance that is a little off and some that are wildly off. (The car drive did better than the walk in the park.)

This RW resource indicates that a CLLocation.horizontalAccuracy greater than 20 should be ignored. Upon looking at my device's data, I noticed that many of the waypoints had horizontalAccuracy values > 20.

Therefore, make the proper adjustments as outlined in the abovementioned resource.

whyceewhite commented 8 years ago

Addressed in commit c388612b8bae125d2403a276e56a47074da502e3.

This was happening because the horizontal accuracy was not being filtered. Set the filter to 20 meters. Also, filtered out locations that are greater than 3 seconds old.