summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-openstreetmap.html
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-11-16 11:14:32 -0500
committerChristopher Burger <burgerc@freeside.biz>2018-11-16 11:14:32 -0500
commit12ac7af853e51693f1bc7e49669974b9cd54e9bb (patch)
treea6b0522b36c01de0e06ae89a8787a01c982c2de1 /httemplate/misc/xmlhttp-openstreetmap.html
parente91621d2c95ba5662958ee24946bb9324ee41b72 (diff)
RT# 81730 - added code to fix possible cross origin request error
Diffstat (limited to 'httemplate/misc/xmlhttp-openstreetmap.html')
-rw-r--r--httemplate/misc/xmlhttp-openstreetmap.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/misc/xmlhttp-openstreetmap.html b/httemplate/misc/xmlhttp-openstreetmap.html
new file mode 100644
index 000000000..bf6625c93
--- /dev/null
+++ b/httemplate/misc/xmlhttp-openstreetmap.html
@@ -0,0 +1,15 @@
+<% $return %>\
+<%init>
+
+my $DEBUG = 0;
+
+my $conf = new FS::Conf;
+
+my $return = {};
+
+my $url = "http://nominatim.openstreetmap.org/search?format=json&limit=1&q=" . $cgi->param('loc');
+
+use LWP::Simple;
+my $return = get $url;
+
+</%init> \ No newline at end of file