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

cross-street-indexer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-street-indexer - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

15

bin/cross-street-search.js

@@ -11,6 +11,6 @@ #!/usr/bin/env node

--output [cross-street-index] filepath to Cross Street index output folder
--bbox (not implemented) Excludes Tiles by BBox
--tiles Excludes by an Array of Tiles
--tiles Lookup index files via Tiles or Quadkeys
--bbox (not implemented) Lookup index files via BBox
Examples:
$ cross-street-search "Chester St" "ABBOT AVE."
$ cross-street-search "Chester St" "ABBOT AVE." --tiles '["023010221110"]'
`);

@@ -38,4 +38,11 @@

options.tiles = JSON.parse(options.tiles);
if (!Array.isArray(options.tiles[0]) || options.tiles[0].length !== 3) throw new Error('invalid tiles');
if (Array.isArray(options.tiles)) {
if (typeof options.tiles[0] === 'number') throw new Error('quadkeys must be strings');
else if (
typeof options.tiles[0] !== 'string' &&
Array.isArray(options.tiles) &&
options.tiles[0].length !== 3) throw new Error('tiles must contain 3 numbers [x,y,z]');
} else throw new Error('invalid tiles');
}
// Load all tiles from folder (if Tiles not defined)

@@ -42,0 +49,0 @@ if (!options.tiles) {

{
"name": "cross-street-indexer",
"version": "0.2.0",
"version": "0.2.1",
"description": "Cross Street Indexer",

@@ -5,0 +5,0 @@ "main": "index.js",

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