Skip to content

Latest commit

 

History

History
42 lines (39 loc) · 1.96 KB

File metadata and controls

42 lines (39 loc) · 1.96 KB

⚠️ This document is aim for older versions (from 2.0.0 to 2.2.9). Document for new version is https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/README.md


spherical utility

Methods

computeDistanceBetween Returns the distance, in meters, between two LatLngs.
computeOffset Returns the LatLng resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north).
computeOffsetOrigin Returns the location of origin when provided with a LatLng destination, meters travelled and original heading. Headings are expressed in degrees clockwise from North. This function returns null when no solution is available.
computeLength Returns the length of the given path.
computeArea Returns the area of a closed path.
computeSignedArea Returns the signed area of a closed path. The signed area may be used to determine the orientation of the path.
computeHeading Returns the heading from one LatLng to another LatLng. Headings are expressed in degrees clockwise from North within the range (-180,180).
interpolate Returns the LatLng which lies the given fraction of the way between the origin LatLng and the destination LatLng.