MSFGeocodingRequest
Objective-C
@interface MSFGeocodingRequest : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFGeocodingRequest : NSObject
A geocoding request describing text-based query and other optional constraints.
-
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 GeocodingRequest object from a projection and a string-based query.
Declaration
Objective-C
- (id)initWithProjection:(MSFProjection *)projection query:(NSString *)query;Swift
init!(projection: MSFProjection!, query: String!)Parameters
projectionThe projection to use for the result and location data.
queryThe text-based query.
-
Returns the text-based query of the request.
Declaration
Objective-C
- (NSString *)getQuery;Swift
func getQuery() -> String!Return Value
The text-based query of the request.
-
Returns the projection of the request.
Declaration
Objective-C
- (MSFProjection *)getProjection;Swift
func getProjection() -> MSFProjection!Return Value
The projection of the request.
-
Returns the location radius attribute of the request (in meters).
Declaration
Objective-C
- (float)getLocationRadius;Swift
func getLocationRadius() -> FloatReturn Value
The location radius attribute of the request in meters.
-
Sets the location radius attribute of the request. The default is 0, which means that location based ranking is not applied.
Declaration
Objective-C
- (void)setLocationRadius:(float)radius;Swift
func setLocationRadius(_ radius: Float)Parameters
radiusThe location radius attribute of the request in meters.
-
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 value 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, “ranking.location_sigma”.
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()