MRDirectionsDestination Class Reference
Inherits from | NSObject |
---|---|
Declared in | MRDirectionsRequest.h |
+ destinationWithCurrentLocation
Creates and returns a destination that indicates the current users location.
+ (instancetype)destinationWithCurrentLocation
Declared In
MRDirectionsRequest.h
+ destinationWithFriend:
Creates and returns a destination that indicates a friend.
+ (instancetype)destinationWithFriend:(MRFriend *)friend_
Parameters
friend_ |
a friend to be used as a destination. |
---|
Declared In
MRDirectionsRequest.h
+ destinationWithTag:
Creates and returns a destination that indicates a tag.
+ (instancetype)destinationWithTag:(MRTag *)tag
Parameters
tag |
a tag to be used as a destination. |
---|
Declared In
MRDirectionsRequest.h
+ destinationWithPlacemarkKey:
Creates and returns a destination derived from a placemark key.
+ (instancetype)destinationWithPlacemarkKey:(MREditorKey *)placemarkKey
Parameters
placemarkKey |
the key of a placemark to be used as a destination. |
---|
Declared In
MRDirectionsRequest.h
+ destinationWithPlacemarkKeys:
Creates and returns a destination derived from an array of placemark keys.
+ (instancetype)destinationWithPlacemarkKeys:(NSArray<MREditorKey*> *)placemarkKeys
Parameters
placemarkKeys |
an array of placemark MREditorKey to be used as a destination. The closest of these to the DirectionsSource will be used. |
---|
Declared In
MRDirectionsRequest.h
+ destinationWithMapKey:withPoint:
Creates and returns a destination derived from a point on a map.
+ (instancetype)destinationWithMapKey:(MREditorKey *)mapKey withPoint:(CGPoint)point
Parameters
mapKey |
the MREditorKey of the map to which the point belongs. |
---|---|
point |
the point. |
Declared In
MRDirectionsRequest.h
+ destinationWithPlacemarkType:
Creates and returns a destination derived from a type of placemark.
+ (instancetype)destinationWithPlacemarkType:(NSString *)placemarkType
Parameters
placemarkType |
the type of placemark to get directions to, the nearest placemark of this type to the DirectionsSource will be used. |
---|
Declared In
MRDirectionsRequest.h