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_facilities_maintenance;
51pub use get_facilities_maintenance::{
52    GetFacilitiesMaintenanceInput, GetFacilitiesMaintenanceResponse,
53};
54/// Low-level request parts and response codecs, organized by operation.
55pub mod operations {
56    /// Returns real-time Bus Arrival information of Bus Services at a queried Bus Stop, including
57    /// - Estimated Arrival Time
58    /// - Estimated Current Location
59    /// - Estimated Current Load.
60    ///
61    /// **Update freq**: 20s
62    pub mod get_bus_arrival {
63        #[cfg(feature = "json")]
64        pub use super::super::GetBusArrivalAction;
65        pub use super::super::get_bus_arrival::*;
66    }
67    /// Returns incidents currently happening on the roads, such as Accidents, Vehicle Breakdowns, Road Blocks, Traffic Diversions etc.
68    /// **Update freq**: 2 min
69    pub mod get_traffic_incidents {
70        #[cfg(feature = "json")]
71        pub use super::super::GetTrafficIncidentsAction;
72        pub use super::super::get_traffic_incidents::*;
73    }
74    /// Returns links to images from traffic cameras located around Singapore, together with each camera's location coordinates.
75    /// **Update freq**: 20 sec
76    pub mod get_traffic_images {
77        #[cfg(feature = "json")]
78        pub use super::super::GetTrafficImagesAction;
79        pub use super::super::get_traffic_images::*;
80    }
81    /// Returns current traffic speeds on expressways and arterial roads, expressed in speed bands.
82    ///
83    /// **Update freq**: 5 min
84    pub mod get_traffic_speed_bands {
85        #[cfg(feature = "json")]
86        pub use super::super::GetTrafficSpeedBandsAction;
87        pub use super::super::get_traffic_speed_bands::*;
88    }
89    /// Returns a link to a JSON file containing hourly average traffic flow, taken from a representative month of every quarter during 0700-0900 hours.
90    /// **Update freq**: Quarterly
91    pub mod get_traffic_flow {
92        #[cfg(feature = "json")]
93        pub use super::super::GetTrafficFlowAction;
94        pub use super::super::get_traffic_flow::*;
95    }
96    /// Returns road works currently in progress or planned, together with event details and the responsible agency.
97    ///
98    /// **Update freq**: 24 hours – whenever there are updates
99    pub mod get_road_works {
100        #[cfg(feature = "json")]
101        pub use super::super::GetRoadWorksAction;
102        pub use super::super::get_road_works::*;
103    }
104    /// Returns all planned road openings, including the new road name and the responsible agency.
105    /// **Update freq**: 24 hours – whenever there are updates
106    pub mod get_road_openings {
107        #[cfg(feature = "json")]
108        pub use super::super::GetRoadOpeningsAction;
109        pub use super::super::get_road_openings::*;
110    }
111    /// Returns detailed information for all bus stops currently being serviced by buses, including bus stop codes and location coordinates.
112    ///
113    /// **Update freq**: Ad-Hoc
114    pub mod get_bus_stops {
115        #[cfg(feature = "json")]
116        pub use super::super::GetBusStopsAction;
117        pub use super::super::get_bus_stops::*;
118    }
119    /// Returns the coordinates of all taxis currently available for hire.
120    ///
121    /// **Update freq**: 1 min
122    pub mod get_taxi_availability {
123        #[cfg(feature = "json")]
124        pub use super::super::GetTaxiAvailabilityAction;
125        pub use super::super::get_taxi_availability::*;
126    }
127    /// 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.
128    ///
129    /// **Update freq**: Ad-Hoc
130    pub mod get_facilities_maintenance {
131        #[cfg(feature = "json")]
132        pub use super::super::GetFacilitiesMaintenanceAction;
133        pub use super::super::get_facilities_maintenance::*;
134    }
135}