new IWAbstractAddress(country, coordinate)
Creates a new address
Parameters:
Name | Type | Description |
---|---|---|
country |
String | ISO 3166 ALPHA-3 code for the country |
coordinate |
IWCoordinate | the coordinate (optional) |
Methods
-
getCoordinate()
-
Returns the coordinate of the geocoded address.
Returns:
the coordinate- Type
- IWCoordinate
-
getCountry()
-
Returns the full name of the country.
Returns:
- Type
- String
-
getCountryCode()
-
Returns the country code.
- Deprecated:
-
- use getIso3166Code instead
Returns:
- Type
- String
-
getDegree()
-
Returns the coordinate of the geocoded address.
- Deprecated:
-
- use getCoordinate instead
Returns:
the coordinate- Type
- IWCoordinate
-
getIdentifier()
-
Gets the identifier of this address
Returns:
- Type
- string
-
getIso3166Code()
-
Returns the ISO 3166 ALPHA-3 country code.
Returns:
- Type
- String
-
getLCC()
-
Returns the coordinate of the geocoded address.
- Deprecated:
-
- use getCoordinate instead
Returns:
the coordinate- Type
- IWCoordinate
-
getMeter()
-
Returns the coordinate of the geocoded address.
- Deprecated:
-
- use getCoordinate instead
Returns:
the coordinate- Type
- IWCoordinate
-
getWGS84()
-
Returns the coordinate of the geocoded address.
- Deprecated:
-
- use getCoordinate instead
Returns:
the coordinate- Type
- IWCoordinate
-
setCoordinate(coord)
-
Sets the coordinate on which the address has been located.
Parameters:
Name Type Description coord
IWCoordinate the coordinate 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' Returns:
- Type
- void
-
setCountryCode(newCountryCode)
-
Sets the country code of the address.
Parameters:
Name Type Description newCountryCode
String the country code - 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 - Deprecated:
-
- use setCoordinate instead
Returns:
- Type
- void
-
setIdentifier(identifier)
-
Sets the identifier for this address
Parameters:
Name Type Description identifier
string -
setIso3166Code(newIso3166Code)
-
Sets the ISO 3166 ALPHA-3 country code of the address.
Parameters:
Name Type Description newIso3166Code
String the country code Returns:
- Type
- void
-
setLCC(newCoordinate)
-
Sets the coordinate on which the address has been located.
Parameters:
Name Type Description newCoordinate
IWCoordinate the coordinate - 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 - 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 - Deprecated:
-
- use setCoordinate instead
Returns:
- Type
- void