Skip to content

aggrolite/Geo-States

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Geo::States - Lookup states and capitals by state names or abbreviations

SYNOPSIS

use Geo::States;

my $COUNTRY = 'US' || 'CA';
my $geo = Geo::States->new($COUNTRY);

say $geo->find('TN')->text;        # Tennessee
say $geo->find('Tennessee')->text; # TN
say $geo->find('TN')->capital;     # Nashville

DESCRIPTION

Geo::States will find a US or Canadian state/province (by name or abbreviation) and return an object with two subroutines:

  • text()

    The text of the state. If given full name, text() will return the abbreviation, and vice versa.

  • capital()

    Returns the capital name of the given state

AUTHOR

Curtis Brandt curtis@cpan.org

COPYRIGHT

Copyright (C) <2014> Curtis Brandt curtis@cpan.org

LICENSE

MIT license. See LICENSE file for details.

About

Lookup states and capitals by state names or abbreviations

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages