diff --git a/readme.txt b/readme.txt index d11cf11..0e1c409 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 meters(default is 10) +1. pointsoffset: Skip points closer than XX metres(default is 10) -1. uom: the unit of measure values are: 0, 1 (0 = meters, 1 = miles/feet) +1. uom: the unit of measure values are: 0, 1 (0 = metres, 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 3e86a1f..d2fc4ad 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 meters + //Distance in metres $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 6a4cc45..f7d9951 100644 --- a/wp-gpx-maps_admin.php +++ b/wp-gpx-maps_admin.php @@ -91,8 +91,8 @@ function WP_GPX_Maps_html_page() {
  • mtype: map aviable types are: HYBRID, ROADMAP, SATELLITE, TERRAIN
  • waypoints: print the gpx waypoints inside the map (default is FALSE)
  • donotreducegpx: Print all the point without reduce it (default is FALSE)
  • -
  • pointsoffset: Skip points closer than XX meters(default is 10)
  • -
  • uom: the unit of measure values are: 0, 1 (0 = meters, 1 = miles/feet)
  • +
  • pointsoffset: Skip points closer than XX metres(default is 10)
  • +
  • uom: the unit of measure values are: 0, 1 (0 = metres, 1 = miles/feet)
  • mlinecolor: map line color (default is #3366cc)
  • glinecolor: graph line color (default is #3366cc)
  • diff --git a/wp-gpx-maps_admin_settings.php b/wp-gpx-maps_admin_settings.php index 3d98dde..13b11ac 100644 --- a/wp-gpx-maps_admin_settings.php +++ b/wp-gpx-maps_admin_settings.php @@ -51,7 +51,7 @@ Unit of measure: @@ -73,7 +73,7 @@
    Do not edit if you don't know what you are doing!
    - Skip points closer than meters. + Skip points closer than metres. onchange="this.value = (this.checked)" />Do not reduce gpx.