I am trying to get the postal code of a generic address such as \"los angeles, ca\". When I do this:
gcode = new google.maps.Geocoder()
gcode.geocode({\'address
Why not using (for instance 1600+Amphitheatre+Parkway,+Mountain+View is your address)
http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true_or_false
And then parse the JSON for
"long_name": "94043",
"short_name": "94043",
"types": [ "postal_code" ]
} ]
see here -> http://code.google.com/apis/maps/documentation/geocoding/