![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
cross-street-indexer
Advanced tools
Light weigth reverse geocoding for cross street 100% sourced from OSM QA Tiles.
lib/qa-tiles-filter.js
)lib/intersections.js
)ABBOT AVE. => abbot avenue
(lib/normalize.js
)road
& ref
tags (lib/geocoding-pairs
).lib/reducer.js
)npm
$ npm install --global cross-street-indexer
yarn
$ yarn global add cross-street-indexer
$ cross-street-indexer latest.planet.mbtiles --tiles [[654,1584,12]]
$ cross-street-search "Chester St" "ABBOT AVE." --tiles [[654,1584,12]]
-122.457711,37.688544
$ cross-street-indexer --help
Cross Street Indexer
Usage:
$ cross-street-indexer <qa-tiles>
Options:
--output [cross-street-index] Filepath to store outputs
--bbox Excludes QATiles by BBox
--tiles Excludes QATiles by an Array of Tiles
--debug [false] Enables DEBUG mode
Examples:
$ cross-street-indexer latest.planet.mbtiles
$ cross-street-indexer latest.planet.mbtiles --tiles [[654,1584,12]]
$ cross-street-indexer latest.planet.mbtiles --bbox [-122.519,37.629,-122.168,37.917]
$ cross-street-search --help
Cross Street Indexer
Usage:
$ cross-street-search <name1> <name2>
Options:
--output [cross-street-index] filepath to Cross Street index output folder
--tiles Lookup index files via an Array of Tiles or Quadkeys
--bbox Lookup index files via BBox
--stream Enables reading from streaming index file (ignores tiles options)
Examples:
$ cross-street-search "Chester St" "ABBOT AVE." --tiles [[654,1584,12]]
$ cross-street-search "Chester St" "ABBOT AVE." --tiles '["023010221110"]'
$ cat 023010221110.json | cross-street-search "Chester St" "ABBOT AVE."
Normalization should follow the following standards:
The Cross Street Index is stored in an easy to read key/value JSON Lines format.
<name1>+<name2>
){"abbot avenue+chester street":[-122.457711,37.688544]}
{"chester street+abbot avenue":[-122.457711,37.688544]}
{"chester street+lisbon street":[-122.45821,37.68796]}
{"lisbon street+chester street":[-122.45821,37.68796]}
{"hoffman street+lisbon street":[-122.456764,37.687179]}
name
: Street name (Abbot Avenue)ref
Reference number normaly used to tag highways numbershighway
classification (residential, primary, secondary)bridge
yes/notunnel
yes/no@id
OSM ID of street (way)Adding --debug
will store .geojson
items for each process & for each QA-Tile:
{
"tile": [
654,
1584,
12
],
"quadkey": "023010221110",
"features": 49003,
"lines": 2427,
"intersects": 1921,
"index": 3882
}
Additional files will be created in the debug/
folder:
debug/<quadkey>/lines.geojson
- Filtered (Multi)LinesString from QA-Tiledebug/<quadkey>/intersects.geojson
- Point which are intersecting roadsdebug/<quadkey>/index.json
- Final Cross Street indexdebug/<quadkey>/debug.json
- Debug detailsLoops would return multiple cross street matches, only the last matched point is stored.
Turning Circles without any names are exclude, thus not finding any matches.
FAQs
Blazing fast tile based geocoder that matches cross street (road intersections) entirely sourced by OSM QA Tiles.
The npm package cross-street-indexer receives a total of 1 weekly downloads. As such, cross-street-indexer popularity was classified as not popular.
We found that cross-street-indexer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.