-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve recognition of PO BOX addresses #256
Comments
Note from Brian 2021/06/08 I took a quick look and found some interesting cases using Kaegan’s data. Several examples of glued words, special characters, leading or trailing garbage and postal elements. These examples remind me of the conversation we had the other day about proposing that when the Geocoder would otherwise provide a score of 1 (BC) to try and accept the locality instead if provided. You may notice that the structured files perform better, but that is because there is no parsed address fields other than locality and province.
|
The previous examples suggest another pattern: |
As a next step, add functionality to recognize and remove ‘SPO’ and ‘RPO’ from an address. This will reduce the amount of locality garbage and improve results. Current handling of postal codes includes the recognition and removal of ‘PO Box + number’ from the address. Work on a right-to-left salvage mode will be covered in a separate issue. |
Validated in geocodertst (Geocoder 4.3). The Geocoder now recognizes and handles SPO and RPO. Applicable examples that were previously returning a score of 1 and matchPrecision level of Province are now returning at the expected matchPrecision (locality, street etc) |
PO BOX addresses often have additional noise that prevents the geocoder from finding a good locality-level match. Analysis of rejected PO BOX addresses reveals the following pattern:
[initialGarbage] PO BOX aNumber [localityGarbage] aLocality provinceCode
Here are some examples:
PO BOX 18603 RPO LADNER HALFMOON BAY BC
PROFESSIONAL SERVICES CORPORATION PO BOX 480 ATLIN BC
RPO DUNBAR PO BOX 45033 VANCOUVER BC
PO BOX 4126 RPO SUMAS WAY ABBOTSFORD BC
PO BOX 72052 RPO OLD ORCHARD RD BURNABY BC
The text was updated successfully, but these errors were encountered: