Update documentation to change Haversines Formula to Spherical Law of… (#5791)

* Update documentation to change Haversines Formula to Spherical Law of Cosines

* update distance to

* reverse prior change
This commit is contained in:
Lois 2017-09-24 06:51:14 -04:00 committed by Per Liedman
parent 37b9947d5b
commit 8a433a2272

View File

@ -67,7 +67,7 @@ LatLng.prototype = {
},
// @method distanceTo(otherLatLng: LatLng): Number
// Returns the distance (in meters) to the given `LatLng` calculated using the [Haversine formula](http://en.wikipedia.org/wiki/Haversine_formula).
// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
distanceTo: function (other) {
return Earth.distance(this, toLatLng(other));
},