NTGeocodingResult
@interface NTGeocodingResult : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
A geocoding result object describing address, features (geometry) and rank of the result.
-
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 GeocodingResult from a projection, address, rank and feature collection.
Declaration
Objective-C
- (id)initWithProjection:(NTProjection *)projection address:(NTGeocodingAddress *)address rank:(float)rank featureCollection:(NTFeatureCollection *)featureCollection;Parameters
projectionThe projection used for the geometry of the result.
addressThe address of the result.
rankThe relative ranking of the result (in range 0..1).
featureCollectionThe geometry (features) associated with the result.
-
Returns the address of the result.
Declaration
Objective-C
- (NTGeocodingAddress *)getAddress;Return Value
The address of the result.
-
Returns the rank of the result. The rank is a normalized number between 0 and 1, 1 meaning a perfect match.
Declaration
Objective-C
- (float)getRank;Return Value
The rank of the result.
-
Returns the feature collection of the result.
Declaration
Objective-C
- (NTFeatureCollection *)getFeatureCollection;Return Value
The feature collection of the result.
-
Returns the projection of the geometry in the result.
Declaration
Objective-C
- (NTProjection *)getProjection;Return Value
The projection of the geometry in the result.
-
Creates a string representation of this result object, useful for logging.
Declaration
Objective-C
- (NSString *)description;Return Value
The string representation of this result object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTGeocodingResult Class Reference