routee-compass-core 0.19.2

The core routing algorithms and data structures of the RouteE-Compass energy-aware routing engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::model::unit::RatioUnit;
use serde::{Deserialize, Serialize};

/// provides configuration for instantiating the grade engine used in grade modeling.
#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(deny_unknown_fields)]
pub struct GradeConfiguration {
    /// file with dense mapping from edge id to grade value
    pub grade_input_file: String,
    /// type of grade values in file
    pub grade_unit: RatioUnit,
}