diff --git a/readme.txt b/readme.txt index 0e1c409..d11cf11 100644 --- a/readme.txt +++ b/readme.txt @@ -56,9 +56,9 @@ The attributes are: 1. donotreducegpx: Print all the point without reduce it (default is FALSE) -1. pointsoffset: Skip points closer than XX metres(default is 10) +1. pointsoffset: Skip points closer than XX meters(default is 10) -1. uom: the unit of measure values are: 0, 1 (0 = metres, 1 = miles/feet) +1. uom: the unit of measure values are: 0, 1 (0 = meters, 1 = miles/feet) 1. mlinecolor: map line color (default is #3366cc) diff --git a/wp-gpx-maps_Utils.php b/wp-gpx-maps_Utils.php index d2fc4ad..3e86a1f 100644 --- a/wp-gpx-maps_Utils.php +++ b/wp-gpx-maps_Utils.php @@ -220,7 +220,7 @@ { $alpha = (float)sin((float)toRadians((float) $lat2 - (float) $lat1) / 2); $beta = (float)sin((float)toRadians((float) $lon2 - (float) $lon1) / 2); - //Distance in metres + //Distance in meters $a = (float) ( (float)$alpha * (float)$alpha) + (float) ( (float)cos( (float)toRadians($lat1)) * (float)cos( (float)toRadians($lat2)) * (float)$beta * (float)$beta ); $dist = 2 * 6369628.75 * (float)atan2((float)sqrt((float)$a), (float)sqrt(1 - (float) $a)); $d = (float)sqrt((float)pow((float)$dist, 2) + pow((float) $lat1 - (float)$lat2, 2)); diff --git a/wp-gpx-maps_admin.php b/wp-gpx-maps_admin.php index f7d9951..6a4cc45 100644 --- a/wp-gpx-maps_admin.php +++ b/wp-gpx-maps_admin.php @@ -91,8 +91,8 @@ function WP_GPX_Maps_html_page() {