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

Pelias not finding the street if the city name is present in the query #939

Open
JefiPNZ opened this issue Jan 26, 2023 · 1 comment
Open
Labels

Comments

@JefiPNZ
Copy link

JefiPNZ commented Jan 26, 2023

Describe the bug
While trying to geolocate adresses in a street upon a city I found that pelias is unable to correctly locate the correct address if I give to it the city name.
The address is as follow:
Beco João de Deus, Itacolomi, Gravatai, RS, Brasil
Beco João de Deus is the street.
Itacolomi is the district.
Gravatai is the city.
RS is the state.
Brasil is the country.

Itacolomi is contained inside Gravatai as its a district inside the city but it seems that pelias isn't taking the fact Gravatai is the city into account on its query as if I type:
Beco João de Deus, Itacolomi, Gravataí, RS, Brasil
Beco João de Deus, Gravataí, RS, Brasil
I don't get the street but if I remove "Gravataí":
Beco João de Deus, Itacolomi, RS, Brasil
I do get it.

Steps to Reproduce
Query the API according the following urls:
https://pelias.github.io/compare/#/v1/search?lang=pt-br&layers=venue%2Cstreet&text=Beco+Jo%C3%A3o+de+Deus%2C+Itacolomi%2C+Gravatai%2C+RS%2C+Brasil
https://pelias.github.io/compare/#/v1/search?lang=pt-br&layers=venue%2Cstreet&text=Beco+Jo%C3%A3o+de+Deus%2C+Gravatai%2C+RS%2C+Brasil

It's expected to get the street to show, but all it shows is the city, instead it's only found on the following query:
https://pelias.github.io/compare/#/v1/search?lang=pt-br&layers=venue%2Cstreet&text=Beco+Jo%C3%A3o+de+Deus%2C+Itacolomi%2C+RS%2C+Brasil

Expected behavior
All of the querys above should be able to find the correct street.

Environment (please complete the following information):
Reproducible on https://pelias.github.io

Pastebin/Screenshots

Screenshots

Captura de tela 2023-01-26 124609

Captura de tela 2023-01-26 124613

Captura de tela 2023-01-26 124554

@JefiPNZ JefiPNZ added the bug label Jan 26, 2023
@fcruzel
Copy link

fcruzel commented Apr 5, 2023

Same thing happening to me. To get the result the city must not be included in the query. ¿Is there any way to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants