bcgov / bcgov/ols-geocoder

Handling the word 'block' in addressString

Open
#356 1 comment 0 reactions 0 assignees View on GitHub
enhancement geocoder
Dominant language
Java
Stars
17
Forks
7
Avg merge
10h 2m
Merged PRs (30d)
15

Description

**Issue:**
Including the word 'Block' in an address (to report road accidents) is resulting in incorrect results. Specifically, the word 'Block' is being interpretted as a street name, and the actual street name is interpretted as locality garbage.

**Example:**
The following addressString provides a correct location based on the address range of that highway segment.
> 800 Trans-Canada Highway, West Vancouver, BC

The following addressStrings provide a location in a different locality.
> 800 Block Trans-Canada Highway, West Vancouver, BC
> 800 Blk Trans-Canada Highway, West Vancouver, BC

**Task:**
Is it possible to enhance the BC Address Geocoder to handle this use case without impacting other aspects of the parser?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the addressString parsing entry point and any tests covering BC addresses or address ranges. Reproduce the three examples from the issue and trace how “Block” and “Blk” are classified. Done means both forms resolve like “800 Trans-Canada Highway” without changing unrelated address parsing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.