0.0.0 • Published 6 years ago
total-distance v0.0.0
total-distance
A module to get the total distance from a list of points on the Earth.
var example = [{lat:48.7436408996582,lng:7.2582902908325195},{lat:48.74357223510742,lng:7.2582526206970215},{lat:48.74335479736328,lng:7.258235931396484}];
var totalDistance = require('total-distance');
totalDistance(example, 'lat', 'lng');
0.0.0
6 years ago