Trait lta::async::crowd::CrowdRequests
source · pub trait CrowdRequests<C: Client + ClientExt> {
// Required methods
async fn get_passenger_vol_by<S, D>(
client: &C,
vol_type: VolType,
date: D,
skip: S
) -> LTAResult<Vec<String>>
where S: Into<Option<u32>>,
D: Into<Option<Date>>;
async fn get_crowd_density_rt(
client: &C,
train_line: MrtLine
) -> LTAResult<Vec<StationCrowdLevel>>;
async fn get_crowd_density_forecast(
client: &C,
train_line: MrtLine
) -> LTAResult<CrowdDensityForecast>;
}
Expand description
All APIs pertaining to transportation crowd
Required Methods§
sourceasync fn get_passenger_vol_by<S, D>(
client: &C,
vol_type: VolType,
date: D,
skip: S
) -> LTAResult<Vec<String>>
async fn get_passenger_vol_by<S, D>( client: &C, vol_type: VolType, date: D, skip: S ) -> LTAResult<Vec<String>>
Update freq: By 15th of every month, the passenger volume for previous month data will be generated
Note: Link will expire after 5mins!
sourceasync fn get_crowd_density_rt(
client: &C,
train_line: MrtLine
) -> LTAResult<Vec<StationCrowdLevel>>
async fn get_crowd_density_rt( client: &C, train_line: MrtLine ) -> LTAResult<Vec<StationCrowdLevel>>
Returns real-time platform crowdedness level for the MRT/LRT stations of a particular train network line
Update freq: 10 minutes
sourceasync fn get_crowd_density_forecast(
client: &C,
train_line: MrtLine
) -> LTAResult<CrowdDensityForecast>
async fn get_crowd_density_forecast( client: &C, train_line: MrtLine ) -> LTAResult<CrowdDensityForecast>
Returns forecasted platform crowdedness level for the MRT/LRT stations of a particular train network line at 30 minutes interval
Update freq: 24hours
Object Safety§
This trait is not object safe.