MSFRouteMatchingRequest
Objective-C
@interface MSFRouteMatchingRequest : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFRouteMatchingRequest : NSObject
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;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 RouteMatchingRequest instance from projection, measured points and accuracy.
Declaration
Objective-C
- (id)initWithProjection:(MSFProjection *)projection points:(MSFMapPosVector *)points accuracy:(float)accuracy;Swift
init!(projection: MSFProjection!, points: MSFMapPosVector!, accuracy: Float)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
- (MSFProjection *)getProjection;Swift
func getProjection() -> MSFProjection!Return Value
The projection of the request.
-
Returns the measured points of the request.
Return Value
The measured points of the request.
-
Returns the accuracy of the points in the request.
Declaration
Objective-C
- (float)getAccuracy;Swift
func getAccuracy() -> FloatReturn Value
The accuracy of the points in the request.
-
Returns the parameter value for the given routing point.
Declaration
Objective-C
- (MSFVariant *)getPointParameter:(int)index param:(NSString *)param;Swift
func getPointParameter(_ index: Int32, param: String!) -> MSFVariant!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:(MSFVariant *)value;Swift
func setPointParameter(_ index: Int32, param: String!, value: MSFVariant!)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
- (MSFVariant *)getCustomParameter:(NSString *)param;Swift
func getCustomParameter(_ param: String!) -> MSFVariant!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:(MSFVariant *)value;Swift
func setCustomParameter(_ param: String!, value: MSFVariant!)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;Swift
func description() -> String!Return Value
The string representation of this request object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()