Reimers.dk

.NET, AJAX and Google APIs brought together
Welcome to Reimers.dk Sign in | Join | Help
in Search

How to get the zip code when you have street and city?

Last post 02-19-2010, 18:48 by henkemota. 2 replies.
Sort Posts: Previous Next
  •  02-14-2010, 12:31 3008

    How to get the zip code when you have street and city?

    Is there a way to find out the zip code when you have the street address and city name?

    I have looked through the forum but haven't found how to do it.

    On the page below I have entered street and city and google replies with the zip code so the zip information is there somewhere

    http://maps.google.com/maps?q=f%E5gelviksleden+4%2C+tibro&btnG=Search

    Best Regards, I find the Reimers Map very useful 

  •  02-15-2010, 19:49 3013 in reply to 3008

    Re: How to get the zip code when you have street and city?

    If you call Reimers.Map.Geocoding.GoogleGeocoder.Geocode and pass in the address you have then it will return a GoogleResult object where you can find the geocode results in. The results should contain the zip code even if you didn't pass it in (assuming that Google was able to geocode the passed address).

    The address object that you pass to the geocode method doesn't have to be complete. Fill it in with as much as you can and let Google handle the rest. 

  •  02-19-2010, 18:48 3021 in reply to 3013

    Re: How to get the zip code when you have street and city?

    Yes,

     It works in that manner.

    Thank you

    Henkemota 

View as RSS news feed in XML