ClientLocation is VERY inaccurate and can only be counted on for
correct country. If you want to do geolocation based on IP address I
would setup a MaxMind GeoLite database locally.

On Jan 1, 4:12 pm, "[email protected]" <[email protected]>
wrote:
> On Jan 1, 12:36 pm, Tom MacPherson <[email protected]> wrote:
>
> > trying to get something like
>
> > var zip=google.loader.ClientLocation.address.zip_code
>
> > Any help?
>
> 1. ClientLocation doesn't always work.
> 2a. you could try using the latitude and longitude that it returns (if
> it works) and reverse geocoding it, that might give you the zip code.
> or
> 2b. you could use the address fields it returns and see if that lets
> you find the zip code using a zip code database or a lookup from
> another service (if it is the US, the post office has some address web
> services that might help).
>
>   -- Larry

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-maps-api?hl=en.


Reply via email to