Topic: GeoPoint.Distance : result is not in meters ?
Hello,
I'm trying to do something where if the distance is lower than some threshold, I do stuff. I'm trying to use GeoPoint.Distance(), but it seems that the results are not in meters, contrary to what the documentation says ?
Here's a little test I did. Google Maps calculates ~161 meters, but the result I get is 0.2453885.
Here's the code :
GeoPoint p1 = new GeoPoint(48.114779, -1.670222);
GeoPoint p2 = new GeoPoint(48.114819, -1.668018);
Debug.Log($"Expected ~161 meters. Got {GeoPoint.Distance(p1, p2)}");Maybe there's something I'm missing ?
Thanks in advance for your help !