Skip to main content

lta/
lib.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
11/// Default Upstream URL
12pub const SERVER_URL: &str = "https://datamall2.mytransport.sg/ltaodataservice";
13/// Where all types, structs and enums are
14pub mod types;
15pub use types::*;
16#[cfg(feature = "json")]
17mod api;
18#[cfg(feature = "json")]
19pub use api::*;
20/// Bus related operations.
21#[cfg(feature = "json")]
22pub mod bus;
23/// Facility related operations.
24#[cfg(feature = "json")]
25pub mod facility;
26mod get_bus_arrival;
27/// Taxi related operations.
28#[cfg(feature = "json")]
29pub mod taxi;
30/// Traffic related operations.
31#[cfg(feature = "json")]
32pub mod traffic;
33pub use get_bus_arrival::{GetBusArrivalInput, GetBusArrivalResponse};
34mod get_traffic_incidents;
35pub use get_traffic_incidents::{GetTrafficIncidentsInput, GetTrafficIncidentsResponse};
36mod get_traffic_images;
37pub use get_traffic_images::{GetTrafficImagesInput, GetTrafficImagesResponse};
38mod get_traffic_speed_bands;
39pub use get_traffic_speed_bands::{GetTrafficSpeedBandsInput, GetTrafficSpeedBandsResponse};
40mod get_traffic_flow;
41pub use get_traffic_flow::{GetTrafficFlowInput, GetTrafficFlowResponse};
42mod get_road_works;
43pub use get_road_works::{GetRoadWorksInput, GetRoadWorksResponse};
44mod get_road_openings;
45pub use get_road_openings::{GetRoadOpeningsInput, GetRoadOpeningsResponse};
46mod get_bus_stops;
47pub use get_bus_stops::{GetBusStopsInput, GetBusStopsResponse};
48mod get_taxi_availability;
49pub use get_taxi_availability::{GetTaxiAvailabilityInput, GetTaxiAvailabilityResponse};
50mod get_taxi_stands;
51pub use get_taxi_stands::{GetTaxiStandsInput, GetTaxiStandsResponse};
52mod get_facilities_maintenance;
53pub use get_facilities_maintenance::{
54    GetFacilitiesMaintenanceInput, GetFacilitiesMaintenanceResponse,
55};
56/// Low-level request parts and response codecs, organized by operation.
57pub mod operations {
58    /// Returns real-time Bus Arrival information of Bus Services at a queried Bus Stop, including
59    /// - Estimated Arrival Time
60    /// - Estimated Current Location
61    /// - Estimated Current Load.
62    ///
63    /// **Update freq**: 20s
64    pub mod get_bus_arrival {
65        #[cfg(feature = "json")]
66        pub use super::super::GetBusArrivalAction;
67        pub use super::super::get_bus_arrival::*;
68    }
69    /// Returns incidents currently happening on the roads, such as Accidents, Vehicle Breakdowns, Road Blocks, Traffic Diversions etc.
70    /// **Update freq**: 2 min
71    pub mod get_traffic_incidents {
72        #[cfg(feature = "json")]
73        pub use super::super::GetTrafficIncidentsAction;
74        pub use super::super::get_traffic_incidents::*;
75    }
76    /// Returns links to images from traffic cameras located around Singapore, together with each camera's location coordinates.
77    /// **Update freq**: 20 sec
78    pub mod get_traffic_images {
79        #[cfg(feature = "json")]
80        pub use super::super::GetTrafficImagesAction;
81        pub use super::super::get_traffic_images::*;
82    }
83    /// Returns current traffic speeds on expressways and arterial roads, expressed in speed bands.
84    ///
85    /// **Update freq**: 5 min
86    pub mod get_traffic_speed_bands {
87        #[cfg(feature = "json")]
88        pub use super::super::GetTrafficSpeedBandsAction;
89        pub use super::super::get_traffic_speed_bands::*;
90    }
91    /// Returns a link to a JSON file containing hourly average traffic flow, taken from a representative month of every quarter during 0700-0900 hours.
92    /// **Update freq**: Quarterly
93    pub mod get_traffic_flow {
94        #[cfg(feature = "json")]
95        pub use super::super::GetTrafficFlowAction;
96        pub use super::super::get_traffic_flow::*;
97    }
98    /// Returns road works currently in progress or planned, together with event details and the responsible agency.
99    ///
100    /// **Update freq**: 24 hours – whenever there are updates
101    pub mod get_road_works {
102        #[cfg(feature = "json")]
103        pub use super::super::GetRoadWorksAction;
104        pub use super::super::get_road_works::*;
105    }
106    /// Returns all planned road openings, including the new road name and the responsible agency.
107    /// **Update freq**: 24 hours – whenever there are updates
108    pub mod get_road_openings {
109        #[cfg(feature = "json")]
110        pub use super::super::GetRoadOpeningsAction;
111        pub use super::super::get_road_openings::*;
112    }
113    /// Returns detailed information for all bus stops currently being serviced by buses, including bus stop codes and location coordinates.
114    ///
115    /// **Update freq**: Ad-Hoc
116    pub mod get_bus_stops {
117        #[cfg(feature = "json")]
118        pub use super::super::GetBusStopsAction;
119        pub use super::super::get_bus_stops::*;
120    }
121    /// Returns the coordinates of all taxis currently available for hire.
122    ///
123    /// **Update freq**: 1 min
124    pub mod get_taxi_availability {
125        #[cfg(feature = "json")]
126        pub use super::super::GetTaxiAvailabilityAction;
127        pub use super::super::get_taxi_availability::*;
128    }
129    /// Returns detailed information of Taxi stands, such as location and whether it is barrier free.
130    ///
131    /// **Update freq**: Monthly
132    pub mod get_taxi_stands {
133        #[cfg(feature = "json")]
134        pub use super::super::GetTaxiStandsAction;
135        pub use super::super::get_taxi_stands::*;
136    }
137    /// Returns links to facility maintenance data files for a queried MRT/LRT station. Each link points to a JSON file describing the maintenance works currently in progress at that station.
138    ///
139    /// **Update freq**: Ad-Hoc
140    pub mod get_facilities_maintenance {
141        #[cfg(feature = "json")]
142        pub use super::super::GetFacilitiesMaintenanceAction;
143        pub use super::super::get_facilities_maintenance::*;
144    }
145}