blob: 985fb90e510c5999495d77acf5861fe8a33596bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<% $return %>\
<%init>
my $DEBUG = 0;
my $conf = new FS::Conf;
my $return = {};
## new api link, see doc https://geo.fcc.gov/api/census/
my $url = "https://geo.fcc.gov/api/census/block/find?format=json&censusYear=" . $cgi->param('census_year') . "&latitude=" . $cgi->param('lat') . "&longitude=" . $cgi->param('lon');
use LWP::Simple;
my $return = get $url;
</%init>
|