Skip to content

Libpostal build with a REST API integrated.

Notifications You must be signed in to change notification settings

skalarsystems/libpostal-rest-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Download Docker Image

See Docker Hub: clicksend/libpostal-rest

Running image

Run this command: docker run -d -p 8080:8080 clicksend/libpostal-rest

API Example

Replace with your host

Parser

curl -X POST -d '{"query": "100 main st buffalo ny"}' <host>:8080/parser

Response

[
  {
    "label": "house_number",
    "value": "100"
  },
  {
    "label": "road",
    "value": "main st"
  },
  {
    "label": "city",
    "value": "buffalo"
  },
  {
    "label": "state",
    "value": "ny"
  }
]

Expand

curl -X POST -d '{"query": "100 main st buffalo ny"}' <host>:8080/expand

Response

[
  "100 main saint buffalo new york",
  "100 main saint buffalo ny",
  "100 main street buffalo new york",
  "100 main street buffalo ny"
]

Health Check

curl -X GET <host>:8080/health

Response

OK

Credits

About

Libpostal build with a REST API integrated.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Shell 57.5%
  • Dockerfile 42.5%