In android there are two separate functions to get Location:
- getLastLocation()
- getCurrentLocation()
getLastLocation returns the last known location of the device where, getCurrentLocation returns current location of the device by finding latest (current) location. getCurrentLocation takes some time to calculate where getLastLocation does not take any time.
In Huawei Location Kit, I found fusedLocation callback for location and getLastLocation(). Is there any method to get Current Location as in android. And what is the best way to get exact location of the device?