I'm finding an interesting issue when using the geocoder with a particular input.
If I search for the address, "02135"—a postal code that corresponds to Brighton (a neighborhood of Boston), MA—I'm not given the postal code back as an address component. The returned formatted address reads: "Brighton, Boston, MA, USA" And the types are listed as, "neighborhood" and "political." The results of that query can be seen here: https://maps.googleapis.com/maps/api/geocode/json?address=02135&sensor=false If, however, I add a component filter of "postal_code:02135" I'm given the following formatted address: "Boston, MA 02135, USA" and the only type returned is "postal_code". The results of that query can be seen here: https://maps.googleapis.com/maps/api/geocode/json?address=02135&components=postal_code:02135&sensor=false My questions are why isn't the postal_code included in the first query and is there anyway I can specify a component filter using the maps JavaScript client library? Thanks. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/MysGoyEL2l8J. 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.
