guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

google.loader.ClientLocation returning null #586

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  load //www.google.com/jsapi
2.  To use geolocation, inspect the ClientLocation object
3.  read google.loader.ClientLocation.latitude

What is the expected output? What do you see instead?

It should return a rough approximation of the latitude, determined by google's 
ip-geolocation.
Error.   google.loader.ClientLocation is null.

What version of the product are you using? On what operating system?

Requesting the file via Chrome 13.

Original issue reported on code.google.com by paulir...@google.com on 25 May 2011 at 5:10

GoogleCodeExporter commented 8 years ago

Original comment by paulir...@google.com on 25 May 2011 at 5:11

GoogleCodeExporter commented 8 years ago
ClientLocation returns null when it doesn't have information about your 
location.  Unfortunately, we are unable to ensure that a valid location is 
always returned.

Instead of using ClientLocation, we recommend that you use the geo-location 
capabilities built into many modern browsers.

Original comment by adam.fel...@gtempaccount.com on 25 May 2011 at 6:27

GoogleCodeExporter commented 8 years ago
Hello,
I would like to know if google.loader.ClientLocation is still supported by 
Google or if we should now use HTML geo location capabilities.
I have tried many websites codes and it does not work. Where should we register 
so that it works ? is there some subscription or API Key ? where to find the 
information ?

Thanks

Original comment by Pbo...@gmail.com on 8 Jan 2013 at 7:19

GoogleCodeExporter commented 8 years ago
For best results, you should use the HTML geolocation capabilities, which is 
provided by most modern browsers.

Original comment by adam.fel...@gtempaccount.com on 8 Jan 2013 at 7:23

GoogleCodeExporter commented 8 years ago
Hello,
Thanks for rapid answer.
Is there some official announcement of the retirement of this API ?

Original comment by Pbo...@gmail.com on 8 Jan 2013 at 8:53

GoogleCodeExporter commented 8 years ago
The geolocation functionality in the Loader hasn't been retired, per se.  We 
stopped documenting it several years ago and have recommended the HTML-based 
solutions due to their improved accuracy, but the functionality itself has not 
been removed from the Loader at this time.  Thanks!

Original comment by adam.fel...@gtempaccount.com on 9 Jan 2013 at 5:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
HI ,
Hi,
Instead of google.loader.ClientLocation i used html5 navigator , it works fine.
But it is opening dialog and asking for users to share his location.
Is there any way to restrict that dialog box, basically when user opens 
application it should show users current location without asking sharing of 
users location.
Could please guide me on this.

Thanks,
Ram 

Original comment by rambab...@gmail.com on 3 Jun 2013 at 9:57

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Depends on a user's privacy settings. If the "Allow all sites to track my 
physical location" is set by a user, there will not be any dialog. You have no 
way to change this setting through your application.
See https://support.google.com/chrome/answer/142065?hl=en
http://www.mozilla.org/en-US/firefox/geolocation/

Original comment by webmaste...@gmail.com on 6 Aug 2013 at 6:29

GoogleCodeExporter commented 8 years ago
 I am unable to get country name returned by javascript on server side using asp.net.
Using Google API i have generated the country name in label. I am not able to 
retrieve the country name in the server side.Please solve this problem.

Original comment by perciana...@gmail.com on 23 Oct 2013 at 6:11

Attachments: