MSFRoutingInstruction
Objective-C
@interface MSFRoutingInstruction : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFRoutingInstruction : NSObject
A class that defines a routing instruction at specified position in the path.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Constructs a new RoutingInstruction instance with all values set to default.
Declaration
Objective-C
- (id)init;Swift
init!() -
Constructs a new RoutingInstruction instance given all instruction attributes.
Declaration
Objective-C
- (id)initWithAction:(enum MSFRoutingAction)action pointIndex:(int)pointIndex streetName:(NSString *)streetName instruction:(NSString *)instruction turnAngle:(float)turnAngle azimuth:(float)azimuth distance:(double)distance time:(double)time geometryTag:(MSFVariant *)geometryTag;Swift
init!(action: MSFRoutingAction, pointIndex: Int32, streetName: String!, instruction: String!, turnAngle: Float, azimuth: Float, distance: Double, time: Double, geometryTag: MSFVariant!)Parameters
actionAction to take.
pointIndexInstruction starting point index in the point list.
streetNameStreet name.
instructionThe optional instruction description.
turnAngleTurn angle in degrees.
azimuthAzimuth in degrees.
distanceThe distance to move along the given street in meters.
timeThe approximate duration of the instruction in seconds.
geometryTagThe geometry tag associated with the instruction.
-
Returns the action of the instruction.
Declaration
Objective-C
- (enum MSFRoutingAction)getAction;Swift
func getAction() -> MSFRoutingActionReturn Value
The action to take.
-
Returns the index of the first geometry point in external point array.
Declaration
Objective-C
- (int)getPointIndex;Swift
func getPointIndex() -> Int32Return Value
The point index.
-
Returns the name of street.
Declaration
Objective-C
- (NSString *)getStreetName;Swift
func getStreetName() -> String!Return Value
The name of the street.
-
Returns the optional instruction description. This info is dependent on the routing engine (can be empty) and may be localized.
Declaration
Objective-C
- (NSString *)getInstruction;Swift
func getInstruction() -> String!Return Value
The optional instruction description.
-
Returns the turn angle of the action.
Declaration
Objective-C
- (float)getTurnAngle;Swift
func getTurnAngle() -> FloatReturn Value
The turn angle in degrees.
-
Returns the azimuth of the initial position.
Declaration
Objective-C
- (float)getAzimuth;Swift
func getAzimuth() -> FloatReturn Value
The azimuth in degrees.
-
Returns the distance to move along the given street.
Declaration
Objective-C
- (double)getDistance;Swift
func getDistance() -> DoubleReturn Value
The distance to move in meters.
-
Returns the time approximate duration of the instruction.
Declaration
Objective-C
- (double)getTime;Swift
func getTime() -> DoubleReturn Value
The approximate duration of the instruction in seconds.
-
Returns the geometry tag associated with the instructions.
Return Value
The geometry tag associated with the instructions.
-
Creates a string representation of this instruction, useful for logging.
Declaration
Objective-C
- (NSString *)description;Swift
func description() -> String!Return Value
The string representation of this instruction.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()