Geocoder returning different data for same record
See original GitHub issueProblem Synopsis:
I have implemented a basic search widget to allow users to search for properties by address, PIN14, or owner name. Current if a user searches by owner’s name that has multiple properties attached to it. I get different results based on whether I:
-
Type the full owner’s name and press enter
-
Select the owner’s name from the drop down suggestions.
I have inserted a gif below to illustrate what I mean.
Pressing Enter
after entering owner’s name:
Result after using the drop down suggestions:
Basic Example: https://codesandbox.io/s/leaflet-template-forked-5sf72?file=/index.html Recreate Issue:
-
Enter the following owner into the search input
ZWOLINSKI JO GAIL LF EST
press enter. -
You should see 3 records returned. This is correct
-
Enter the same name but press the down arrow to select a suggestion and press enter.
-
You should see only 1 record returned when you select
ZWOLINSKI JO GAIL LF EST
as a suggestion.
Expected result: Whether a users presses enter or uses the drop down selection all properties related to that owner should be returned.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (8 by maintainers)
Top GitHub Comments
i was thinking of
.on('results')
but yes.i can appreciate that you want to take advantage of ‘fuzzy search’ but you’re definitely not describing a typical geocoding workflow.
my gut reaction is that your best bet would be to fire off another query in the background after a suggestion is selected if you’re worried about duplicate matches.
happy to hear @jwasilgeo and any other opinions/suggestions too though.