Unfortunately, no.  If Google is unable to geocode the user's IP  
address, the google.loader.ClientLocation object will be null.

As for how the whole IP-based geocoding functionality works, although  
I don't know the specifics of Google's implementation, I believe it  
works essentially the same for all such services.  Namely, you check  
the IP address and then query a database that contains the locations  
of known addresses.  The down side of this, of course, is that the  
database is entirely dependent on ISP's providing information about  
their IP addresses, and it can be skewed by a number of factors  
including proxy servers, VPNs, private IP addresses, and more.  Here  
is an article I found on the subject just this morning, which may be  
of some help to you.  Please notice the accuracy information.

http://www.joefission.com/2007/11/geocoding-based-on-an-ip-address/

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
[email protected]

Unless otherwise noted, any price quotes contained within this  
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights  
Wesleyan Church!

And check out my blog, Adventures in Web Development, at 
http://jgeerdes.blogspot.com 
  !


On Feb 19, 2009, at 5:37 AM, Malli wrote:

>
> Good day!
>
> I'm new to this forum and I'm not sure if this is an easy question or
> not, but I've looked around and cannot seem to find an answer.
>
> All that we want to implement is 'mapping a IP address to the
> country'. We would like to know whether Google system
> (google.loader.ClientLocation) returns at least country If it is
> unable to geo-locate the client based on the client's IP address to
> metro level?
>
> We would like to block users from specific countries. To do this, we
> need to test different scenarios. Is there any way to get a country
> level or metro level details for a given IP address (as a parameter to
> API) using Google API?
>
> Also, We would like to know the details of how Google API geo-locate
> the clients based on the client's IP address? How Google API gets
> client IP address and how it geo-locate the client (The whole process
> between client machine and Google API)?
>
> Please help in this regard.
>
> Thanks,
> Malli
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to