on-every-corner

Find road intersections (aka taco truck locations) in OSM data.

MIT License

Stars
6

On Every Corner

Find road intersections (aka taco truck locations) in OSM data.

Running

Assuming an EC2 Ubuntu 14.04 machine:

  1. 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
    
  2. Clone this repo

    git clone https://github.com/iandees/on-every-corner.git
    
  3. Install dependencies

    cd on-every-corner
    npm install
    
  4. 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
    
  5. Optionally modify index.js to comment out or change the bbox parameter to restrict the area of interest.

  6. 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