# lta-rs 🚍 Singapore LTA Datamall Rust async first client. lta-rs is used to interact with the [lta-datamall](https://www.mytransport.sg/content/mytransport/home/dataMall.html) ## lta-rs in action ### Cargo.toml setup ```toml [dependencies] # extra features available: blocking lta = { version = "0.6.0" } ``` ### API key setup You can get your API key from [here](https://www.mytransport.sg/content/mytransport/home/dataMall/request-for-api.html) ```rust use lta::{LTAResult, LTAClient, Client, Traffic, TrafficRequests}; #[tokio::main] async fn main() -> LTAResult<()> { let api_key = std::env::var("API_KEY").expect("API_KEY not found!"); let client = LTAClient::with_api_key(api_key)?; let erp_rates = Traffic::get_erp_rates(&client, None).await?; println!("{:?}", erp_rates); Ok(()) } ```