The following tables describe the codes returned in MatchCode when a match is found. The first character, an alphabetic element, describes the type of match found. The two- or three-digit numeric (or hexadecimal) element of the code provides detailed information about the match.
The following table describes the return code.
Return Code | Description |
---|---|
Chhh | Indicates a match found in CPC data; changes were made to the address to make it deliverable. |
Vhhh | Indicates a match found in CPC data; the input address is valid and no changes were made. |
The returned address is the best address because it was matched directly against the CPC list of deliverable addresses. See the following table for the interpretation of the hex digits.
Return Code | First hex position: | Second and Third Hex Position: |
---|---|---|
0 | No change in last line. | No change in street type, direction, number, or name. |
1 | Postal Code was changed. | Street type was changed. |
2 | Municipality was changed. | Postfix direction was changed. |
3 | Municipality and Postal Code were changed. | Street type and Postfix direction were changed. |
4 | Province was changed. | House number was changed. |
5 | Province and Postal Code were changed. | Street type and House number were changed. |
6 | Province and Municipality were changed. | House number and Postfix direction were changed. |
7 | Province, Municipality, and Postal Code were changed. | Street type, Postfix direction, and House number were changed. |
8 | Reserved for future use. | Street name was changed. |
9 | Reserved for future use. | Street name and type were changed. |
A | Reserved for future use. | Street name and Postfix direction were changed. |
B | Reserved for future use. | Street name, Street type, and Postfix direction were changed. |
C | Reserved for future use. | Street name and House number were changed. |
D | Reserved for future use. | Street name, Street type, and House number were changed. |
E | Reserved for future use. | Street name, House number and Postfix direction were changed. |
F | Reserved for future use. | Street name, Street type, House number and Postfix direction were changed. |
The following table describes the codes returned when the application cannot find a match.
Return Code | Description | |
---|---|---|
Ecnn | Indicates an error or no match. This can occur when the address entered either did not exist in the GeoStan™ Canada Directory, or the address was badly malformed and could not be passed correctly | |
nn = 01 | Internal error. | |
nn = 10 | No Municipality+Province or Postal Code found. | |
nn = 20 | No matching addresses. | |
nn = 22 | Missing or wrong street name. | |
nn = 23 | Could not resolve address. | |
nn = 25 | Inconsistent address. | |
nn = 26 | Missing or wrong box range. | |
nn = 27 | Missing or wrong unit range. | |
nn = 40 | Address vs. Postal Code conflict, SERP rule prevents correction. | |
nn = 41 | Postal Code has multiple street names, SERP rule prevents correction. | |
nn = 42 | Change of delivery mode attempted, SERP rule prevents correction. | |
nn = 43 | Total number of changed address elements exceeds maximum. | |
nn = 44 | Change of address type is not allowed for current setting. | |
nn = 50 | Minor error. |