Platforms to show: All Mac Windows Linux Cross-Platform
MKDirectionsRequestMBS 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 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.
- 9 properties
- property arrivalDate as Date
- property arrivalDateTime as DateTime
- property departureDate as Date
- property departureDateTime as DateTime
- property destination as MKMapItemMBS
- property Handle as Integer
- property requestsAlternateRoutes as Boolean
- property source as MKMapItemMBS
- property transportType as Integer
- 3 methods
- method Constructor
- method Constructor(Handle as Integer)
- method Constructor(URL as string)
- shared method isDirectionsRequestURL(URL as string) as Boolean
- 4 constants
Transport Types
Constant | Value | Description |
---|---|---|
TransportTypeAny | &h0FFFFFFF |
Directions suitable for any transportation option. |
TransportTypeAutomobile | 1 |
Directions suitable for use while driving. |
TransportTypeTransit | 3 |
Directions suitable for public transportation. |
TransportTypeWalking | 2 |
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 using this class:
Blog Entries
Videos
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MKDirectionsMBS - MKDirectionsResponseMBS