Closed AlmasB closed 11 years ago
I haven't tested this yet but it's just occurred to me that this won't be right - lat and LNG are not in metres, but that's what the location manager expects. Must be a method for converting LL to metres.
Actually, I suppose distance between does give a value in metres...silly me.
I used my wrapper distanceBetween() from PlaceSearchActivity to take 2 LL and convert them to 2 locations, so we can invoke http://developer.android.com/reference/android/location/Location.html#distanceTo%28android.location.Location%29
It does return approx dist in metres, it's also in float since we use that for requestLocatinoUpdates() which takes float for minDistance
Removed updates before setting new ones. Nevertheless we'll need a good test of how it works in due time