Skip to main content

recalculate_estimate

Function recalculate_estimate 

Source
fn recalculate_estimate(
    changed_trips: Query<'_, '_, Entity, (Changed<TripSchedule>, With<TripClass>)>,
    changed_entries: Query<'_, '_, &ChildOf, Changed<EntryMode>>,
    trip_q: Query<'_, '_, TripQuery>,
    entry_q: Query<'_, '_, (Entity, &EntryMode, &EntryStop)>,
    parent_station_or_station: Query<'_, '_, ParentStationOrStation>,
    interval_q: Query<'_, '_, IntervalQuery>,
    commands: Commands<'_, '_>,
    graph: Res<'_, Graph>,
)
Expand description

Recalculate the estimates for updated routes. This should always run after recalculate_route.