lta/taxi.rs
1// @generated by satay. Do not edit by hand.
2#![allow(
3 clippy::doc_markdown,
4 clippy::missing_errors_doc,
5 clippy::must_use_candidate,
6 clippy::needless_pass_by_value,
7 clippy::return_self_not_must_use,
8 clippy::single_match_else
9)]
10
11use super::{Api as RootApi, GetTaxiAvailabilityAction, GetTaxiStandsAction};
12/// Taxi related operations.
13#[derive(Debug, Clone, Copy)]
14pub struct Api<'a> {
15 pub(crate) api: &'a RootApi,
16}
17impl<'a> Api<'a> {
18 /// Returns the coordinates of all taxis currently available for hire.
19 ///
20 /// **Update freq**: 1 min
21 ///
22 /// # Optional request settings
23 ///
24 /// - [`skip`](GetTaxiAvailabilityAction::skip): Number of records to skip for pagination.
25 ///
26 /// # Example
27 ///
28 /// ```rust,ignore
29 /// let request = api
30 /// .taxi()
31 /// .get_availability()
32 /// .skip(skip)
33 /// .request()?;
34 /// ```
35 pub fn get_availability(&self) -> GetTaxiAvailabilityAction<'a> {
36 GetTaxiAvailabilityAction::new(self.api)
37 }
38 /// Returns detailed information of Taxi stands, such as location and whether it is barrier free.
39 ///
40 /// **Update freq**: Monthly
41 ///
42 /// # Optional request settings
43 ///
44 /// - [`skip`](GetTaxiStandsAction::skip): Number of records to skip for pagination.
45 ///
46 /// # Example
47 ///
48 /// ```rust,ignore
49 /// let request = api
50 /// .taxi()
51 /// .get_stands()
52 /// .skip(skip)
53 /// .request()?;
54 /// ```
55 pub fn get_stands(&self) -> GetTaxiStandsAction<'a> {
56 GetTaxiStandsAction::new(self.api)
57 }
58}