Are there any chances that expo-location's getCurrentPositionAsync() can return cached location?

325 Views Asked by At

I am using getCurrentPositionAsync() form expo-location to get user current location.

Requests for one-time delivery of the user’s current location. Depending on given accuracy option it may take some time to resolve, especially when you’re inside a building.

As per above info from expo documentation, getCurrentPositionAsync() returns the current location of the user. But I have observed in my React-Native app that getCurrentPositionAsync() returns some other locations when I request for current location.

Hence, I would like to know that, Are there any chances that getCurrentPositionAsync() can return cached location as well?

1

There are 1 best solutions below

3
Brandonjgs On

In my case I have used getCurrentPositionAsync() with accuracy: 6 and every you request the location, expo gives you a different even if you stay in the same position. The coordenates can variate with the true coordenates for 3m, 8m and sometimes for more of 15m.