Is it possible to validate a postal address for its completeness? Meaning, I need to grab autocomplete
values using Google Places
and after a user select an address I need to validate it if it contains a house number and a postcode.
Holderlinstrasse 12, 11070, Berlin, Germany
- is fine
Holderlinstrasse Berlin, Germany
- is not
I haven't found any APIs to serve the purpose. I've considered regex, but this also doesn't sound like an easy way.
Any advice? Thank you!