Platforms to show: All Mac Windows Linux Cross-Platform

MKDirectionsMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A utility object that computes directions and travel-time information based on the route information you provide.

You use an MKDirections object to ask the Apple servers to provide walking or driving directions for a route, which you specify using an MKDirectionsRequestMBS object. After making a request, MapKit delivers the results asynchronously to the completion handler that you provide. You can also get the estimated travel time for the route.

Each MKDirectionsMBS object handles a single request for directions, although you can cancel and restart that request as needed. You can create multiple instances of this class and process different route requests at the same time, but you should make requests only when you plan to present the corresponding route information to the user. Apps may receive a MKErrorLoadingThrottled error if too many requests have been made from the current device in too short a time period.

This class has no sub classes.

Some examples using this class:

Blog Entries

Videos


The items on this page are in the following plugins: MBS MacFrameworks Plugin.


MKCustomOverlayRendererMBS   -   MKDirectionsRequestMBS


The biggest plugin in space...