pub struct VerboseSourceToTarget {
pub distance: f32,
pub time: u32,
pub from_index: usize,
pub to_index: usize,
pub time_zone_name: Option<String>,
pub time_zone_offset: Option<String>,
pub date_time: Option<NaiveDateTime>,
}
Expand description
Verbose source to target
Fields§
§distance: f32
The computed distance between each set of points.
Distance will always be 0.00
for
- the first element of the time-distance array for one_to_many,
- the last element in a many_to_one, and
- the first and last elements of a many_to_many.
time: u32
The computed time between each set of points.
Time will always be 0
for
- the first element of the time-distance array for one_to_many,
- the last element in a many_to_one, and
- the first and last elements of a many_to_many
from_index: usize
The destination index into the locations array
to_index: usize
The origin index into the locations array
time_zone_name: Option<String>
Timezone of when a user will arrive at this location or has to depart from the start point.
For information how to differentiate between departure/arrival time, please see Manifest::date_time
or Location::date_time
.
This field is included only if:
- valhalla is build with timezone support,
- the time is below the settings
max_timedep_distance_matrix
ormax_timedep_distance
- departure/arrival time is unspecified via
Manifest::date_time
orLocation::date_time
Example: "Europe/Berlin"
time_zone_offset: Option<String>
Timezone of when a user will arrive at this location or has to depart from the start point.
For information how to differentiate between departure/arrival time, please see Manifest::date_time
or Location::date_time
.
This field is included only if:
- valhalla is build with timezone support,
- the time is below the settings
max_timedep_distance_matrix
ormax_timedep_distance
- departure/arrival time is unspecified via
Manifest::date_time
orLocation::date_time
Example: "+01:00"
date_time: Option<NaiveDateTime>
When a user will arrive at this location or has to depart from the start point.
For information how to differentiate between departure/arrival time, please see Manifest::date_time
or Location::date_time
.
This field is included only if:
- the time is below the settings
max_timedep_distance_matrix
ormax_timedep_distance
- departure/arrival time is unspecified via
Manifest::date_time
orLocation::date_time
Example: "2024-11-07T15:26"
Trait Implementations§
Source§impl Clone for VerboseSourceToTarget
impl Clone for VerboseSourceToTarget
Source§fn clone(&self) -> VerboseSourceToTarget
fn clone(&self) -> VerboseSourceToTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more