TKDirectionStep

@interface TKDirectionStep : NSObject

A particular direction step containing an information about a specific route segment.

  • Calculated duration of the step.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) NSTimeInterval duration;

    Swift

    var duration: TimeInterval { get set }
  • Calculated distance of the step.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) CLLocationDistance distance;

    Swift

    var distance: CLLocationDistance { get set }
  • Mode of the step.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) TKDirectionStepMode mode;

    Swift

    var mode: TKDirectionStepMode { get set }
  • Polyline of the step.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *polyline;

    Swift

    var polyline: String? { get set }
  • Optional name of the origin location.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *originName;

    Swift

    var originName: String? { get set }
  • Optional coordinate of the origin location.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) CLLocation *originLocation;

    Swift

    var originLocation: CLLocation? { get set }
  • Optional name of the destination location.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *destinationName;

    Swift

    var destinationName: String? { get set }
  • Optional coordinate of the destination location.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        CLLocation *destinationLocation;

    Swift

    var destinationLocation: CLLocation? { get set }
  • Optional stops along the step.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic)
        NSArray<TKDirectionIntermediateStop *> *_Nonnull intermediateStops;

    Swift

    var intermediateStops: [TKDirectionIntermediateStop] { get set }
  • Optional short name of the public transport line. Examples: 6, X12, B, Bakerloo Line, …

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *shortName;

    Swift

    var shortName: String? { get set }
  • Optional long name of the public transport line, usually describing the route. Example: Brooklyn - Manhattan - Staten Island

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *longName;

    Swift

    var longName: String? { get set }
  • Optional headsign. Mainly used for public transport. Examples: Moorgate, _Chesham, Aldgate, …

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *headsign;

    Swift

    var headsign: String? { get set }
  • Optional public transport line color. Provided in RGB HEX.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSNumber *lineColor;

    Swift

    var lineColor: NSNumber? { get set }
  • Attribution string.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *attribution;

    Swift

    var attribution: String? { get set }
  • Departure date string. ISO-8601 format without the timezone.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *departureLocalString;

    Swift

    var departureLocalString: String? { get set }
  • Arrival date string. ISO-8601 format without the timezone.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *arrivalLocalString;

    Swift

    var arrivalLocalString: String? { get set }