#[non_exhaustive]pub struct CalculateRouteMatrixOutput {
pub route_matrix: Vec<Vec<RouteMatrixEntry>>,
pub snapped_departure_positions: Option<Vec<Vec<f64>>>,
pub snapped_destination_positions: Option<Vec<Vec<f64>>>,
pub summary: Option<CalculateRouteMatrixSummary>,
/* private fields */
}Expand description
Returns the result of the route matrix calculation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.route_matrix: Vec<Vec<RouteMatrixEntry>>The calculated route matrix containing the results for all pairs of DeparturePositions to DestinationPositions. Each row corresponds to one entry in DeparturePositions. Each entry in the row corresponds to the route from that entry in DeparturePositions to an entry in DestinationPositions.
snapped_departure_positions: Option<Vec<Vec<f64>>>For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of the RouteMatrix.
snapped_destination_positions: Option<Vec<Vec<f64>>>The list of destination positions for the route matrix used for calculation of the RouteMatrix.
summary: Option<CalculateRouteMatrixSummary>Contains information about the route matrix, DataSource, DistanceUnit, RouteCount and ErrorCount.
Implementations§
source§impl CalculateRouteMatrixOutput
impl CalculateRouteMatrixOutput
sourcepub fn route_matrix(&self) -> &[Vec<RouteMatrixEntry>]
pub fn route_matrix(&self) -> &[Vec<RouteMatrixEntry>]
The calculated route matrix containing the results for all pairs of DeparturePositions to DestinationPositions. Each row corresponds to one entry in DeparturePositions. Each entry in the row corresponds to the route from that entry in DeparturePositions to an entry in DestinationPositions.
sourcepub fn snapped_departure_positions(&self) -> &[Vec<f64>]
pub fn snapped_departure_positions(&self) -> &[Vec<f64>]
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of the RouteMatrix.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .snapped_departure_positions.is_none().
sourcepub fn snapped_destination_positions(&self) -> &[Vec<f64>]
pub fn snapped_destination_positions(&self) -> &[Vec<f64>]
The list of destination positions for the route matrix used for calculation of the RouteMatrix.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .snapped_destination_positions.is_none().
sourcepub fn summary(&self) -> Option<&CalculateRouteMatrixSummary>
pub fn summary(&self) -> Option<&CalculateRouteMatrixSummary>
Contains information about the route matrix, DataSource, DistanceUnit, RouteCount and ErrorCount.
source§impl CalculateRouteMatrixOutput
impl CalculateRouteMatrixOutput
sourcepub fn builder() -> CalculateRouteMatrixOutputBuilder
pub fn builder() -> CalculateRouteMatrixOutputBuilder
Creates a new builder-style object to manufacture CalculateRouteMatrixOutput.
Trait Implementations§
source§impl Clone for CalculateRouteMatrixOutput
impl Clone for CalculateRouteMatrixOutput
source§fn clone(&self) -> CalculateRouteMatrixOutput
fn clone(&self) -> CalculateRouteMatrixOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CalculateRouteMatrixOutput
impl Debug for CalculateRouteMatrixOutput
source§impl PartialEq for CalculateRouteMatrixOutput
impl PartialEq for CalculateRouteMatrixOutput
source§fn eq(&self, other: &CalculateRouteMatrixOutput) -> bool
fn eq(&self, other: &CalculateRouteMatrixOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for CalculateRouteMatrixOutput
impl RequestId for CalculateRouteMatrixOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for CalculateRouteMatrixOutput
Auto Trait Implementations§
impl Freeze for CalculateRouteMatrixOutput
impl RefUnwindSafe for CalculateRouteMatrixOutput
impl Send for CalculateRouteMatrixOutput
impl Sync for CalculateRouteMatrixOutput
impl Unpin for CalculateRouteMatrixOutput
impl UnwindSafe for CalculateRouteMatrixOutput
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more