Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Lew

Simple JSON Service for resolving GeoNames from unstructured input text.

Version
-

0.1

Usage
-

with GET

curl http://localhost:8080/geoname\?query\=New%20York

with POST

curl -X POST -d "New York" http://localhost:8080/geoname --header "Content-Type:text/plain"

Setup
-
You will need to follow the instructions provided by the CLAVIN project to create the index data.

Lew will look for the IndexDirectory and all.3class.distsim.crf.ser.gz in /data by default. After that
you can start the service with

mvn jetty:run

Docker
-

Lew is now built as a docker image, which can be run easily with the following
command

sudo docker run -d -p 80:8080 airgapit/lew

after it starts you can test with curl

curl http://localhost/geoname?query=New+York

License
-
(c) Copyright AirGap LLC - 2014

GPLv2

Docker Pull Command
Owner
airgapit
Source Repository