added current code

This commit is contained in:
Johannes Erwerle 2022-09-13 17:59:30 +02:00
parent 557558acc6
commit 41e5e9b032
39 changed files with 2431 additions and 215 deletions

9
src/utils.rs Normal file
View file

@ -0,0 +1,9 @@
use serde::{Deserialize, Serialize};
pub const EARTH_RADIUS: f64 = 6_371_000.0; // meters
#[derive(Serialize, Deserialize, Debug, Copy, Clone)]
pub struct RoutingQuery{
pub source: usize,
pub destination: usize,
}