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

How to enable libpostal service? #726

Closed
Defozo opened this issue Jun 27, 2018 · 2 comments
Closed

How to enable libpostal service? #726

Defozo opened this issue Jun 27, 2018 · 2 comments

Comments

@Defozo
Copy link
Contributor

Defozo commented Jun 27, 2018

I have a problem with libpostal <-> Pelias API integration.


Here's what I did 😇

I set up elasticsearch, openstreetmap importer and pelias API following the documentation.
I installed libpostal using this script:

git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
mkdir -p /home/ubuntu/datadir
./configure --datadir=/home/ubuntu/datadir
make -j4
sudo make install
sudo ldconfig

Here's what I got 🙀

When quering /v1/search?text=...
I get:

...
"errors":["libpostal service disabled"]
...

And this on Pelias API console:
2018-06-27T16:03:08.764Z - warn: [api] unknown geocoding error string: libpostal service disabled


Here's what I was expecting ✨

I expected to see coordinates without any errors and warnings.

@Joxit
Copy link
Member

Joxit commented Jul 29, 2018

Hello,

Now libpostal is a microservice. You can see the correct config here.
In you pelias config you should have this:

...
"api": {
    "services": {
      "placeholder": {
        "url": "http://placeholder:4100"
      },
      "libpostal": {
        "url": "http://libpostal:8080"
      },
      "pip": {
        "url": "http://pip-service:4200"
      },
      "interpolation": {
        "url": "http://interpolation:4300"
      }
    }
  }
...

Libpostal service can be retrieved here or with the docker image pelias/go-whosonfirst-libpostal

@orangejulius
Copy link
Member

@Joxit, thanks for the perfect reply :) @Defozo let us know if you have any issues. there is also more clarification around all of this coming with pelias/documentation#223, so let me know if anything there would have helped, or doesn't make sense.

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

3 participants