rgeoSrv wraps the package rgeo into a reverse geocoding microservice.
See github.com/sams96/rgeo for more information on rgeo.
go get github.com/sams96/rgeoSrv/..
or,
docker pull docker.pkg.github.com/sams96/rgeosrv/rgeosrv
rgeoSrv -addr localhost:8080
or,
docker run -p 8080:8080 docker.pkg.github.com/sams96/rgeosrv/rgeosrv and
then:
curl "localhost:8080/query?0&51.5045"
will return:
{"country":"United Kingdom","country_long":"United Kingdom of Great Britain and Northern Ireland","country_code_2":"GB","country_code_3":"GBR","continent":"Europe","region":"Europe","subregion":"Northern Europe","province":"Tower Hamlets","province_code":"GB-TWH","city":"London"}