NTRouteMatchingRequest
@interface NTRouteMatchingRequest : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
A class that defines required attributes for route matching.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Parameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Return Value
The hash value of this object.
-
Constructs a new RouteMatchingRequest instance from projection, measured points and accuracy.
Declaration
Objective-C
- (id)initWithProjection:(NTProjection *)projection points:(NTMapPosVector *)points accuracy:(float)accuracy;Parameters
projectionThe projection of the points.
pointsThe list of points to match. Must contains at least 1 element.
accuracyAccuracy of the points in meters.
-
Returns the projection of the points in the request.
Declaration
Objective-C
- (NTProjection *)getProjection;Return Value
The projection of the request.
-
Returns the measured points of the request.
Declaration
Objective-C
- (NTMapPosVector *)getPoints;Return Value
The measured points of the request.
-
Returns the accuracy of the points in the request.
Declaration
Objective-C
- (float)getAccuracy;Return Value
The accuracy of the points in the request.
-
Returns the parameter value for the given routing point.
Declaration
Objective-C
- (NTVariant *)getPointParameter:(int)index param:(NSString *)param;Parameters
indexThe routing point index.
paramThe name of the parameter.
Return Value
The value of the specified parameter of the given routing point. If the parameter does not exist, empty variant is returned.
-
Sets the parameter value for the given routing point. This is currently supported by Valhalla routing engine and can be used to specify initial or final heading, for example.
Declaration
Objective-C
- (void)setPointParameter:(int)index param:(NSString *)param value:(NTVariant *)value;Parameters
indexThe routing point index.
paramThe name of the parameter to set.
valueThe new value for the parameter of the given routing point.
-
Returns the custom parameter value of the request.
Declaration
Objective-C
- (NTVariant *)getCustomParameter:(NSString *)param;Parameters
paramThe name of the parameter to return.
Return Value
The value of the parameter. If the parameter does not exist, empty variant is returned.
-
Sets a custom parameter for the the request.
Declaration
Objective-C
- (void)setCustomParameter:(NSString *)param value:(NTVariant *)value;Parameters
paramThe name of the parameter. For example, “trace_options.search_radius”.
valueThe new value for the parameter.
-
Creates a string representation of this request object, useful for logging.
Declaration
Objective-C
- (NSString *)description;Return Value
The string representation of this request object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTRouteMatchingRequest Class Reference