source: subversion/sites/other/freemap-npe/geocoder_ajax.php

Last change on this file was 1540, checked in by nick, 13 years ago

Freemap-NPE: initial version

File size: 837 bytes
Line 
1<?php
2################################################################################
3# This file forms part of the Freemap source code.                             #
4# (c) 2004-06 Nick Whitelegg (Hogweed Software)                                #
5# Licenced under the Lesser GNU General Public Licence; see COPYING            #
6# for details.                                                                 #
7################################################################################
8//header("Content-type: text/xml");
9require_once('geocoder_funcs.php');
10require_once('latlong.php');
11
12
13
14$pos = geocoder($_REQUEST['place'],$_REQUEST['country']);
15if($pos['lat']>=49 && $pos['lat']<=59 &&  $pos['long'] >= -7 && $pos['long']<=2)
16{
17        $gr = wgs84_ll_to_gr($pos);
18        echo round($gr['e']).",".round($gr['n']);
19}
20else
21{
22        echo "0,0";
23}
24
25?>
Note: See TracBrowser for help on using the repository browser.