From a036ffff1b016bfd8fa41982e49d288918524412 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 17 Mar 2010 23:12:38 +0000 Subject: [PATCH] reverted previous comment change - the comment was correct, we are dealing with kilometers here. non-functional change. git-svn-id: http://svn.openlayers.org/trunk/openlayers@10108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 37fded9c89..f4716ffb7d 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -902,9 +902,9 @@ OpenLayers.Util.rad = function(x) {return x*Math.PI/180;}; * p2 - {} (or any object with both .lat, .lon properties) * * Returns: - * {Float} The distance (in m) between the two input points as measured on an + * {Float} The distance (in km) between the two input points as measured on an * ellipsoid. Note that the input point objects must be in geographic - * coordinates (decimal degrees) and the return distance is in meters. + * coordinates (decimal degrees) and the return distance is in kilometers. */ OpenLayers.Util.distVincenty=function(p1, p2) { var a = 6378137, b = 6356752.3142, f = 1/298.257223563;