RT# 76968 - Created new interactive map to select census tract
[freeside.git] / httemplate / misc / xmlhttp-censustract.html
diff --git a/httemplate/misc/xmlhttp-censustract.html b/httemplate/misc/xmlhttp-censustract.html
new file mode 100644 (file)
index 0000000..8a76860
--- /dev/null
@@ -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