Shape

@objc(Shape)
public class Shape : NSManagedObject
extension Shape: TKDisplayableRoute
  • A turn-by-turn instruction, from one shape to the next

    See more

    Declaration

    Swift

    public enum Instruction : Int16
  • Declaration

    Swift

    public var sortedCoordinates: [TKNamedCoordinate]? { get }
  • Declaration

    Swift

    @objc
    public weak var segment: TKSegment?
  • Declaration

    Swift

    public override func didTurnIntoFault()
  • Declaration

    Swift

    @objc
    public var start: MKAnnotation? { get }
  • end

    Declaration

    Swift

    @objc
    public var end: MKAnnotation? { get }
  • The turn-by-turn instruction from the previous shape to this shape

    Declaration

    Swift

    public var instruction: Instruction? { get set }
  • Declaration

    Swift

    @objc
    public var isDismount: Bool { get set }
  • Declaration

    Swift

    @objc
    public var isHop: Bool { get set }
  • Declaration

    Swift

    public var isSafe: Bool? { get }
  • Declaration

    Swift

    @objc
    public func setSafety(_ value: NSNumber?)
  • Declaration

    Swift

    public var friendliness: TKPathFriendliness { get }
  • Declaration

    Swift

    @objc(fetchTravelledShapeForTemplate:atStart:)
    public static func fetchTravelledShape(for template: SegmentTemplate, atStart: Bool) -> Shape?

TKDisplayableRoute

  • Declaration

    Swift

    public var routePath: [Any] { get }
  • Declaration

    Swift

    public var routeColor: TKColor? { get }
  • Declaration

    Swift

    public var routeIsTravelled: Bool { get }
  • Declaration

    Swift

    public var routeDashPattern: [NSNumber]? { get }
  • Declaration

    Swift

    public var selectionIdentifier: String? { get }
  • Declaration

    Swift

    @nonobjc
    public class func fetchRequest() -> NSFetchRequest<Shape>
  • Declaration

    Swift

    @NSManaged
    public var encodedWaypoints: String? { get set }
  • Declaration

    Swift

    @NSManaged
    public var flags: Int32 { get set }
  • Declaration

    Swift

    @NSManaged
    public var index: Int16 { get set }
  • Declaration

    Swift

    @NSManaged
    public var metres: NSNumber? { get set }
  • Declaration

    Swift

    @NSManaged
    public var title: String? { get set }
  • Declaration

    Swift

    @NSManaged
    public var travelled: Bool { get set }
  • Declaration

    Swift

    @NSManaged
    public var rawInstruction: Int16 { get set }
  • Declaration

    Swift

    @NSManaged
    public var services: Set<Service>? { get set }
  • Declaration

    Swift

    @NSManaged
    public var template: SegmentTemplate? { get set }
  • Declaration

    Swift

    @NSManaged
    public var visits: Set<StopVisits>? { get set }

Generated accessors for services

  • Declaration

    Swift

    @objc(addServicesObject:)
    @NSManaged
    public func addToServices(_ value: Service)
  • Declaration

    Swift

    @objc(removeServicesObject:)
    @NSManaged
    public func removeFromServices(_ value: Service)
  • Declaration

    Swift

    @objc(addServices:)
    @NSManaged
    public func addToServices(_ values: NSSet)
  • Declaration

    Swift

    @objc(removeServices:)
    @NSManaged
    public func removeFromServices(_ values: NSSet)

Generated accessors for visits

  • Declaration

    Swift

    @objc(addVisitsObject:)
    @NSManaged
    public func addToVisits(_ value: StopVisits)
  • Declaration

    Swift

    @objc(removeVisitsObject:)
    @NSManaged
    public func removeFromVisits(_ value: StopVisits)
  • Declaration

    Swift

    @objc(addVisits:)
    @NSManaged
    public func addToVisits(_ values: NSSet)
  • Declaration

    Swift

    @objc(removeVisits:)
    @NSManaged
    public func removeFromVisits(_ values: NSSet)