1.0.0 • Published 4 years ago

proximity-finder v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

This module is a utility that will find the locations that fall within a specified range, given a set of coordinates of end locations, and the coordinates of a start location.

The algorithm used here to calculate is the Haversine Formula, that yields the distance between two coordinate pairs on a sphere.

The function takes in as parameters a coordinate pair({latitude, longitude}) as start location, list of coordinate pairs ( {latitude, longitude}, {...} ) as end locations, and returns the distance in kilometres.