From e91621d2c95ba5662958ee24946bb9324ee41b72 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Fri, 16 Nov 2018 09:09:13 -0500 Subject: RT# 81730 - fixed XMLHttpRequest async issue, and fixed changed .gov api link. --- httemplate/misc/xmlhttp-censustract.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'httemplate/misc/xmlhttp-censustract.html') 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; -- cgit v1.2.1