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_nl_NL

Methods

Inherited methods


Method address()

Create an address, a combination of street, postal code and city. The three components street, postal code and city are generated independently, so they are not related.

Usage

AddressProvider_nl_NL$address()


Method city()

Create a city

Usage

AddressProvider_nl_NL$city()


Method street_name()

Create a street name

Usage

AddressProvider_nl_NL$street_name()


Method street_address()

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

Usage

AddressProvider_nl_NL$street_address()


Method postcode()

Create a postal code, does not exclude impossible postcodes in The Netherlands (leading zero for examples) but looks good enough for most purposes.

Usage

AddressProvider_nl_NL$postcode()


Method building_number()

building number.

Usage

AddressProvider_nl_NL$building_number()


Method province()

Create a province.

Usage

AddressProvider_nl_NL$province()


Method clone()

The objects of this class are cloneable with this method.

Usage

AddressProvider_nl_NL$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

(z <- AddressProvider_nl_NL$new())
#> < AddressProvider >
#> locale: nl_NL
z$locale
#> [1] "nl_NL"
z$postcode()
#> [1] "3088 JQ"
z$street_name()
#> [1] "Kayleestraat"
z$address()
#> [1] "Arienshof 199\n2077 DV Sepptrecht"
z$city()
#> [1] "Masonmeren"
z$province()
#> [1] "Zuid-Holland"