expo-location-example icon indicating copy to clipboard operation
expo-location-example copied to clipboard

Latitude and Longitude not showing up correctly.

Open Anirud2002 opened this issue 2 years ago • 0 comments

I'm building an iOS app and for some reason , the expo-location doesn't give me correct value for my current-location. I'm using Location.watchPositionAsync() function. let locationSubscription = await Location.watchPositionAsync({ accuracy: Location.Accuracy.Highest, distanceInterval: 50 //meters }, location => { currentLocation = location.coords console.log(currentLocation) setCurrentLocation(currentLocation) })

I know for sure that I am not getting the correct latitude and longitude value because I compared it with the value of google maps and they are completely different.

Anirud2002 avatar May 08 '22 00:05 Anirud2002