cross-street-indexer
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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", |
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
24637
602