TKDisplayableRoute

@objc
public protocol TKDisplayableRoute

Undocumented

  • The path of the route, used to draw it on the map

    Should be objects that have a coordinate, i.e., MKAnnotation or CLLocation

    Declaration

    Swift

    var routePath: [Any] { get }
  • routeColor Default implementation

    Colour to use for drawing the route

    Default Implementation

    Declaration

    Swift

    var routeColor: TKColor? { get }
  • routeDashPattern Default implementation

    Dash pattern to use for drawing the route

    Default Implementation

    Declaration

    Swift

    var routeDashPattern: [NSNumber]? { get }
  • routeIsTravelled Default implementation

    Whether this shape is part of the trip.

    For example, this returns false for section of a route that indicate where a bus is coming from before you get on, or where it goes after you got off.

    Default Implementation

    Declaration

    Swift

    var routeIsTravelled: Bool { get }
  • An identifier for the route, used to highlight the route on the map and allow tapping on it

    Declaration

    Swift

    var selectionIdentifier: String? { get }