routee-compass-core 0.19.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
use crate::model::network::{EdgeId, EdgeListId, VertexId};

/// simple 'Either' return type that covers both vertex-oriented and edge-oriented
/// search implementations.
pub enum NearestSearchResult {
    NearestVertex(VertexId),
    NearestEdge(EdgeListId, EdgeId),
}