Closed Hoovs closed 7 years ago
Hey @Hoovs, Thanks for reporting this issue. I think there are two things contributing to the query not returning what you'd like.
The first is that it doesn't look like you're using libpostal to improve the input parsing. Technically our install docs list it as optional, but it's much much better to use it. You'll have to install it, and then run rm -rf node_modules; npm install
from within the pelias/api directory on your machine (as well as restart the API process itself).
The second is that since you're searching for an address, you'll need to import a dataset with addresses. I don't believe WOF has any addresses. If you look at your query against Mapzen Search (our hosted instances of Pelias), you'll see the result returned comes from OpenAddresses, a huge dataset of addresses. Take a look at the pelias/openaddresses importer, you can use it to import addresses for just Los Angeles, all of California, or all of the USA easily if you'd like.
Let us know if you have more questions, either here, or in our gitter chat channel if you'd like!
@orangejulius thank you for the fast response. I was trying to avoid using openaddresses in favor of OSM but i followed your suggestions and it did work just fine. I will try and figure out why OSM is having an issue but this worked. Thank you for your help with this!!!!!
No problem. OSM does have lots of addresses as well, so it's definitely a decent source to use. In major US cities, OA probably has better coverage, but if you know the data you want is in OSM, feel free to use it instead.
SETUP: ES version 2.4 Pelias branches: master
ISSUE: I have imported data from whosonfirst-data-venue-us-ca and built using admin-only. The data imported 3.5M records into ES and is about 100M in size. However, when I query against it the geo point is always wrong. In Mapzen the geopoint is correct. ex)
I have looked at using OSM and may if I cannot resolve this but I thought it might be something easy I am missing. Thank you.