MRDirections Class Reference
Provides access to turn-by-turn directions between points on Meridian maps, calculated on Meridian servers.
The designated initializer.
- (instancetype)initWithRequest:(MRDirectionsRequest *)request presentingViewController:(UIViewController *_Nullable)viewController
The request that describes the desired route.
An optional view controller on which to present a modal “select starting location” interface if needed.
The request will be copied during initialization, so any changes made to the request
after this method returns do not affect the request used in
MRDirections will attempt to retrieve the user’s current location if either
isCurrentLocation set to
YES. If you want the user to be automatically prompted to select a starting location
in the case that a current location is not available, you should pass a view that should host the modal interface for choosing
the starting location.
Starts asynchonously calculating a route.
A block to run when the directions request is complete.
Any calls to
[MRDirections isCalculating] returns
YES will fail.
completionHandler will be called on the main queue.
Cancels a directions request.
Indicates whether or not a request is currently in progress.
@property (nonatomic, readonly, getter=isCalculating) BOOL calculating