Re: deriving state from first digit of post code, that's true 90% of the time but the exceptions -- some of which are pretty big, eg. the entire Australian Capital Territory -- will kill you.
https://en.wikipedia.org/wiki/Postcodes_in_Australia#Austral...
Oh interesting, not having lived in the NT or ACT I didn't know about that one.
I find it hilarious that Australia has just 4 digits in its post code. The US has 5 digits with 4 optional digits. Taiwan (a much smaller place) has 3 digits with 2 optional specifiers.
Singapore has 6.
Singapore's post codes are 6 digits because they're granular enough to specify exact buildings -- it's possible to receive mail addressed to "John Tan, S(123456)".
Australia's post codes, on the other hand, are really wide. The entirety of central Sydney is all "2000" and mine covers around 6 city suburbs.
I've seen this handled quite well by a number of sites - you enter your post code and they'll just drop down a list of all the places it matches. Choose your town/suburb and you're done!
The ridiculous part is that they'll often ask you to enter your state as well, which you can derive from the first digit of the post code :/