NTAddress


@interface NTAddress : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A geographical address describing country, region, county and other information. This class is deprecated and will be removed in future SDK versions. Use GeocodingAddress instead. @deprecated

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Parameters

    object

    The 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 an empty Address object.

    Declaration

    Objective-C

    - (id)init;
  • Constructs a new address from the the country, region, county and other attributes.

    Declaration

    Objective-C

    - (id)initWithCountry:(NSString *)country
                   region:(NSString *)region
                   county:(NSString *)county
                 locality:(NSString *)locality
            neighbourhood:(NSString *)neighbourhood
                   street:(NSString *)street
                 postcode:(NSString *)postcode
              houseNumber:(NSString *)houseNumber
                     name:(NSString *)name
               categories:(NTStringVector *)categories;

    Parameters

    country

    The country name of the address.

    region

    The region name of the address.

    county

    The county name of the address.

    locality

    The locality name of the address.

    neighbourhood

    The neighbourhood name of the address.

    street

    The street name of the address.

    postcode

    The postcode of the address.

    houseNumber

    The house number of the address.

    name

    The name of the address.

    categories

    The category tags describing the address.

  • Returns the country name included in the address.

    Declaration

    Objective-C

    - (NSString *)getCountry;

    Return Value

    The country name included in the address.

  • Returns the region name included in the address.

    Declaration

    Objective-C

    - (NSString *)getRegion;

    Return Value

    The region name included in the address.

  • Returns the county name included in the address.

    Declaration

    Objective-C

    - (NSString *)getCounty;

    Return Value

    The county name included in the address.

  • Returns the locality (city, town, village) name included in the address.

    Declaration

    Objective-C

    - (NSString *)getLocality;

    Return Value

    The locality name included in the address.

  • Returns the local neighbourhood name included in the address.

    Declaration

    Objective-C

    - (NSString *)getNeighbourhood;

    Return Value

    The neighbourhood name included in the address.

  • Returns the street name included in the address.

    Declaration

    Objective-C

    - (NSString *)getStreet;

    Return Value

    The street name included in the address.

  • Returns the postcode of the address.

    Declaration

    Objective-C

    - (NSString *)getPostcode;

    Return Value

    The postcode of the address.

  • Returns the house number included in the address.

    Declaration

    Objective-C

    - (NSString *)getHouseNumber;

    Return Value

    The house number included in the address.

  • Returns the name included in the address.

    Declaration

    Objective-C

    - (NSString *)getName;

    Return Value

    The name included in the address.

  • Returns the list of category tags describing the address.

    Declaration

    Objective-C

    - (NTStringVector *)getCategories;

    Return Value

    The list of category tags describing the address.

  • Checks for equality between this and another address object.

    Declaration

    Objective-C

    - (BOOL)isEqualInternal:(NTAddress *)address;

    Parameters

    address

    The other address object.

    Return Value

    True if equal.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (int)hashInternal;

    Return Value

    The hash value of this object.

  • Creates a string representation of this address object, useful for logging.

    Declaration

    Objective-C

    - (NSString *)description;

    Return Value

    The string representation of this address object.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;