Skip to content
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

Distance Based Locality Mappings #357

Open
BK01 opened this issue May 26, 2023 · 0 comments
Open

Distance Based Locality Mappings #357

BK01 opened this issue May 26, 2023 · 0 comments
Labels
enhancement New feature or request geocoder
Milestone

Comments

@BK01
Copy link
Contributor

BK01 commented May 26, 2023

Issue:
When a client submits an addressString that contains an incorrect locality that is not a known alias, a penalty of 35 is taken from the score with a fault of LOCALITY.notMatched. Additional faults may be included depending on the provided addressString. Although the resulting fullAddress and coordinates may be correct, the low score leads the client to reject the result.

Potential Cause
Submitted address is a mailing address, not a physical address. The geographic extent of a mailing address locality can go beyond the physical boundary of a locality to overlap with other localities.

Example:
Physical address: 10055 Hewitt Rd, Takysie Lake, BC
Mailing address: 10055 Hewitt Rd, Burns Lake, BC V0J 1E4
Proximity: The boundaries of Burns Lake and Takysie Lake are approximately 20km apart and not adjacent (3x boundaries away)

Task:
Supplement the current locality mappings with additional distance based locality mappings. Proposal below to be adjusted as needed.

The new aliases can catch some of the non-adjacent cases and return a higher score which would be less likely to be rejected by the client. The Geocoder response would include the fault LOCALITY.isAlias with a penalty value based on the confidence level.

Sources of Locality Mappings:
Current State:

  • DRA locality boundaries
  • BCGNIS points (filtered by FCODE)
  • Custom additions by the Geocoder team

Proposed addition:

  • Distance based
Distance level Distance Confidence
1 0 km - 30 km 70%
2 30 km - 50 km 60%
3 50 km - 70 km 50%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request geocoder
Projects
None yet
Development

No branches or pull requests

1 participant