question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Geocoder returning different data for same record

See original GitHub issue

Problem 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: Enter Owner's Name Press Enter

Result after using the drop down suggestions: Select from dropdown suggestions

Basic Example: https://codesandbox.io/s/leaflet-template-forked-5sf72?file=/index.html Recreate Issue:

  1. Enter the following owner into the search input ZWOLINSKI JO GAIL LF EST press enter.

  2. You should see 3 records returned. This is correct

  3. Enter the same name but press the down arrow to select a suggestion and press enter.

  4. 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:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jgravoiscommented, Oct 13, 2020

tie into requestend

i was thinking of .on('results') but yes.

1reaction
jgravoiscommented, Oct 13, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google geocoder is returning different latitude and longitude ...
If you Geocode Address to LatLong you will get most appropriate and nearest record from Google. That is normal behaviour. Also Google's official ......
Read more >
Google Map geocoder returns multiple results against a ...
When i pass this address to the Google's Geocoder API it returns multiple results, while i am expecting a single result because every...
Read more >
Census Geocoder Frequently Asked Questions
The Census Geocoder is an address look-up tool that converts your address to an approximate coordinate (longitude and latitude) and returns ...
Read more >
Match Codes - Precisely Help
The geocoder returns match codes indicating the address portions that matched or did not match to the database. If the geocoder cannot make...
Read more >
Geocoding and geosearch - Esri Documentation - ArcGIS Online
Geocoding —Convert an address or place to an x,y coordinate and append the result to an existing record in a database. Mapping is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found