Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pelias/libpostal-service
Dockerfile for libpostal-service based on the Who's on First implementation
https://github.com/pelias/libpostal-service
Last synced: about 1 month ago
JSON representation
Dockerfile for libpostal-service based on the Who's on First implementation
- Host: GitHub
- URL: https://github.com/pelias/libpostal-service
- Owner: pelias
- License: mit
- Created: 2018-09-10T15:59:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T17:24:08.000Z (about 1 year ago)
- Last Synced: 2024-10-30T00:45:31.390Z (about 2 months ago)
- Language: Dockerfile
- Homepage:
- Size: 31.3 KB
- Stars: 36
- Watchers: 12
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 ChatWhat 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](https://github.com/whosonfirst/go-whosonfirst-libpostal#wof-libpostal-server) server for use by Pelias. There's no actual code here.
The [libpostal_baseimage](https://github.com/pelias/libpostal_baseimage) `Dockerfile` is used to provide Libpostal code and data from the [openvenues/libpostal](https://github.com/openvenues/libpostal) repository.
To use the libpostal-service outside of Docker, see the [install instructions](https://github.com/whosonfirst/go-whosonfirst-libpostal#install) for the whosonfirst/go-whosonfirst-libpostal project.
## Example usage
Generally, this project is used automatically by the [pelias/docker](http://github.com/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"
}
]
```