CitymapperDirections
public class CitymapperDirections
-
Declaration
Swift
public static let shared: CitymapperDirections
-
Declaration
Swift
public func planWalkRoutes(start: CLLocationCoordinate2D, end: CLLocationCoordinate2D, withCompletion completion: @escaping (DirectionsApiResults) -> Void)
-
Declaration
Swift
public func planBikeRoutes(start: CLLocationCoordinate2D, end: CLLocationCoordinate2D, profiles: [Profile] = [Profile.regular], withCompletion completion: @escaping (DirectionsApiResults) -> Void)
-
Declaration
Swift
public func planScooterRoute(start: CLLocationCoordinate2D, end: CLLocationCoordinate2D, withCompletion completion: @escaping (DirectionsApiResults) -> Void)
-
Declaration
Swift
public func planScooterHireRoute(start: CLLocationCoordinate2D, end: CLLocationCoordinate2D, brandId: String, originalVehicleLocation: Coords? = nil, withCompletion completion: @escaping (DirectionsApiResults) -> Void)
-
Declaration
Swift
public func planBikeHireRoutes(start: CLLocationCoordinate2D, end: CLLocationCoordinate2D, brandId: String, originalVehicleLocation: Coords? = nil, profiles: [Profile] = [Profile.regular], withCompletion completion: @escaping (DirectionsApiResults) -> Void)
-
Declaration
Swift
public func planTransitRoutes(start: CLLocationCoordinate2D, end: CLLocationCoordinate2D, time: Date? = nil, timeType: TimeType? = nil, withCompletion completion: @escaping (DirectionsApiResults) -> Void)
-
Declaration
Swift
public func subscribeToUpdatesForRoutes(_ routes: [Route], delegate: LiveRouteUpdatesServiceDelegate)
-
Declaration
Swift
public func unsubscribeFromUpdatesToRoutes(delegate: LiveRouteUpdatesServiceDelegate)