Module: LatLng

Requires

Methods


<inner> getGreatCircleDistance(arg1, arg2)

Uses the haversine formula to get the great circle distance between this and another LatLng / lat & lng pair

Parameters:
Name Type Description
arg1 [WPGMZA.LatLng|Object|Number] Either a WPGMZA.LatLng, an object representing a lat/lng literal, or a latitude
arg2 (optional) If arg1 is a Number representing latitude, pass arg2 to represent the longitude
Returns:
number The distance "as the crow files" between this point and the other