Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arcnearby

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arcnearby - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

arcnearby.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc