use crate::models::prelude::*;
use crate::models::utils::Coordinates;
use crate::{Client, LTAResult};
use concat_string::concat_string;
use super::ClientExt;
pub trait TaxiRequests<C: Client + ClientExt> {
fn get_taxi_avail(client: &C, skip: impl Into<Option<u32>>) -> LTAResult<Vec<Coordinates>> {
client.build_req_with_skip::<TaxiAvailResp, _>(
&concat_string!(client.base_url(), "/Taxi-Availability"),
skip.into(),
)
}
fn get_taxi_stands(client: &C, skip: impl Into<Option<u32>>) -> LTAResult<Vec<TaxiStand>> {
client.build_req_with_skip::<TaxiStandsResp, _>(
&concat_string!(client.base_url(), "/TaxiStands"),
skip.into(),
)
}
}