expo-location-example
expo-location-example copied to clipboard
Latitude and Longitude not showing up correctly.
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.