dvb 0.8.0

An unofficial crate to query publicly accessible API methods for Dresden's public transport system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use dvb::{find_stops, point::Point};

#[tokio::main]
async fn main() {
    let found = find_stops("walpurgis").await.unwrap();
    println!(
        "Found {} stops ({:?})",
        found.points.len(),
        found.expiration_time
    );

    for Point { id, city, name, .. } in &found.points {
        println!("({id}) {city} {name}");
    }
}