Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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
--latlng Outputs LatLng instead of the default LngLat
--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.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.