Is google.loader.clientlocation still supported

前端 未结 1 1016
天命终不由人
天命终不由人 2020-11-29 09:59

I have made some tests using google.loader.ClientLocation from:

  • http://www.google.com/jsapi

But I get null for the test:

if (goo         


        
相关标签:
1条回答
  • 2020-11-29 10:52

    It seems this API is kind of "deprecated" although it still works for some IPs.

    This is the answer I got from here:

    • http://code.google.com/p/google-ajax-apis/issues/detail?id=586

    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!

    So when location is not found for IP, google.loader.ClientLocation is null

    0 讨论(0)
提交回复
热议问题