jimburton / BigArrow

MIT License
1 stars 10 forks source link

Testbranch #20

Closed AlmasB closed 11 years ago

AlmasB commented 11 years ago

Removed updates before setting new ones. Nevertheless we'll need a good test of how it works in due time

jimburton commented 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.

jimburton commented 11 years ago

Actually, I suppose distance between does give a value in metres...silly me.

AlmasB commented 11 years ago

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