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

Incorrect matching of ScheduleStopPairs to route geometry #35

Closed
kylebarron opened this issue Feb 20, 2020 · 0 comments · Fixed by #36
Closed

Incorrect matching of ScheduleStopPairs to route geometry #35

kylebarron opened this issue Feb 20, 2020 · 0 comments · Fixed by #36

Comments

@kylebarron
Copy link
Owner

There are multiple instances (that are clear to see visually) where the transit vehicles are moving way too fast. For example, look at this on the loop in Chicago:

Screen Recording 2020-02-20 at 1 54 20 PM

Notice how there are super long tails around the loop? That's from schedules that are incorrectly matched to routes.

I did some digging here, using the Brown line metro. Take a look at this ScheduleStopPair:

{
  "origin_dist_traveled": "546.2",
  "origin_onestop_id": "s-dp3wspsmsk-kedziebrown<30226",
  "route_onestop_id": "r-dp3w-brownline",
  "trip": "59151270686",
  "origin_timepoint_source": "gtfs_exact",
  "destination_dist_traveled": "1140.6",
  "route_stop_pattern_onestop_id": "r-dp3w-brownline-a3d334-f6e93f",
  "destination_timepoint_source": "gtfs_exact",
  "destination_onestop_id": "s-dp3wsr9tgt-francisco<30168",
  "destination_arrival_time": "17:49:00",
  "origin_departure_time": "17:48:00",
  "speed": 301.5832166384404,
  "dist": 18094.99299830642
}

(with operator id: o-dp3-chicagotransitauthority)

Here's a visualization of how I'm currently matching that to a route:
image

The two neighboring stops are in the top left. But since this is a loop route, the second stop is getting matched to the route on its way back. So it's assigning an 18km route between stops that are a minute apart.

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

Successfully merging a pull request may close this issue.

1 participant