X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fxmlhttp-openstreetmap.html;fp=httemplate%2Fmisc%2Fxmlhttp-openstreetmap.html;h=bf6625c93483347548a27277214d44f7dcac0450;hp=0000000000000000000000000000000000000000;hb=12ac7af853e51693f1bc7e49669974b9cd54e9bb;hpb=e91621d2c95ba5662958ee24946bb9324ee41b72 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; + + \ No newline at end of file