|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 MKDirectionsRequestMBS object when requesting or providing directions. If your app provides directions, use this class to decode the URL sent to you by Maps. If you need to request directions from Apple, pass an instance of this class to an MKDirections object. For example, an app that provides subway directions might request walking directions to and from relevant subway stations.
For apps that provide directions, you receive direction-related URLs in your app delegate’s application:openURL:sourceApplication:annotation: method. Upon receiving a URL, call the isDirectionsRequestURL method of this class to determine if the URL is related to routing directions. If it is, create an instance of this class using the provided URL and extract the map items associated with the start and end points.
To provide routing directions, your app must include special keys in its Info.plist file and be able to handle URLs sent to it by the Maps app. These keys indicate a special URL type that your app must be prepared to handle. For information about how to implement this support, see Location and Maps Programming Guide.
- 7 properties
- 2 methods
- shared method isDirectionsRequestURL(URL as string) as Boolean
- 4 constants
Directions suitable for any transportation option.
Directions suitable for use while driving.
Directions suitable for public transportation.
Directions suitable for a pedestrian.
This class has no sub classes.
Some methods using this class:
- MKDirectionsMBS.Constructor(request as MKDirectionsRequestMBS)
Some properties using for this class:
- MKDirectionsMBS.Request as MKDirectionsRequestMBS
Some examples which use this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MBS Xojo tutorial videos