summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-censustract.html
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-11-16 09:09:13 -0500
committerChristopher Burger <burgerc@freeside.biz>2018-11-16 10:35:57 -0500
commit561c4dce4d01314f4fe2d44cf0a4c9a5d02a6100 (patch)
tree69aa8352ebe7e07758dcdf68bd70124f7dd779c1 /httemplate/misc/xmlhttp-censustract.html
parent6bb14ffd47dad8f874a74938fc992f9ea90b3104 (diff)
RT# 81730 - fixed XMLHttpRequest async issue, and fixed changed .gov api link.
Diffstat (limited to 'httemplate/misc/xmlhttp-censustract.html')
-rw-r--r--httemplate/misc/xmlhttp-censustract.html4
1 files changed, 3 insertions, 1 deletions
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;