diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-11-16 11:14:32 -0500 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-11-16 11:17:13 -0500 |
| commit | f4825257402129ab712a16a2f63d7cca95be425d (patch) | |
| tree | 1d9da84d78b37e823d8c71fb6d296092e4bddb04 /httemplate/misc/xmlhttp-openstreetmap.html | |
| parent | 561c4dce4d01314f4fe2d44cf0a4c9a5d02a6100 (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.html | 15 |
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 |
