You assume that postal code is located in results[0].address_components[7].long_name
Actually it can be in results[1] as well and in any address_components. You should scan through the results and address_components to find one that has property types: ["postal_code"] -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
