Skip to content
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

Flag geographies that should be returned in the Reports endpoint #873

Open
alexdemisch opened this issue Aug 4, 2023 · 2 comments
Open
Labels
Reports Reports endpoint and related ideas
Milestone

Comments

@alexdemisch
Copy link
Collaborator

The Reports endpoint provides a useful way to aggregate information that otherwise shouldn’t be provided in a raw form. This has been a helpful way for SFMTA to gather information about scooter trips taken by users on a low-income plan and trips on adaptive devices.

To make the Reports endpoint data more useful, we added a set of neighborhoods to our Geographies endpoint that are helpful analytical zones for which we want to see aggregated data. However, our Geographies endpoint also contains equity neighborhoods used for distribution requirements and a no parking zone. We really don’t need aggregated data for these “operational” geographies, but the spec requires operators to aggregate data for all geographies anyway (even geographies that may no longer have any use because all data is immutable).

This can be overly burdensome for operators, and will only get more complex as more geographies are added, especially because the geographies are immutable. Having a method to flag which geographies should be returned in a reports endpoint would be helpful. I could see this going into Policy Requirements, Geographies, or Reports. But Policy Requirements might make the most sense.

@alexdemisch alexdemisch added the Reports Reports endpoint and related ideas label Aug 4, 2023
@schnuerle
Copy link
Member

schnuerle commented Sep 1, 2023

Agree and this was a known complexity/limitation going into the launch of the Reports beta feature (we made changes and took it out of beta for 2.0). It's time we addressed this in the next release, and I also think Policy Requirements in the best place to enumerate the relevant geographies. For now you could publish a list of geography IDs to the operators that are relevant to Reports.

@schnuerle
Copy link
Member

Everyone note how @alexdemisch is implementing geographies in the wild in this Requirements file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reports Reports endpoint and related ideas
Projects
None yet
Development

No branches or pull requests

2 participants