Package Exports
- distance-between-points
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 (distance-between-points) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
distance-between-points
A module to get the distance between points on the Earth.
Usage
var example = {
reference: {
lat:48.763133,
lng:7.255974
},
point: {
lat:48.751905,
lng:7.256158
}
}
var distanceBtwPoints = require('distance-between-points');
distanceBtwPoints(example.point, example.reference, 'lat', 'lng');