Git Product home page Git Product logo

sidewalkwidths-nyc's Introduction

Sidewalk Widths NYC

Sidewalk Widths NYC uses New York City's Sidewalk dataset to produce a map of sidewalk widths for the 5 boroughs.

This repo contains the notebooks to reproduce this work, as well as the finished Sidewalk Width dataset in GeoJSON format.

Link

www.sidewalkwidths.nyc

Methodology

  1. Polygons from NYC open data Sidewalk Polygons

  2. Dissolve adjacent sidewalk polygons Sidewalk Polygons Dissolved

  3. Find sidewalk centerlines Centerlines

  4. Remove short ends and simplify Centerlines Simplified

  5. Measure distance from centerlines to original polygon Centerlines Widths

Forking

If you want to make a version of Sidewalk Widths for your own city, just fork this repo and use whatever portion of the code you like. Not all cities will have publicly accessible planimetric sidewalk data, so you may need to produce the sidewalk dataset in a different way (i.e. curbs to parcel boundaries).

The website should work with only a few changes. I've consolidated most of the variables you need to customize in a file called settings.js. It should include things like your Mapbox token, sidewalk width ratings, and units of measurement for you to customize.

Mapbox

Sidewalk widths uses Mapbox for the custom map style and serve the sidewalk widths data as a tileset. If you're creating your own version of the site you must make a Mapbox account and replace the access token with your own. My access token is restricted to the www.sidewalkwidths.nyc URL.

Tilesets

To create a tileset from your sidewalk width GeoJSON, following the Mapbox documentation here.

Custom Style

You can copy the sidewalk widths custom Mapbox style here.

sidewalkwidths-nyc's People

Contributors

meliharvey avatar chriswhong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.