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

Research Request - Performant vp -> speeds with interpolation method #939

Closed
tiffanychu90 opened this issue Oct 31, 2023 · 0 comments
Closed
Assignees
Labels
gtfs-rt Work related to GTFS-Realtime research request Issues that serve as a request for research (summary and handoff)

Comments

@tiffanychu90
Copy link
Member

tiffanychu90 commented Oct 31, 2023

Complete the below when receiving a research request, and continue to add to this issue as you receive additional details and produce deliverables. Be sure to also add the appropriate project-level label to this issue (eg gtfs-rt, DLA).

Research Question

Single sentence description: Use dask.map_partitions method wherever possible to: (1) shapely.project vp along scheduled shape geometry, (2) find the nearest vp to each stop position, (3) find subseq vp, (4) interpolate stop arrival between 2 positions.

Detailed description:
Handle common errors that might occur:

  • Near origin or destination, if we can't select 2 points to interpolate between, these edge cases need to be handled.
  • Expected monotonic pattern between stops (vp_idx and location_timestamp_local should be increasing....but it's possible to find the nearest vp that's outside of that) -> factor in direction so that don't select a vp that's traveling in the opposite direction

Data sources

  • Cal-ITP data sources: vp_usable

Deliverables

Scripts

@tiffanychu90 tiffanychu90 added gtfs-rt Work related to GTFS-Realtime research request Issues that serve as a request for research (summary and handoff) labels Oct 31, 2023
@tiffanychu90 tiffanychu90 self-assigned this Oct 31, 2023
This was referenced Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gtfs-rt Work related to GTFS-Realtime research request Issues that serve as a request for research (summary and handoff)
Projects
Status: Done
Development

No branches or pull requests

1 participant