Comparing version 1.1.0 to 1.1.1
@@ -23,2 +23,4 @@ var haversine = (function () { | ||
return { latitude: coordinates.lat, longitude: coordinates.lon } | ||
case '{lat,lng}': | ||
return { latitude: coordinates.lat, longitude: coordinates.lng } | ||
case 'geojson': | ||
@@ -25,0 +27,0 @@ return { latitude: coordinates.geometry.coordinates[1], longitude: coordinates.geometry.coordinates[0] } |
{ | ||
"name": "haversine", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A simple haversine module", | ||
@@ -5,0 +5,0 @@ "main": "haversine.js", |
@@ -16,2 +16,6 @@ var haversine = require('../haversine') | ||
} | ||
var startLatLngObject = { | ||
lat: 38.898556, | ||
lng: -77.037852 | ||
} | ||
var startGeoJson = { | ||
@@ -33,2 +37,6 @@ geometry: { | ||
} | ||
var endLatLngObject = { | ||
lat: 38.897147, | ||
lng: -77.043934 | ||
} | ||
var endGeoJson = { | ||
@@ -51,2 +59,4 @@ geometry: { | ||
[startLatLonObject, endLatLonObject, 0.549, { format: '{lon,lat}' }], | ||
[startLatLngObject, endLatLngObject, 0.341, { format: '{lat,lng}' }], | ||
[startLatLngObject, endLatLngObject, 0.549, { format: '{lat,lng}' }], | ||
[startGeoJson, endGeoJson, 0.341, { format: 'geojson' }], | ||
@@ -53,0 +63,0 @@ [startGeoJson, endGeoJson, 0.549, { format: 'geojson' }], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8129
125
7