I'm trying to build a tracking application with the geolocation api. The goal is a smooth and accurate mobile position tracking for pedestrians. When using the esri track widget I run into accuracy problems. The location point jumps around a lot and there are deviations from the actual location up to a few kilometers.
Track current location | ArcGIS API for JavaScript 4.9
Having tried the geolocation options like "maximumAge", "timeout" & "enableHighAccuracy" there were no significant improvements.
I also testet it on different devices and the issues where the same for all off them (iOs, Android).
Having tried different applications this one worked quite good. https://openlayers.org/en/latest/examples/geolocation-orientation.html . I also like how the device heading works in this example but couldnt figure out how to use it with the arcgis javascript api.
So are there any tools for the javascript 4.9 api that I could use?