chaoley / gmaps-samples

Automatically exported from code.google.com/p/gmaps-samples
0 stars 0 forks source link

api script- database updation #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following code doesnot give the correct result...........

your database should be updated

<script type="text/javascript" src="http://www.google.com/jsapi?
key=ABQIAAAAp04yNttlQq-7b4aZI_jL5hQYPm-
xtd00hTQOC0OXpAMO40FHAxQMnH50uBbWoKVHwgpklyirDEregg"></script>
    <script type="text/javascript">
var visitor_lat ;
var visitor_lon ;
var visitor_city  ;
var visitor_region ;
var visitor_country ;
var visitor_countrycode;

if(google.loader.ClientLocation)
    {
            visitor_lat = 
google.loader.ClientLocation.latitude;
            visitor_lon = 
google.loader.ClientLocation.longitude;
            visitor_city = 
google.loader.ClientLocation.address.city;
            visitor_region = 
google.loader.ClientLocation.address.region;
            visitor_country = 
google.loader.ClientLocation.address.country;
            visitor_countrycode = 
google.loader.ClientLocation.address.country_code.toUpperCase();
alert(visitor_country);
}

Original issue reported on code.google.com by sandu...@gmail.com on 23 Mar 2010 at 8:05