Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api script- database updation #18

Open
GoogleCodeExporter opened this issue May 16, 2015 · 0 comments
Open

api script- database updation #18

GoogleCodeExporter opened this issue May 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 23 Mar 2010 at 8:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant