All Projects → pelias → libpostal-service

pelias / libpostal-service

Licence: MIT license
Dockerfile for libpostal-service based on the Who's on First implementation

Programming Languages

Dockerfile
14818 projects

A modular, open-source search engine for our world.

Pelias is a geocoder powered completely by open data, available freely to everyone.

Local Installation · Cloud Webservice · Documentation · Community Chat

What is Pelias?
Pelias is a search engine for places worldwide, powered by open data. It turns addresses and place names into geographic coordinates, and turns geographic coordinates into places and addresses. With Pelias, you’re able to turn your users’ place searches into actionable geodata and transform your geodata into real places.

We think open data, open source, and open strategy win over proprietary solutions at any part of the stack and we want to ensure the services we offer are in line with that vision. We believe that an open geocoder improves over the long-term only if the community can incorporate truly representative local knowledge.

Pelias Libpostal Service

This is a Dockerfile for creating an instance of the whosonfirst/go-whosonfirst-libpostal server for use by Pelias. There's no actual code here.

The libpostal_baseimage Dockerfile is used to provide Libpostal code and data from the openvenues/libpostal repository.

To use the libpostal-service outside of Docker, see the install instructions for the whosonfirst/go-whosonfirst-libpostal project.

Example usage

Generally, this project is used automatically by the pelias/docker repository.

To run the Libpostal service manually, you can do something like the following:

docker run -d -p 4400:4400 pelias/libpostal-service

# wait a few seconds for libpostal to come up

curl -s localhost:4400/parse?address=30+w+26th+st,+new+york,+ny | jq .
[
  {
    "label": "house_number",
    "value": "30"
  },
  {
    "label": "road",
    "value": "w 26th st"
  },
  {
    "label": "city",
    "value": "new york"
  },
  {
    "label": "state",
    "value": "ny"
  }
]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].