pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
329 stars 223 forks source link

OSM data load correctly but API result is not correct #169

Open geopamplona opened 4 years ago

geopamplona commented 4 years ago

Hi

I am building a full instance of Pelias using Dockers and following the documentation.

I have built the complete stack with the following pieces: libpostal, placeholder, api, pip, elasticsearch 5.6.12 and the OSM importer.


Here's what I did :innocent:

Libpostal load and run correctly without dependencies. Placeholder :

API runs OK and detect al services.

PIP:

OSM importer:

At this point, I have load all OSM data in Elasticsearch correctly.


Here's what I got :scream_cat:

I have data correctly load in Elastic

imagen

When I try request data to API, I have this result: imagen

So, I have 2 questions:

I see that the information loaded in the database, includes the street number, and makes sense, however the quality of the result is lower than in the examples. Autocomplete text is waiting for a full address, however in the examples this does not happen, right?

On the other hand, it is necessary to cure the database to eliminate the information it stores, to achieve a result similar to the examples?

I understand that the example of GeocodeEarth is a complete example of a system in production, and is the maximum quality of results that I can achieve using Pelias?

If you think more information is needed, I can share more details

Thanks !

Versions:

missinglink commented 4 years ago

Can you please post an example HTTP URL where the response differs on your version from what you are seeing elsewhere?

geopamplona commented 4 years ago

I publish two requests, one against my instance of pelias with OSM data and another requests against the Pelias de Mapzen instance.

results differ

http://localhost:4000/v1/autocomplete?text=carrer%20de%20Roger&focus.point.lat=41.3828939&focus.point.lon=2.1774322&boundary.country=ESP&boundary.rect.min_lat=40.201598363&boundary.rect.min_lon=0.079846833&boundary.rect.max_lat=43.182898467&boundary.rect.max_lon=3.411888126

Response: https://pastebin.com/bUJmkUKr

https://www.mapzen.com/products/search/geocoding/?query=carrer%20de%20roger&endpoint=autocomplete&lng=-73.98050&lat=40.72590&zoom=12

Response: https://pastebin.com/TfNc03cf