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_GB

Methods

Inherited methods


Method address()

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

Usage

AddressProvider_en_GB$address()


Method city()

Create a city

Usage

AddressProvider_en_GB$city()


Method street_name()

Create a street name.

Usage

AddressProvider_en_GB$street_name()


Method street_address()

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

Usage

AddressProvider_en_GB$street_address()


Method postcode()

Create a postal code

Usage

AddressProvider_en_GB$postcode()


Method building_number()

Create a building number

Usage

AddressProvider_en_GB$building_number()


Method clone()

The objects of this class are cloneable with this method.

Usage

AddressProvider_en_GB$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

(z <- AddressProvider_en_GB$new())
#> < AddressProvider >
#> locale: en_GB
z$locale
#> [1] "en_GB"
z$postcode()
#> [1] "S4F 3GL"
z$street_name()
#> [1] "John course"
z$address()
#> [1] "64 Fiona curve\nShawtown\nEX2A 1FJ"
z$city()
#> [1] "West Amandahaven"