GeoPoint improvements, closes #201

This commit is contained in:
Emux
2016-10-08 16:17:10 +03:00
parent ac7706eb7a
commit 8a27d14f9a
4 changed files with 191 additions and 80 deletions

View File

@@ -117,7 +117,7 @@ public class PathLayer extends VectorLayer {
synchronized (mPoints) {
/* get the great circle path length in meters */
double length = startPoint.distanceTo(endPoint);
double length = startPoint.sphericalDistance(endPoint);
/* add one point for every 100kms of the great circle path */
int numberOfPoints = (int) (length / 100000);