Difficult to get Lat Long and Address
rajam1215 opened this issue · 5 comments
Hello @kibotu
Library is very accurate but the Lat Long and Address not coming properly from Library. library give location update with that manner
E/LocationTrackerService: onLocationResult [Location[fused 37.422065,-122.084084 hAcc=603 et=+2h8m29s292ms vAcc=??? sAcc=??? bAcc=???]]
Please make some methods in lib to fetch lat, long and address with functions (methods)
for example
getLat();
getLong;
getAddress();
Thanks
I believe you get a LocationResult
In your LocationTrackerService
the LocationResult returns you
-
an array of Locations
-
and the user's lastLocation as a Location
here you have the user's
- latitude
- longitude
- altitude
- speed
- bearing
- etc.
I believe you get a LocationResult
In your LocationTrackerService
the LocationResult returns you
- an array of Locations
- and the user's lastLocation as a Location
here you have the user's
- latitude
- longitude
- altitude
- speed
- bearing
- etc.
Hello @kibotu
So according to you location and last location is same thing, there is no change between the values of lastLocation and Location.
Thanks
location and last location is not the same, location is an array of all locations of the user since the last update, if you have high frequency updates it's going to be very small
you can stop services via
- Geofence#removeGeofence
- Geofence#removeAll
- LocationTracker#removeLocationUpdates
i've updated the readme based on your questions, also added comments in demo to show how to retrieve data