routee-compass-core 0.11.3

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
13
14
15
16
17
//! simple stateless model that calculates leg time from
//! leg speed and leg distance, also appending to the overall trip time.

mod elevation_change;
mod elevation_configuration;
mod elevation_traversal_builder;
mod elevation_traversal_model;

pub use elevation_change::ElevationChange;
pub use elevation_configuration::ElevationConfiguration;
pub use elevation_traversal_builder::ElevationTraversalBuilder;
pub use elevation_traversal_model::ElevationTraversalModel;

use crate::model::unit::GradeUnit;

/// all elevation calculations take place using a decimal grade representation
pub const ELEVATION_GRADE_UNIT: GradeUnit = GradeUnit::Decimal;