| Crates.io | wmata |
| lib.rs | wmata |
| version | 7.1.0 |
| created_at | 2019-10-04 18:44:07.568646+00 |
| updated_at | 2020-03-07 16:51:23.317254+00 |
| description | wmata is a high level Rust interface to the Washington Metropolitan Area Transit Authority (WMATA) API |
| homepage | |
| repository | https://github.com/emma-k-alexandra/wmata |
| max_upload_size | |
| id | 169937 |
| size | 180,804 |
wmata is a high level async Rust interface to the Washington Metropolitan Area Transit Authority API.
wmata = "7.1.0"
use wmata::{MetroRail, Station};
let client = MetroRail::new(api_key);
let trains = client.next_trains(Station::A01).await?;
wmata breaks the WMATA API into two components: MetroRail and MetroBus.
MetroRailProvides access to all MetroRail related endpoints.
MetroRailuse wmata::{MetroRail, Station};
let client = MetroRail::new(api_key);
let trains = client.next_trains(Station::A01).await?;
MetroBusProvides access to all MetroBus related endpoints.
MetroBususe wmata::MetroBus;
let client = MetroBus::new(api_key);
let routes = client.routes().await?;
Note that tests must currently be run with --test-threads 1 in order to pass, due to using live data.
Feel free to email questions and comments to emma@emma.sh
wmata is released under the MIT license. See LICENSE for details.