Google Maps API 3 - Search address by zip code + number (geocode)

Asked

Viewed 8,798 times

5

I have made in an application the display of points on the map from an address typed in form. I use the API v.3, javascript, and get the address using geocoder.geocode(x,y). I have followed the following format: type street street, number - neighborhood - city, state - country. Works OK.

But to improve the search, in cases where the address is not found, I tried to do as an alternative search by the zip code (which would already give me the street) plus the number, but I’m not getting.

To search for the zip code I can do: zip code - country. So he finds the correct street, but I can not pass the number for example of the residence. How could this be done?

  • Test this: http://maps.google.com/maps/api/geocode/json?address=73050-140&sensor=false - You must submit the zip code or the address...

  • Really has the need to be by google api?

  • How do you search for the street name and number? What formatting is sent in the URL?

1 answer

-3

Usually, when there are forms where the zip code field exists. all fields related to the address are completed, except the number and complement.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.