-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Available passenger-census endpoint #35
Comments
Sounds like an SQL "SELECT DISTINCT" |
@jaronheard new endpoint is up: http://service.civicpdx.org/transportation-systems/passenger-census/passenger-census-info/
Let me know if this is what you were thinking |
Updated to now include data rollups, as per slack conversation w/ @jaronheard documenting the sql queries for aggregations behind django ORM methods. This endpoint makes three queries:
I am then using Python for zipping these into a single dict:
then calculate total sums for census by adding the weekday, saturday, sunday numbers: ons: weekday['ons'] + saturday['ons'] + sunday['ons'] |
Informed by discussion with @znmeb - I think that there should be an endpoint that returns what passenger-census quarterly ridership summaries we have.
Flexible on return format, but should at least return the dates of all available quarterly ridership data in passenger-census.
The text was updated successfully, but these errors were encountered: