pub struct ShortestPathOptions {
pub algorithm: PathFindingAlgorithm,
pub max_length: Option<f64>,
pub include_geometry: bool,
pub heuristic_weight: f64,
pub turn_penalties: Option<TurnPenalties>,
pub time_dependent_weights: Option<HashMap<EdgeId, TimeDependentWeight>>,
pub departure_time: f64,
pub weight_criteria: Option<HashMap<String, f64>>,
}Expand description
Options for shortest path computation
Fields§
§algorithm: PathFindingAlgorithmAlgorithm to use
max_length: Option<f64>Maximum path length (in weight units)
include_geometry: boolWhether to return the full path geometry
heuristic_weight: f64Heuristic weight for A* (1.0 = optimal, >1.0 = faster but suboptimal)
turn_penalties: Option<TurnPenalties>Turn penalties (optional)
time_dependent_weights: Option<HashMap<EdgeId, TimeDependentWeight>>Time-dependent weights per edge (optional)
departure_time: f64Departure time (seconds since midnight) for time-dependent routing
weight_criteria: Option<HashMap<String, f64>>Weight criteria for multi-criteria routing (maps weight name to coefficient)
Trait Implementations§
Source§impl Clone for ShortestPathOptions
impl Clone for ShortestPathOptions
Source§fn clone(&self) -> ShortestPathOptions
fn clone(&self) -> ShortestPathOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShortestPathOptions
impl Debug for ShortestPathOptions
Auto Trait Implementations§
impl Freeze for ShortestPathOptions
impl RefUnwindSafe for ShortestPathOptions
impl Send for ShortestPathOptions
impl Sync for ShortestPathOptions
impl Unpin for ShortestPathOptions
impl UnsafeUnpin for ShortestPathOptions
impl UnwindSafe for ShortestPathOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more