Hi, I'm running into a very simple problem involving the maps api.
I have a blank html page with a single text box form to accept a zip
code. When the user clicks submit, they should be taken to a new page
showing the zip code location on a map. I have followed the "Hello
World" example on the tutorial page, however when determining the
latitude and longitude, it uses a pre-existing set of coordinates, and
not a zip code.
I found an example that is extremely close to what I am trying to
accomplish (
http://code.google.com/apis/maps/documentation/javascript/
services.html#Geocoding)
The problem with this code is that the map is drawn with a pre-defined
location set before you enter in the zip code. I tried for a few hours
to mix and match the code with the hello world example, however when
messing around, the map doesn't render on the second page.
Does anybody have any suggestions for how to go about geocoding the
zip code and getting the latitude and longitude to create a new map?