My mobile web app utilizes navigator.geolocation.watchPosition to track polylines and waypoints for historical walking tours. (A customer requirement no-native app)
My first testing was done in a vehicle due to bad weather and seemed to produce reasonable results when plotting the polyline on an embedded Google Map in real-time. However, when walking it produced a more zig zag line.
Some research has revealed that I need to filter the retrieved location instead of just calculating the distance of two points.
The suggested filter, Kalman filter, seems to be something over my head, and I'm wondering whether there is an open source implementation for JavaScript available, which can be of help for my use case.
An open source C/C++ implementation of the Kalman filter that could be compiled to JavaScript using emscripten might be of help too.