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.
Now extended to include Tree Down - Storm Related. Not just bumps, but fatal crashes can be avoided!
-
Clone this repository
-
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
-
Currently, if you want to display the route, it uses geojsonio.py at https://github.com/jwass/geojsonio.py
- Gets "calamity" data from seeclickfix.com/princeton_nj.
- Geodecode into lat,lng pairs.
- Use Mapquest directions API to turn into linkID (road segment)
- Call Mapquest directions API with beginning / end routes, avoiding linkIDs
The test file is calamity_directions.py.
The relevant API's are:
- Mapquest directions: http://www.mapquestapi.com/directions/
- Seeclickfix: http://dev.seeclickfix.com/v2/issues/ (although we just get a data dump and parse it ourselves)
- 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