Research Request - "super" project to deal with inlining / looping routes #705
Labels
gtfs-rt
Work related to GTFS-Realtime
research request
Issues that serve as a request for research (summary and handoff)
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: Handle inlining / loopy edge cases correctly while cutting segments.
shapely.project
will not give us clean chunks to easily slice up a shape's geometry for these edge cases Add a "super project" function to do it in with more detail (consider prior and subsequent stops while dealing with current stop).(3) How are routes that inline / loop handled?
Detailed description:
vec1.x = (x2-x1)
andvec1.y = (y2-y1)
...use projected CRS to take difference --stop vector
vec2
--shape vector
vec1.x*vec2.x + vec1.y*vec2.y
loop_utils
currently identifies these edge cases, but potentially needs to be expanded because it's looking at a stop being revisited. This might not identify all the possible inlining if it's not revisiting the samestop_id
while on the same trip. Expand function to identify our universe of cases.How will this research be used?
Use this to correctly slice up stop-to-stop segments.
Deliverables:
The text was updated successfully, but these errors were encountered: