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

Incomplete address searches produce unreliable results #183

Open
ilyagerner opened this issue May 8, 2019 · 2 comments
Open

Incomplete address searches produce unreliable results #183

ilyagerner opened this issue May 8, 2019 · 2 comments

Comments

@ilyagerner
Copy link

For example, when a user types in "200 C Street" the site responds with "You live in ANC 6D, single member district SMD 6D02."

However, 200 C Street could refer to "200 C STREET SE" which is in 6B01, or "200 C STREET SW" which is indeed SMD 6D02.

Ideally, the ANCFinder would prompt the user with "Did you mean...? 200 C Street NW or 200 C Street SW". At minimum, it should fail if the address is ambiguous rather than making an assumption.

@rbmy
Copy link
Contributor

rbmy commented Jul 24, 2019

@lemwerks do you know if there is a mapbox solution to this? @kelshew and I were talking about it today and thought mapbox may already have this functionality.

@lemwerks
Copy link

lemwerks commented Jul 24, 2019

@rbmy + @ilyagerner YES!

GL Geocoder should work for you.

And I'd set the search to use only a bounding box (BBOX) parameter outlined here.

Additionally set autocomplete after four or five characters to display a few options of the address they could mean. Play around with both in the Geocoding Playground to get the right URL Request.

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

No branches or pull requests

3 participants