Java: Parse Australian Street Addresses

Posted by bguiz on Stack Overflow See other posts from Stack Overflow or by bguiz
Published on 2010-03-01T12:06:04Z Indexed on 2010/05/21 16:10 UTC
Read the original article Hit count: 328

Filed under:
|
|
|
|

Looking for a quick and dirty way to parse Australian street addresses into its parts:
3A/45 Jindabyne Rd, Oakleigh, VIC 3166

should split into:
"3A", 45, "Jindabyne Rd" "Oakleigh", "VIC", 3166

Suburb names can have multiple words, as can street names.


See: http://stackoverflow.com/questions/1739746/parse-a-steet-address-into-components

Has to be in Java, cannot make http requests (e.g. to web APIs).


EDIT: Assume that format specified is always followed. I have no issue with spitting incorrectly formatted strings back at the user with a message telling them to follow the format (which I've described above).

© Stack Overflow or respective owner

Related posts about java

Related posts about parse