on-internet
← Community

Google places api not returning postal code for some places

Stack Overflow ·

I have a form which would collect location information from the user. I'm using Google places api to autocomplete the location information. It works great. Everything got filled out nicely however there are some places (e.g. my workplace which is a building), Google does not return a postal code for it. I followed this example from Google address autocomplete. It also doesn't return postal code for my workplace. So I'm not entire sure what I did wrong. Below is my code: HTML <div id="location-autocomplete" style="display: none;"> <div class="half-formfield"> @Html.LabelFor(x => x.Address) @Htm

Comments

Sign in or sign up to comment and upvote.

No comments yet.