summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-censustract.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-10-03 09:36:51 -0700
committerIvan Kohler <ivan@freeside.biz>2017-10-03 09:36:51 -0700
commit929783d1045757abbe5c84ff2439547b0f8eca23 (patch)
tree21b0a2c17ce809115712042b61f47c97b3b8ef0a /httemplate/misc/xmlhttp-censustract.html
parent9270a9fe7ea00f5a24a9ce3b927f932db6650b23 (diff)
parent90430c5c67581b41b3c4ad48f70b9e443092977b (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/misc/xmlhttp-censustract.html')
-rw-r--r--httemplate/misc/xmlhttp-censustract.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/httemplate/misc/xmlhttp-censustract.html b/httemplate/misc/xmlhttp-censustract.html
new file mode 100644
index 000000000..8a7686047
--- /dev/null
+++ b/httemplate/misc/xmlhttp-censustract.html
@@ -0,0 +1,14 @@
+<% $return %>\
+<%init>
+
+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');
+
+use LWP::Simple;
+my $return = get $url;
+
+</%init> \ No newline at end of file