Sign inSign up

oozman/libpostal-rest

By oozman

Updated about 9 years ago

A libpostal REST API.

Image
0

1M+

oozman/libpostal-rest repository overview

Usage

Running image

Run this command: docker run -d -p 8080:8080 oozman/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"
]

Credits

For more info on REST API: See johnlonganecker/libpostal-rest For more info on libpostal: See openvenues/libpostal

Tag summary

Content type

Image

Digest

Size

1.2 GB

Last updated

about 9 years ago

docker pull oozman/libpostal-rest