Skip to contents

Object to create addresses for a locale. Makes use of PersonProvider for creating street names.

Value

Returns an AddressProvider object.

Details

When there is no PersonProvider for this locale, we default back to en_US.

Super classes

charlatan::BareProvider -> charlatan::BaseProvider -> charlatan::AddressProvider -> AddressProvider_en_NZ

Methods

Inherited methods


Method address()

Create an address, a combination of street, postal code and city.

Usage

AddressProvider_en_NZ$address()


Method city()

Create a city

Usage

AddressProvider_en_NZ$city()


Method street_name()

Create a street name

Usage

AddressProvider_en_NZ$street_name()


Method street_address()

Create a street address , a combination of streetname and house indicator.

Usage

AddressProvider_en_NZ$street_address()


Method postcode()

Create a postal code

Usage

AddressProvider_en_NZ$postcode()


Method clone()

The objects of this class are cloneable with this method.

Usage

AddressProvider_en_NZ$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

(z <- AddressProvider_en_NZ$new())
#> < AddressProvider >
#> locale: en_NZ
z$postcode()
#> [1] "4921"
z$street_name()
#> [1] "Kawanuku Road"
z$address()
#> [1] "PO Box 88\nNewRange Road 5750"
z$city()
#> [1] "UpperDrive"