#include <MPDirectionsQuery.h>
◆ init
- (nonnull instancetype) init |
|
|
|
◆ initWithOrigin:destination:
- (nonnull instancetype) initWithOrigin: |
|
(nonnull MPLocation *) | origin |
destination: |
|
(nonnull MPLocation *) | destination |
Initialiser that takes locations as origin and destination.
- Parameters
-
origin | Origin location. |
destination | Destination location. |
- Returns
- The directions query instance.
◆ initWithOriginPoint:destination:
- (nonnull instancetype) initWithOriginPoint: |
|
(nonnull MPPoint *) | origin |
destination: |
|
(nonnull MPPoint *) | destination |
Initialiser that takes points as origin and destination.
- Parameters
-
origin | Origin point. |
destination | Destination point. |
- Returns
- The directions query instance.
◆ NS_UNAVAILABLE
+ (nonnull instancetype) NS_UNAVAILABLE |
|
|
|
◆ arrival
Date for arrival. Setting both arrival and departure will result in undefined behavior.
◆ avoidWayTypes
- (NSArray<MPHighwayType>*) avoidWayTypes |
|
readwritenonatomicstrong |
Way types that should be avoided when calculating routes. Supports any MPHighwayType.
◆ departure
Date for departure. Setting both arrival and departure will result in undefined behavior.
◆ destination
◆ origin
◆ travelMode
Set travel mode. Default is walking.
◆ userRoles
The user roles that the route should match.