On Jun 12, 12:50 pm, "[email protected]" <[email protected]>
wrote:
> On Jun 12, 12:02 pm, Adam Kestel <[email protected]> wrote:
>
> > Hello,  I am trying to figure out how to change my map.setcenter to a
> > zip code value.  
> > What I have right now is 2 web pages, the first
> > allows them to enter the name of a location and the zip code.  That
> > page saves the information to that database and takes you to a map
> > page where they can select a location.  Once they select the location
> > and save, it then transmits the lat and lng data to the database as
> > well linked with an ID primary key.   All of that works so far, the
> > only problem I am running into is getting the zip code they enter on
> > the first page to be the center of the map.  I have searched the
> > groups and have and the tutorials but I can not figure it out.  I am
> > guessing I will have to use some type of geocoding.  Thanks for the
> > help, Adam
>
> map.setCenter() takes a GLatLng for the position of the center of the
> map.
>
> GClientGeocoder can take a zip code and return a GLatLng, but beware
> of its asynchronous nature.

Not sure if this will be helpful or not, but here is a map that will
center on a geocoded address.  Here is an example which centers on a
zip code:
http://www.geocodezip.com/example_geo2.asp?addr1=98122&geocode=1

  -- Larry

>
>   -- 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