whosonfirst / go-whosonfirst-pip-v2

An in-memory point-in-polygon (reverse geocoding) package for GeoJSON data, principally Who's On First data.
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

add https support #25

Closed HIRANO-Satoshi closed 6 years ago

HIRANO-Satoshi commented 6 years ago

I added https support.

Server example

./bin/wof-pip-server -https -cert-file localhost.crt -key-file localhost.key -port 8300 -mode sqlite ~/whosonfirst-data-sqlite/whosonfirst-data-latest.db

Client example

curl --insecure 'https://localhost:8300?latitude=36.1&longitude=140.08' | python -mjson.tool
HIRANO-Satoshi commented 6 years ago

Since this has a bug, I would like to withdraw this PR.

It shows an error without the -https option. We could use a reverse proxy for https access.