java - Android latlng distance calculation port from javascript -
this code used in javascript check if 2 latlangs near. want same in android.
how can it?
var samethreshold = 0.1; if (google.maps.geometry.spherical.computedistancebetween(latlng1,latlng2) < samethreshold)