Start a new topic
Solved

Location received jumps about quite a large distance

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 

image

 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

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.
  • Test outside

Let me know if this improves your performance.


Thanks

Eva

 

Login or Signup to post a comment