-
Notifications
You must be signed in to change notification settings - Fork 0
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
Handling uncertainty in travel time calculations #11
Comments
I am trying to create a frequencies.txt file so that the routing can use the time_window() parameter. I tried to use the get_route_frequency() function in tidytransit, but it depends on having a I tried to create the column by grouping trips by route_id and service_id, with the expectation that there should be two trips in each group, and I can give them 0 / 1 values, but turns out there are routes with more than 2 trips: I tried to plot these trips to see how they are different. Here is a facet plot (by trip_id): It looks like 2 are the same (they even have the same stop sequence not opposite which seems wrong to me). The other 3 are all different Based on these results, I think I should treat each trip separately if I were to calculate frequencies from stop_times (and ignore the route level logic used in |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
stop_times_to_frequencies() is a difficult function to implement.
|
One important thing to note is that the For the same departure time, the results are the same for each draw_number. However, if our time_window = 30, we have 30 different departure times for each OD pair, and each one has a different travel_time. The percentiles argument also works, as shown here: The reason they say frequencies.txt is needed is in order to simulate changes in the start time. That would lead to different draws for the same OD pair having different travel times. For our purposes this is not necessary. What this means is that a |
How to address travel time uncertainty when calculating travel time matrices? For background, see:
The
time_window
parameter (in combination with thepercentile
parameter) is ideal, but it can only be used with frequency-based gtfs feeds. From the vignette:Solution using
time_window
parameter in r5rOne solution is to create a function to convert stop_times to frequency, and use that to edit the gtfs feeds so that they are frequency based feeds
See my comment ipeaGIT/gtfstools#69 (comment) for getting started on the function, and ipeaGIT/r5r#282 (comment) to understand how r5 handles the
time_window
argument when you are using a gtfs feed without afrequencies.txt
fileHacky manual solution
We can pass different departure times to the travel_time_matrix function (e.g for 8:00am, use 7:55, 8:00, 8:05). This is a hacky way of recreating the time_window functionality, and it will definitely be lot slower
The text was updated successfully, but these errors were encountered: