Learn R Programming

geometa (version 0.6-2)

ISOAddress: ISOAddress

Description

ISOAddress

Usage

ISOAddress

Arguments

Value

Object of R6Class for modelling an ISO Address

Format

R6Class object.

Fields

deliveryPoint

[character]

city

[character]

postalCode

[character]

country

[ISOCountry]

electronicMailAddress

[character]

Methods

new(xml)

This method is used to instantiate an ISOAddress

setDeliveryPoint(deliveryPoint, locales)

Sets the delivery point. Locale names can be specified as list with the locales argument.

setCity(city, locales)

Sets the city. Locale names can be specified as list with the locales argument.

setPostalCode(postalCode, locales)

Sets the postal code. Locale names can be specified as list with the locales argument.

setCountry(country, locales)

Sets the country. Locale names can be specified as list with the locales argument.

setEmail(email, locales)

Sets the electronic Mail address. Locale names can be specified as list with the locales argument.

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
 md <- ISOAddress$new()
 md$setDeliveryPoint("theaddress")
 md$setCity("thecity")
 md$setPostalCode("111")
 md$setCountry("France")
 md$setEmail("someone@theorg.org")
 xml <- md$encode()
 
# }

Run the code above in your browser using DataLab