ltog / osmi-addresses

Calculates the Address view of the OSM Inspector
Boost Software License 1.0
11 stars 4 forks source link

Add postal code validation #110

Open matthewdarwin opened 6 years ago

matthewdarwin commented 6 years ago

I am using OSMI on a regular basis for address validation. I have a feature request:

Can you please add Postal Code validation for Canada. All postal codes in Canada follow this format: A0A 0A0 or "[A-Z][0-9][A-Z] [0-9][A-Z][0-9]" That is: letter-number-letter-space-number-letter-number, all letters in uppercase.