I'm looking for a Java function that canonicalizes an address. For example, ideally it would give me the same output for all of the following:
- "73 e main street apt 10, boston, ma 02129"
- "73 East Main St #10, Boston, Massachusetts 02129-4340"
- "73 E Main apartment 10, Boston MA"
It's not necessary to verify if the address corresponds to a real place. I just want a canonical address formatter.
I believe that https://postgis.net/docs/Address_Standardizer.html is an example of what I'm looking for, but it's difficult to make calls to that from Java.