Skip to content

Narrow address autocomplete to residences in the Chapel Hill area - #465

Merged
naasanov merged 2 commits into
mainfrom
nick/autocomplete-narrowing
Jun 16, 2026
Merged

Narrow address autocomplete to residences in the Chapel Hill area#465
naasanov merged 2 commits into
mainfrom
nick/autocomplete-narrowing

Conversation

@naasanov

Copy link
Copy Markdown
Collaborator

Address autocomplete previously surfaced results that aren't valid residences to register: bare streets (a whole road with no house number) and addresses far outside the area (location + radius only bias legacy Place Autocomplete, so identically-named streets in other states leaked through). This tightens suggestions to specific dwellings near Chapel Hill, and makes the empty state more actionable.

Changes:

  • Filter out bare-street (route-only) predictions in autocomplete_address; only suggest precise addresses (street_address, premise, subpremise)
  • Add strict_bounds=True so results are restricted to the radius around Chapel Hill instead of merely biased, and tighten the radius to 10km
  • Add a browserAutocomplete prop to AddressSearch (default on) and disable the native browser autocomplete on the police search so it doesn't fight the custom dropdown
  • Update the empty-state copy to "No addresses found. Make sure to include the full street address."
  • Extend the gmaps test util with prediction types and add coverage for bare-street filtering vs. precise addresses

Closes #462

Filter bare-street (route-only) predictions, restrict results to the
Chapel Hill area with strict_bounds, and improve the empty-state copy.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown

Test Results Summary

856 tests  +2   856 ✅ +2   1m 3s ⏱️ +3s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 984fd59. ± Comparison against base commit 12998e1.

♻️ This comment has been updated with latest results.

@naasanov
naasanov merged commit f58b5c2 into main Jun 16, 2026
3 checks passed
@naasanov
naasanov deleted the nick/autocomplete-narrowing branch June 16, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter address autocomplete to residences only (exclude parks/pools)

1 participant