bcgov / api-specs

[OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md) Repository
https://catalogue.data.gov.bc.ca/group/bc-government-api-registry
Other
26 stars 19 forks source link

Unit number prefix treated as unit number suffix #292

Closed mraross closed 6 years ago

mraross commented 6 years ago

Here's an address that has a unit number prefix:

UNIT A101 -- 17780 56 Ave, Surrey, BC

This would be transformed by data prep into the following:

UNIT 101A -- 17780 56 Ave, Surrey, BC

This is incorrect. In Canada Post standard, A101 is treated as a unitNumber. In other words, CP allows a character at the beginning of a unit number to accomodate building names as letters.

gleeming commented 6 years ago

As it turns out, we do allow an optional single character at the beginning of a unit number. A valid example is UNIT J205 1400 ALTA LAKE RD Whistler BC

mraross commented 6 years ago

Verified in production