There are a lot of contents that's need to be linked with a particular location. This service provides a set of rest api for storing contents using latitude and longitude, which makes easier to find them later.
Request for getting a valid access token by username and password.
curl -X POST --data "username=admin&password=P@ssw0rd" http://localhost:5010/api/v1.0/user/authenticate
Request for getting contents by latitude, longitude and distance (Km).
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ACCESS-TOKEN-HERE" "http://localhost:5010/api/v1.0/geodata/location?lon=-74.046689&lat=40.68924941&distance=0.1"
- git clone https://github.com/antdimot/gstore.git
- cd gstore
- docker-compose up -d
- check api doc at http://localhost:5010/api/v1/status/check
The service uses JWT for securely transmitting information between parties, so that refer to appsettings.*.json files for update token_appkey with your. The gstore database is initialized by docker with contents of file data.js, which contains information for access and some contents.