Skip to content

codeforprinceton/saveYourCar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

saveYourCar

Peeved by potholes? Bored of bumps?

SaveYourCar is a project to provide optimal driving directions between two points while avoiding unfixed potholes. The pothole information is taken from the user-reported, and as yet unfixed potholes, on Princeton's SeeClickFix website.

Of course, the infrastructure is more general and can be extended to route between points while avoiding other calamities.

New Features

Now extended to include Tree Down - Storm Related. Not just bumps, but fatal crashes can be avoided!

Build

  1. Clone this repository

  2. Clone the forked directions.py library at https://github.com/gkc1000/directions.py

    Note: this requires the Python polycomp library at https://github.com/Mapkin/polycomp

  3. Currently, if you want to display the route, it uses geojsonio.py at https://github.com/jwass/geojsonio.py

How it works

  1. Gets "calamity" data from seeclickfix.com/princeton_nj.
  2. Geodecode into lat,lng pairs.
  3. Use Mapquest directions API to turn into linkID (road segment)
  4. Call Mapquest directions API with beginning / end routes, avoiding linkIDs

The test file is calamity_directions.py.

The relevant API's are:

TODO

  • Proper web and map interface to support input and display directions
  • Waypoints (should be trivially supported, haven't checked)
  • Ability to select other categories on SeeClickFix to avoid, as well as waypoints to avoid
  • Check comments in files for further things todo.

Submission Form https://docs.google.com/document/d/1Wn7DFF7_LO8N1XYgLuM5_oUdYxBVvXAASaXs13FGCK0/edit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •