NAME

Geography::States::Borders - Return the borders of states and provinces

VERSION

version 0.0105

SYNOPSIS

use Geography::States::Borders ();
my $geo = Geography::States::Borders->new(country => 'Netherlands');
my $states = $geo->borders('AW'); # empty list
$states = $geo->borders('UT');    # ZH NH GE

DESCRIPTION

Geography::States::Borders returns the borders of states and provinces.

* Currently the only recognized countries are Australia, Canada, Brazil, The Netherlands, and the USA.

ATTRIBUTES

country

$country = $geo->country;

Set the country.

Default: usa

METHODS

new

$geo = Geography::States::Borders->new(country => $country);

Create a new Geography::States::Borders object.

borders

@states = $geo->borders($state_code);

Return the bordering states of the given state code.

SEE ALSO

Moo

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2024 by Gene Boggs.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)