Find road intersections (aka taco truck locations) in OSM data.
MIT License
Find road intersections (aka taco truck locations) in OSM data.
Assuming an EC2 Ubuntu 14.04 machine:
Install node and git
sudo apt-get install git
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Clone this repo
git clone https://github.com/iandees/on-every-corner.git
Install dependencies
cd on-every-corner
npm install
Download the OSM QA Tiles extract for your area of interest
wget https://s3.amazonaws.com/mapbox/osm-qa-tiles/latest.country/united_states_of_america.mbtiles.gz
gzip -d united_states_of_america.mbtiles.gz
Optionally modify index.js
to comment out or change the bbox
parameter to restrict the area of interest.
Run the script. It will write to stdout
, so if you want to save line-delimited GeoJSON features to a file, you'll have to redirect the output. Alternatively, you can pipe it straight to tippecanoe
to generate data to map in something like Mapbox Studio.
node index.js > intersections.geojson