X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fxmlhttp-censustract.html;h=985fb90e510c5999495d77acf5861fe8a33596bf;hp=8a76860472c4f24a212a87961b34545a90ff7c5a;hb=1fc8addc56f8daf12397da568eb1ac1b27fd3984;hpb=6f94e176aa7b143eb9f1fa5c3a1cdd362361636f diff --git a/httemplate/misc/xmlhttp-censustract.html b/httemplate/misc/xmlhttp-censustract.html index 8a7686047..985fb90e5 100644 --- a/httemplate/misc/xmlhttp-censustract.html +++ b/httemplate/misc/xmlhttp-censustract.html @@ -6,7 +6,9 @@ my $DEBUG = 0; my $conf = new FS::Conf; my $return = {}; -my $url = "http://data.fcc.gov/api/block/find?format=json&censusYear=" . $cgi->param('census_year') . "&latitude=" . $cgi->param('lat') . "&longitude=" . $cgi->param('lon'); + +## 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;