TTRouteManager

@protocol TTRouteManager <NSObject>

TTRouteManager class to manage interactions with drawing routes on map.

  • Array of route that are present on the map

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSArray<TTMapRoute *> *_Nonnull routes;

    Swift

    var routes: [TTMapRoute] { get }
  • Draws new route on the map

    Declaration

    Objective-C

    - (void)addRoute:(TTMapRoute *_Nonnull)route;

    Swift

    func add(_ route: TTMapRoute)

    Parameters

    route

    route TTMapRoute

  • Removes given route from map. Throws exception if route was not added to map before.

    Declaration

    Objective-C

    - (void)removeRoute:(TTMapRoute *_Nonnull)route;

    Swift

    func remove(_ route: TTMapRoute)

    Parameters

    route

    route TTMapRoute

  • Removes all route from the map

    Declaration

    Objective-C

    - (void)removeAllRoutes;

    Swift

    func removeAllRoutes()
  • Finds best zoom level and bounding box to present given route. Throws exception if route was not added to map before.

    Declaration

    Objective-C

    - (void)showRouteOverview:(TTMapRoute *_Nonnull)route;

    Swift

    func showRouteOverview(_ route: TTMapRoute)

    Parameters

    route

    route TTMapRoute

  • Finds best zoom level and bounding box to present all routes that are added to map.

    Declaration

    Objective-C

    - (void)showAllRoutesOverview;

    Swift

    func showAllRoutesOverview()