Google loader API not working

615 views
Skip to first unread message

MKP

unread,
Jun 28, 2012, 10:10:34 AM6/28/12
to Google AJAX APIs
We are using a Google API key to locate the country code from the IP
address of the user who logged in. The following is used to fetch the
value.

google.loader.ClientLocation.address.country_code;

This always returns NULL.

API key:
ABQIAAAAhZqFLlbttqX5KXIkSjAGVBTGRx0s-ExsCUcr2p6tpu-e-uwwnhRvOiGJ-
hTVVDYjPbaR4XcSdQh05w

Can you please help in solving this issue?

Jeremy Geerdes

unread,
Jun 28, 2012, 11:18:07 AM6/28/12
to google-ajax...@googlegroups.com

Due to the inherent problems with geocoding IP addresses, a number of internal developments, and the wide accessibility of the HTML geolocation API, the loader.ClientLocation feature is no longer supported. Use the HTML5 geolocation API or some other IP geolocation service.

--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
http://groups.google.com/group/google-ajax-search-api?hl=en_US
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Priya M

unread,
Jun 28, 2012, 2:26:56 PM6/28/12
to google-ajax...@googlegroups.com
Hi Jeremy,
Can HTML5 geolocation API be used for finding the country code of the user? Can you please provide details?

Jeremy Geerdes

unread,
Jun 28, 2012, 2:42:01 PM6/28/12
to google-ajax...@googlegroups.com
There is no solution for this issue. The google.loader.ClientLocation feature is not actively supported for a variety of reasons. Primary among these are the inherent challenges of reliably geolocating an IP address. The bottom line is that you should find an alternative to google.loader.ClientLocation. You can try the HTML5 geolocation API (search the web for docs) or a number of other IP geolocation services out there.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
Reply all
Reply to author
Forward
0 new messages