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 |
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
- event calculateDirectionsCompleted(response as MKDirectionsResponseMBS, error as NSErrorMBS, tag as Variant)
- event calculateETAWithCompleted(response as MKETAResponseMBS, error as NSErrorMBS, tag as Variant)
- 3 properties
- property Calculating as Boolean
- property Handle as Integer
- property Request as MKDirectionsRequestMBS
- 6 methods
- method calculateDirections(tag as variant = nil)
- method calculateETA(tag as variant = nil)
- method cancel
- method Constructor(Handle as Integer)
- method Constructor(request as MKDirectionsRequestMBS)
- method Destructor
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