calculate-relative-coordinates
v1.0.1
Published
Calculate a new point given an original point, a distance, and a bearing
Downloads
4
Readme
calculate-relative-coordinates
This function uses spherical trigonometry to compute new geographic (latitude, longitude) coordinates by traveling a certain distance along a specific bearing. This has a number of use cases, including determining the vertices of a square surrounding a given point in order to find nearby locations.
Install
npm install calculate-relative-coordinates