Platforms to show: All Mac Windows Linux Cross-Platform
MKRouteMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
An MKRouteMBS object defines the geometry for the route—that is, it contains line segments associated with specific map coordinates. A route object may also include other information, such as the name of the route, its distance, and the expected travel time.
You do not create instances of this class directly. When you use an MKDirectionsMBS object to request directions from Apple, the returned MKDirectionsResponseMBS object contains the possible routes.
- 6 properties
- property distance as Double
- property expectedTravelTime as Double
- property Handle as Integer
- property name as String
- property polyline as MKPolylineMBS
- property transportType as Integer
- 4 methods
- method advisoryNotices as String()
- method Constructor Private
- method Constructor(Handle as Integer)
- method steps as MKRouteStepMBS()
- 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:
- MKDirectionsResponseMBS.routes as MKRouteMBS()
Some properties using for this class:
- MKDirectionsResponseMBS.firstRoute as MKRouteMBS
Some examples using this class:
Blog Entries
Videos
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MKPolylineRendererMBS - MKRouteStepMBS