google.maps.Geocoder.geocode not always returns Australian postcode -


i'm using google.maps.geocoder class resolve australian addresses entered free form input field:

  1. pass entered address (such "parramatta") in google.maps.geocoderrequest.address field,
  2. call google.maps.geocoder.geocode
  3. and show returned google.maps.geocoderresult.formatted_address fields user can select one.

problem returned formatted_address fields not contains postcode.

pass "parramatta" google.maps.geocoderrequest.address ->      receive formatted_address "parramatta nsw, australia"  pass "strathfield" google.maps.geocoderrequest.address ->      receive formatted_address "strathfield nsw 2135, australia" 

looks me fault in google's database, i'm not sure.

is there way resolve addresses gives postcode?

if reverse geocode location returned parramatta, contain post code:

{   "long_name": "2150",   "short_name": "2150",   "types": [     "postal_code"   ] } 

that correct according wikipedia


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -