NAME

Faker::Provider::Address - Faker Standard Address Provider

VERSION

version 0.11

SYNOPSIS

use Faker;
use Faker::Provider::Address;

my $faker = Faker->new;
my $address = Faker::Provider::Address->new(factory => $faker);

say $address->lines;

DESCRIPTION

Faker::Provider::Address is a Faker provider which provides fake address data. Note: This is an early release available for testing and feedback and as such is subject to change.

METHODS

line1

$address->line1;

# 5474 Blick Street
# 5451 Sporer Circle
# 7642 Larson Avenue

The line1 method generates a random address string containing a random ficticious building number and street name.

lines

$address->lines;

# 5 Okuneva Avenue, Florineford, 46378
# 73 Brakus Parkway, Kentonville, 34829
# 8 Senger Street, Camylleville, 97587

The lines method generates a random address string containing a random ficticious building number, street name, city, and postal code.

number

$address->number;

# 35
# 6
# 1

The number method generates a random ficticious 1, 2, or 4 digit building number.

city_name

$address->city_name;

# Orantown
# Lilianburg
# Rodrickford

The city_name method generates a random ficticious city name.

city_suffix

$address->city_suffix;

# town
# ville
# town

The city_suffix method generates a random ficticious city suffix.

latitude

$address->latitude;

# 88.600763
# 55.138796
# 2554363

The latitude method generates a random ficticious latitude coordinate.

longitude

$address->longitude;

# -62.811525
# -89.332889
# -73.364117

The longitude method generates a random ficticious longitude coordinate.

postal_code

$address->postal_code;

# 26022-5271
# 12886
# 55783-2207

The postal_code method generates a random ficticious postal code.

street_name

$address->street_name;

# Smitham Circle
# Yundt Street
# Tromp Parkway

The street_name method generates a random ficticious street name.

street_suffix

$address->street_suffix;

# Circle
# Avenue
# Circle

The street_suffix method generates a random ficticious street suffix.

AUTHOR

Al Newkirk <anewkirk@ana.io>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Al Newkirk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.