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 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.

    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 and ErrorCount.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSLocationCalculateRouteMatrixSummary *_Nullable summary;

    Swift

    var summary: AWSLocationCalculateRouteMatrixSummary? { get set }