google.maps.Geocoder.geocode not always returns Australian postcode -
i'm using google.maps.geocoder class resolve australian addresses entered free form input field:
- pass entered address (such "parramatta") in google.maps.geocoderrequest.address field,
- call google.maps.geocoder.geocode
- 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
Post a Comment