Giter Site home page Giter Site logo

mdejean / parking Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 250.34 MB

map of nyc's curbside parking spaces

Home Page: https://marcel.dejean.nyc/parking/map/

License: GNU General Public License v2.0

PLpgSQL 1.10% C 40.91% JavaScript 15.28% Shell 2.62% PHP 32.03% HTML 8.07%
curbside-parking-space parking transport transportation-planning

parking's Introduction

parking/map

A map showing the amount of curbside parking space in New York City.

See it online

https://marcel.dejean.nyc/parking/map/

Run it locally

  1. Install the dependencies
  2. Add the user who will be running the script to postgres createuser -d myusername
  3. Create the template database sudo -u postgres psql -f postgis_template.sql
  4. Get the data and put it in import/
  5. Run ./import.sh
  6. Run ./update_map.sh
  7. Run php -S localhost:8080
  8. Go to http://localhost:8080/map/ in your browser

Data

These datasets must be unzipped and placed in import/

Dependencies

License

Except as otherwise noted, this software is distributed under the terms of the GNU General Public License, version 2 or later. See LICENSE for the full text. Alternate licensing is available.

Parts based on jamesbursa/analyze-nyc-parking-signs (MIT License)

parking's People

Contributors

mdejean avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

parking's Issues

Eliminate csvkit dependency

ogr2ogr works just fine for reading csv files, e.g.

ogr2ogr -f "PostgreSQL" PG:"dbname=parking" import/Active_DCA-Licensed_Garages_and_Parking_Lots.csv -nln import_garage -oo AUTODETECT_TYPE=YES

but type autodetection is a little too aggressive, so need to create .csvt files for each csv

Streets with parking but no signs

These are common throughout Staten Island, Queens, and some parts of the Bronx and Brooklyn. Some might be included - they can have PL/CL/BL entries in "sign". Still the relatively low number of spaces claimed for Staten Island implies most don't. They could be included by checking the number_par(king_lanes) in street_segment.

Handle back-in parking signs

e.g. PS-8A: BACK IN 60 DEG PARKING ONLY which results in roughly 10 ft per parking space, or PS-2A: BACK IN 90 DEG PARKING ONLY <-> which results in roughly 8 ft per space.

Better arrow direction handling

e.g.

P-01413918 on the W side of EAST 59 STREET from AVENUE M to AVENUE N contains only one sign, arrow 1 hour metered parking. It should be the few spaces at the end but is misinterpreted as pointing the other way, the whole block.

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.