Skip to content

Latest commit

 

History

History
42 lines (39 loc) · 1.82 KB

File metadata and controls

42 lines (39 loc) · 1.82 KB

💚 This is the latest document.

spherical utility


API Reference

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.