Comparing version 0.0.1 to 0.0.2
@@ -56,6 +56,6 @@ var module = module || {} | ||
,boundingBox = [ | ||
coords[0] - (mile[0] * radius) // xmin/left | ||
,coords[1] - (mile[1] * radius) // ymin/bottom | ||
,coords[0] + (mile[0] * radius) // xmax/right | ||
,coords[1] + (mile[1] * radius) // ymax/top | ||
coords[1] - (mile[0] * radius) // xmin/left | ||
,coords[0] - (mile[1] * radius) // ymin/bottom | ||
,coords[1] + (mile[0] * radius) // xmax/right | ||
,coords[0] + (mile[1] * radius) // ymax/top | ||
]; | ||
@@ -75,3 +75,3 @@ console.log(boundingBox); | ||
_.each(features, function(feature) { | ||
feature.attributes.distance = app.getCoordDistance(coords, [feature.geometry.x, feature.geometry.y]); | ||
feature.attributes.distance = app.getCoordDistance(coords, [feature.geometry.y, feature.geometry.x]); | ||
results.push(feature); | ||
@@ -78,0 +78,0 @@ }); |
@@ -5,3 +5,3 @@ var arcnearby = require("./arcnearby") | ||
var coords = [-75.1661,39.9365] | ||
var coords = [39.9365,-75.1661] | ||
,boundingBox = arcnearby.getBoundingBox(coords, 1.0); | ||
@@ -8,0 +8,0 @@ arcnearby.query("cornerStores", boundingBox, function(response, body) { |
{ | ||
"name": "arcnearby", | ||
"description": "Generate bounding box around center point and search ArcGIS REST service for features within it, sorted by distance", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/timwis/ArcNearby", | ||
@@ -6,0 +6,0 @@ "author": "Tim Wisniewski, Sarah Cordivano, David Walk", |
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