San Diego has streetlights scattered throughout the city that gather data on traffic, parking, and environment. This collection of Jupyter Notebooks in Python access the trafic data and render a series of charts.
The following pip installs are required:
- json
- base64
- requests
- pandas
- matplotlib
- PyQt5
Note this code may be rough but it will get the job done and has lots of features that can be played with (e.g. text and line overlays on charts).
API reference for CityIQ data can be found at https://docs.cityiq.io. Be forwarned that there are errors in the documentation and no code specific examples are given. The Postman application can be very useful in getting a bootstrap understanding of the API.
You can read the notebook at http://www.inkbear.com/wp-admin/post.php?post=141 along with other tech and art.