Class: IWAddressString

IWAddressString

A class for unstructured addresses (address strings).

new IWAddressString()

Creates a new address string.

Extends

Methods


equals(anotherAddress)

Checks if this address equals the specified one.
Parameters:
Name Type Description
anotherAddress IWAddressString
Returns:
true if address strings and country are the same
Type
boolean

getAddress()

Returns the address string.
Returns:
Type
String

getCoordinate()

Returns the coordinate of the geocoded address.
Inherited From:
Returns:
the coordinate
Type
IWCoordinate

getCountry()

Returns the full name of the country.
Inherited From:
Returns:
Type
String

getCountryCode()

Returns the country code.
Inherited From:
Deprecated:
  • use getIso3166Code instead
Returns:
Type
String

getDegree()

Returns the coordinate of the geocoded address.
Inherited From:
Deprecated:
  • use getCoordinate instead
Returns:
the coordinate
Type
IWCoordinate

getIdentifier()

Gets the identifier of this address
Inherited From:
Returns:
Type
string

getIso3166Code()

Returns the ISO 3166 ALPHA-3 country code.
Inherited From:
Returns:
Type
String

getLCC()

Returns the coordinate of the geocoded address.
Inherited From:
Deprecated:
  • use getCoordinate instead
Returns:
the coordinate
Type
IWCoordinate

getMeter()

Returns the coordinate of the geocoded address.
Inherited From:
Deprecated:
  • use getCoordinate instead
Returns:
the coordinate
Type
IWCoordinate

getRequestParameter()

Returns a semicolon separated string to use in URLs.
Returns:
Type
String

getWGS84()

Returns the coordinate of the geocoded address.
Inherited From:
Deprecated:
  • use getCoordinate instead
Returns:
the coordinate
Type
IWCoordinate

isEmpty()

Returns true if the address string is set and not empty, false otherwise.
Returns:
Type
boolean

setAddress(address)

Sets the address string.
Parameters:
Name Type Description
address String the address string
Returns:
Type
void

setCoordinate(coord)

Sets the coordinate on which the address has been located.
Parameters:
Name Type Description
coord IWCoordinate the coordinate
Inherited From:
Returns:
Type
void

setCountry(newCountry)

Sets the full name of the country.
Parameters:
Name Type Description
newCountry String the full country name, e.g. 'Germany'
Inherited From:
Returns:
Type
void

setCountryCode(newCountryCode)

Sets the country code of the address.
Parameters:
Name Type Description
newCountryCode String the country code
Inherited From:
Deprecated:
  • use setIso3166Code instead
Returns:
Type
void

setDegree(coord)

Sets the coordinate on which the address has been located.
Parameters:
Name Type Description
coord IWCoordinate the coordinate
Inherited From:
Deprecated:
  • use setCoordinate instead
Returns:
Type
void

setIdentifier(identifier)

Sets the identifier for this address
Parameters:
Name Type Description
identifier string
Inherited From:

setIso3166Code(newIso3166Code)

Sets the ISO 3166 ALPHA-3 country code of the address.
Parameters:
Name Type Description
newIso3166Code String the country code
Inherited From:
Returns:
Type
void

setLCC(newCoordinate)

Sets the coordinate on which the address has been located.
Parameters:
Name Type Description
newCoordinate IWCoordinate the coordinate
Inherited From:
Deprecated:
  • use setCoordinate instead
Returns:
Type
void

setMeter(coord)

Sets the coordinate on which the address has been located.
Parameters:
Name Type Description
coord IWCoordinate the coordinate
Inherited From:
Deprecated:
  • use setCoordinate instead
Returns:
Type
void

setWGS84(coord)

Sets the coordinate on which the address has been located.
Parameters:
Name Type Description
coord IWCoordinate the coordinate
Inherited From:
Deprecated:
  • use setCoordinate instead
Returns:
Type
void

toFormattedString()

Returns a string representation of the address.
Returns:
the address string
Type
String

toFullFormattedString()

Returns a string representation of the address. This consists of the address and the country code.
Returns:
the address string
Type
String

toString()

Returns a string representation of this address. This consists of class name and the values and can be used for debugging.
Returns:
Type
String