You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) Briefly describe your problem and what output you expect
Problem
Every now and then, a user opens a new issue saying that r5r doest not output results accounting for the transit network. Fast forward, we help the user realize they were using a departure date that is outside the GTFS calendar. This has been a common issue in r5py, so they are implementing a simple input check.
Output expected
If user routes with a transit mode, we could test whether the date falls inside the calendar of the GTFS feeds used to build the network. If the input date falls outside the calendar, the function should throw and error with an informative message.
To make this work, it would be ideal if we could extract the start and end dates information of the service calendar cooked into the network built with setup_r5(). Something like this:
start <- r5r_core$service.calendar.start_date
end <- r5r_core$service.calendar.end_date
And then we can use this info to check against the departure_datetime input. @mvpsaraiva , is it possible to expose the r5r_core$service.calendar to R ?
The text was updated successfully, but these errors were encountered:
1) Briefly describe your problem and what output you expect
Problem
Every now and then, a user opens a new issue saying that r5r doest not output results accounting for the transit network. Fast forward, we help the user realize they were using a departure date that is outside the GTFS calendar. This has been a common issue in r5py, so they are implementing a simple input check.
Output expected
If user routes with a transit mode, we could test whether the date falls inside the calendar of the GTFS feeds used to build the network. If the input date falls outside the calendar, the function should throw and error with an informative message.
To make this work, it would be ideal if we could extract the start and end dates information of the service calendar cooked into the network built with
setup_r5()
. Something like this:start <- r5r_core$service.calendar.start_date
end <- r5r_core$service.calendar.end_date
And then we can use this info to check against the
departure_datetime
input. @mvpsaraiva , is it possible to expose ther5r_core$service.calendar
to R ?The text was updated successfully, but these errors were encountered: