Package Exports
- haversine-dist
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (haversine-dist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Fast, minimalist library to calculate distance between two points.
Quick Start
var haversine = require('haversine-dist');
var dist = haversine.calculate([42.484239, -83.460072], [42.482562, -83.471546], 'feet');Installation
Run npm install -g haversine-dist
Parameters
First parameter is an array with the lat, then the long of the first point
Second parameter is an array with the lat, then the long of the second point
Third parameter is unitOfMeasure - feet, km, or miles. miles is the default.
Returns
The distance