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:
parent
37b9947d5b
commit
8a433a2272
@ -67,7 +67,7 @@ LatLng.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// @method distanceTo(otherLatLng: LatLng): Number
|
// @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) {
|
distanceTo: function (other) {
|
||||||
return Earth.distance(this, toLatLng(other));
|
return Earth.distance(this, toLatLng(other));
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user