Trait lta::async::taxi::TaxiRequests

source ·
pub trait TaxiRequests<C: Client + ClientExt> {
    // Provided methods
    async fn get_taxi_avail<S>(
        client: &C,
        skip: S
    ) -> LTAResult<Vec<Coordinates>>
       where S: Into<Option<u32>> { ... }
    async fn get_taxi_stands<S>(
        client: &C,
        skip: S
    ) -> LTAResult<Vec<TaxiStand>>
       where S: Into<Option<u32>> { ... }
}
Expand description

All APIs pertaining to taxis

Provided Methods§

source

async fn get_taxi_avail<S>(client: &C, skip: S) -> LTAResult<Vec<Coordinates>>
where S: Into<Option<u32>>,

Returns location coordinates of all Taxis that are currently available for hire. Does not include “Hired” or “Busy” Taxis.

Update freq: 1min

source

async fn get_taxi_stands<S>(client: &C, skip: S) -> LTAResult<Vec<TaxiStand>>
where S: Into<Option<u32>>,

Returns detailed information of Taxi stands, such as location and whether is it barrier free.

Update freq: Monthly

Object Safety§

This trait is not object safe.

Implementors§