Started querying public transporatation

This commit is contained in:
Ollo
2023-08-18 00:03:38 +02:00
parent a201193d58
commit 57d8cdfd23
3 changed files with 23 additions and 3 deletions

13
client/bin/src/straba.rs Normal file
View File

@@ -0,0 +1,13 @@
/* @file straba.rs
* @brief fetch next depature of light rail vehicle
*/
use std::error::Error;
const stationURL:&str = "https://www.rnv-online.de/rest/departure/2494/1";
pub fn fetchData() -> Result<(), Box<dyn Error>> {
println!("Test RNV API");
let resp = reqwest::blocking::get(stationURL)?.text()?;
println!("{:#?}", resp);
Ok(())
}