Why Location.distanceBetween throws an exception in the following example:
Location.distanceBetween(51.5175431381974,-0.1501073187713473, 51.5173695544231, -0.15127676190184, results);
I checked the same positioning here , and the distance was reported as 0.08319 km, and I'm not sure why it throws an exception:
java.lang.IllegalArgumentException: results is null or has length < 1
source share