Comparing version 0.0.5 to 0.0.6
@@ -83,10 +83,11 @@ var config = require("./config") | ||
if(errorCallback) errorCallback(response, body); | ||
} else { | ||
var data = JSON.parse(body) | ||
,sortedData = {}; | ||
if(data.features !== undefined) { | ||
sortedData = app.sortByDistance(data.features, coords); // Sort by distance | ||
} | ||
promise.resolve(sortedData); | ||
if(successCallback) successCallback(sortedData); | ||
} | ||
var data = JSON.parse(body) | ||
,sortedData = {}; | ||
if(data.features !== undefined) { | ||
sortedData = app.sortByDistance(data.features, coords); // Sort by distance | ||
} | ||
promise.resolve(sortedData); | ||
if(successCallback) successCallback(sortedData); | ||
}); | ||
@@ -93,0 +94,0 @@ return promise; |
{ | ||
"name": "arcnearby", | ||
"description": "Generate bounding box around center point and search ArcGIS REST service for features within it, sorted by distance", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/timwis/arcnearby", | ||
@@ -6,0 +6,0 @@ "author": "Tim Wisniewski, Sarah Cordivano", |
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
7579
121