TKRoutePolyline

Objective-C

@interface TKRoutePolyline : MKPolyline

@property(nonatomic, strong) id<TKDisplayableRoute> route;

@property(nonatomic, copy, nullable) NSString *selectionIdentifier;

+ (nullable instancetype)routePolylineForRoute:(id <TKDisplayableRoute>)route;

/**
 @param annotations An array of id<MKAnnotation> objects
 
 @return A geodesic polyline connecting the annotations
 */
+ (nullable MKGeodesicPolyline *)geodesicPolylineForAnnotations:(NSArray<id<MKAnnotation>> *)annotations;

@end

Swift

class TKRoutePolyline : MKPolyline

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong) id<TKDisplayableRoute> route
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, copy, nullable) NSString *selectionIdentifier

    Swift

    var selectionIdentifier: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    + (nullable instancetype)routePolylineForRoute:(id <TKDisplayableRoute>)route;
  • Declaration

    Objective-C

    + (nullable MKGeodesicPolyline *)geodesicPolylineForAnnotations:
        (nonnull NSArray<id<MKAnnotation>> *)annotations;

    Swift

    class func geodesicPolyline(for annotations: [MKAnnotation]) -> MKGeodesicPolyline?

    Parameters

    annotations

    An array of id objects

    Return Value

    A geodesic polyline connecting the annotations