Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

MKDirectionsRequestMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: The start and end points of a route, along with the planned mode of transportation.
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.

Feedback, Comments & Corrections

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:

Some properties using for this class:

Some examples which use this class:

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

MKDirectionsMBS   -   MKDirectionsResponseMBS

The biggest plugin in space...

MBS Xojo Plugins