AWSLocationCalculateRouteMatrixResponse
Objective-C
@interface AWSLocationCalculateRouteMatrixResponse
Swift
class AWSLocationCalculateRouteMatrixResponse
Returns the result of the route matrix calculation.
Required parameters: [RouteMatrix, Summary]
-
The calculated route matrix containing the results for all pairs of
DeparturePositions
toDestinationPositions
. Each row corresponds to one entry inDeparturePositions
. Each entry in the row corresponds to the route from that entry inDeparturePositions
to an entry inDestinationPositions
.Declaration
Objective-C
@property (nonatomic, strong) NSArray<NSArray<AWSLocationRouteMatrixEntry *> *> *_Nullable routeMatrix;
Swift
var routeMatrix: [[AWSLocationRouteMatrixEntry]]? { get set }
-
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
.Declaration
Objective-C
@property (nonatomic, strong) NSArray<NSArray<NSNumber *> *> *_Nullable snappedDeparturePositions;
Swift
var snappedDeparturePositions: [[NSNumber]]? { get set }
-
The list of destination positions for the route matrix used for calculation of the
RouteMatrix
.Declaration
Objective-C
@property (nonatomic, strong) NSArray<NSArray<NSNumber *> *> *_Nullable snappedDestinationPositions;
Swift
var snappedDestinationPositions: [[NSNumber]]? { get set }
-
Contains information about the route matrix,
DataSource
,DistanceUnit
,RouteCount
andErrorCount
.Declaration
Objective-C
@property (nonatomic, strong) AWSLocationCalculateRouteMatrixSummary *_Nullable summary;
Swift
var summary: AWSLocationCalculateRouteMatrixSummary? { get set }