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

Selected suggestion didn't apply properly, when searching in Argentina region #483

Open
olegmhlp opened this issue Mar 4, 2021 · 1 comment

Comments

@olegmhlp
Copy link

olegmhlp commented Mar 4, 2021

Short description

I was trying to search Avenida Juan Bautista Alberdi 14 address, but after clicking on the suggestion, the wrong data applied

Expected results

I expected that by searching 'Avenida Juan Bautista Alberdi 14' and selecting the 'Avenida Juan Bautista Alberdi 14, Buenos Aires, Argentina' suggestion result, then the same data would be applied.

Actual results

Instead of 'Avenida Juan Bautista Alberdi 14, Buenos Aires, Argentina', what I saw was that 'Av. Juan Bautista Alberdi, Buenos Aires, Argentina' data applied instead.

Reproduction steps

  1. Go to https://ubilabs.github.io/react-geosuggest/
  2. Input value Avenida Juan Bautista Alberdi 14
  3. Click on the first suggestion
  4. Check the result in the console log
  5. Av. Juan Bautista Alberdi, Buenos Aires, Argentina recieved
  6. Click on input again
  7. Click on the same first suggestion
  8. Check the result in the console log
  9. Avenida Juan Bautista Alberdi 14, Buenos Aires, Argentina recieved

Additional Information

20210310-151543-233.mp4
@yfr
Copy link
Contributor

yfr commented Mar 29, 2021

Hey,

sorry it took so long. I just had some time to check.

It's an API issue. The first time you search for the address you are searching with Avenida Juan Bautista Alberdi 14 just as your input was. Then you select the first one and the input is updated with the result. When you open the suggestions again a new search is performed this time with the updated input: Avenida Juan Bautista Alberdi 14, Buenos Aires, Argentina this is a much more precise address so the result is more likely to be of better quality.

I don't think we can do much besides to say, be as explicit as possible with your input. If you have another suggestion I would love to hear!

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

2 participants