Location received jumps about quite a large distance
A
Adam Ali
started a topic
over 6 years ago
i am receiving constant location updates and am logging out the distance to the geoObjects, for some reason the location seems to jump around quite abit sometimes more than 100+meters even though i am in the same position, although most locations received are fairly accurate some however are really inaccurate, this would not be good for the user experience of the app, is there any possible way i would fix this
The poi distance logs out green when the geoObject is visible
AR.context.onLocationChanged = World.locationChanged;
locationChanged: function locationChangedFn(lat, lon, alt, acc) {
World.userLocation = new AR.GeoLocation(lat,lon)
AR.logger.info(`${lat}, ${lon}, ${alt}`);
if (!World.initiallyLoadedData) {
PoiRadar.show();
$("#radarContainer").click(PoiRadar.clickedRadar);
World.initiallyLoadedData = true;
World.requestDataFromLocal();
}
},
1 Comment
Wikitude Support
said
over 6 years ago
Hello Adam,
GeoLocation features heavily depend on parameters like the accuracy of your GPS provider. So please:
Make sure you are testing with our latest SDK version, which is 6.1
Make sure that your GPS provider is accurate enough and also make sure to calibrate your phone before start testing. Note that the distance calculation highly depends on the accuracy of your LocationProvider implementation. I recommend using GooglePlay Location Service to not rely on a manual GPS fetching approach.
Adam Ali
i am receiving constant location updates and am logging out the distance to the geoObjects, for some reason the location seems to jump around quite abit sometimes more than 100+meters even though i am in the same position, although most locations received are fairly accurate some however are really inaccurate, this would not be good for the user experience of the app, is there any possible way i would fix this

The poi distance logs out green when the geoObject is visible