|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||MapKit||MBS MacFrameworks Plugin||19.0||Yes||No||No||Yes, macOS only||No|
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.
- 2 events
- 3 properties
- 5 methods
This class has no sub classes.
Some examples which use this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MBS Xojo PDF Plugins