- Reduce
PER_PAGE
from 1000 to 500 to get around API gateway timeout errors - Remove call to
meta['total']
which is no longer part of the API response JSON - Update date to August 2016
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.