-
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
Ridership annual summary endpoint improvements #25
Comments
@jaronheard on point 1: Not yet deployed but added check to function after filtering by year: Logic:
code:
|
I have an idea of what to do on point 2 |
On point 1, that looks great 👍
…On Fri, Jun 1, 2018 at 4:02 PM Brian Grant ***@***.***> wrote:
I have an idea of what to do on point 2
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvQX1JGsMQexLMWyR9tb3MbkXfrIEzOks5t4cftgaJpZM4USmMj>
.
|
ok so a new version of this has been deployed with this logicL route is a required filter returns:
annual totals of each of these are then calculated as sums of the weekday, saturday, sunday amounts routes that do not have either a saturday or sunday count for a given year are given 0 for values for day. additionally boolean fields are given for whether there was a saturday or sunday count for year. Here is example response:
Note this does return a list, even with one response. LMK if it needs a separate retrieve |
talking with @flamingveggies, story cards were referencing daily averages as well as totals. as such created two endpoints, average and totals. calculating this now per route and system. updated endpoints routing as well:
removed stop counts as did not seem relavant |
will work on bus vs. rail. vs streetcar |
Here's the current route / stop table - data-science-pet-containers/examples/transportation-database/tm_route_stops.csv I'm pretty sure the streetcar and MAX route numbers haven't changed so everything that isn't a streetcar or a MAX is a bus. |
Two requests:
One thing that I didn't see - and maybe this exists - is that we should perform a check to see that we have two summaries per year. Right now the calculated statistics assume we have two, but I think would return an incorrect sum if we only have one.
If you query this:
http://service.civicpdx.org/transportation-systems/passenger-census/passenger-census-routes-annual/?route=15
It should return an array containing the statistics for all of the years, rather than an aggregate for all years.
The text was updated successfully, but these errors were encountered: