dgoodwin fork for Python3 and Los Angeles downtown.
Accompanies blog post: Transit dimensions: Transitland Schedule API
The frequency.py script:
- Fetches all trips on a given date, between a start time and end time, inside of a bounding box
- Calculates the number of connections between every stop
- Uses a colormap and line width to show more frequent service
- Outputs a GeoJSON map as output.geojson
The script defines all the query parameters as constants; feel free to use it as a jumping off point. The example interface is an excerpt from a more fully featured client library in the works.
Please check out the Transitland Datastore Github Repository for the full schedule API documentation.
Note that your results may vary slightly from the image used in the blog post.