@artemis-prime/distance-sorter
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -87,6 +87,8 @@ 'use strict' | ||
let obj = parallelArrays.usableSet[each.key] | ||
obj.distanceMeters = each.distance | ||
obj.distanceYards = geolib.convertUnit('yd', each.distance, 2) | ||
obj.distanceMiles = geolib.convertUnit('mi', each.distance, 2) | ||
obj.distanceKM = geolib.convertUnit('km', each.distance, 2) | ||
obj.distance = { | ||
m: each.distance, | ||
yd: geolib.convertUnit('yd', each.distance, 2), | ||
mi: geolib.convertUnit('mi', each.distance, 2), | ||
km: geolib.convertUnit('km', each.distance, 2) | ||
}; | ||
result.push(obj) | ||
@@ -93,0 +95,0 @@ } |
{ | ||
"name": "@artemis-prime/distance-sorter", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Sorts an array of objects that have location data by distance from a point.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
204
6429