AWSLocationStep

Objective-C

@interface AWSLocationStep

Swift

class AWSLocationStep

Represents an element of a leg within a route. A step contains instructions for how to move to the next step in the leg.

Required parameters: [Distance, DurationSeconds, EndPosition, StartPosition]

  • The travel distance between the step’s StartPosition and EndPosition.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable distance;

    Swift

    var distance: NSNumber? { get set }
  • The estimated travel time, in seconds, from the step’s StartPosition to the EndPosition. . The travel mode and departure time that you specify in the request determines the calculated time.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable durationSeconds;

    Swift

    var durationSeconds: NSNumber? { get set }
  • The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSNumber *> *_Nullable endPosition;

    Swift

    var endPosition: [NSNumber]? { get set }
  • Represents the start position, or index, in a sequence of steps within the leg’s line string geometry. For example, the index of the first step in a leg geometry is 0.

    Included in the response for queries that set IncludeLegGeometry to True.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable geometryOffset;

    Swift

    var geometryOffset: NSNumber? { get set }
  • The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSNumber *> *_Nullable startPosition;

    Swift

    var startPosition: [NSNumber]? { get set }