Google Maps API Geocode Postal Code and set Country code?
I'm using this API call to Google Maps to get the latitude and longitude of a postal code
The postal code is in Australia. This API call returns locations all around the world with partial matching postal codes in the address.
Is there a parameter I can use to set the country to Australia?
The correct way to do this is not via region biasing but rather using component filtering:
http://maps.google.com/maps/api/geocode/json ?components=country:AU|postal_code:2340 &sensor=false
Please note that if you use the components parameter, you don't need to specify the address parameter.
Although it also states this:
Note that biasing only prefers results for a specific domain; if more relevant results exist outside of this domain, they may be included.