On 12 January 2011 09:26, kapil <[email protected]> wrote:
>
> Plz suggest how can i get correct latitude and longitude with the
> postal code?

The right way is either to bias the geocoder with a country code MX or
by setting a viewport. Both only bias the geocoder, they don't force
it to keep to what's set.

The most sure way is to include the country code in the request:
22840,MX. This stops the geocoder defaulting to the US, which is
what's happening at the moment.

Unfortunately, none of this will work for Mexico, because geocoding
doesn't include postcodes. You can geocode what appears on the tiles,
and postcode numbers don't.
http://gmaps-samples.googlecode.com/svn/trunk/mapcoverage_filtered.html

So: you need to find a geocoding service which includes Mexican
postcodes and allows the use of the data on a Google Map. Geonames has
some data you can use:
http://www.geonames.org/postalcode-search.html?q=22840&country=MX

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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