Elevation::USGS;
use 5.008;
use strict;
use warnings;
use Carp;
use HTTP::Request::Common;
use JSON;
use LWP::UserAgent;
use Scalar::Util 1.10 qw{ blessed looks_like_number };
our $VERSION = '0.20
'https://nationalmap.gov/epqs/pqs.php';
use constant USGS_URL => 'https://epqs.nationalmap.gov/v1/json';
use constant ARRAY_REF => ref [];
use constant CODE_REF => ref sub {};
use constant HASH_REF =
parsed JSON
# returned from the NAD server.
sub _request {
my ( $self, %arg ) = @_;
# The allow_nonref() is for the benefit of {_hack_result}.
my $json = $self->{_json} ||= JSON->new()-