Skip to content

High-performance Real-time Akka based API for bencinmonitor.si.

Notifications You must be signed in to change notification settings

bencinmonitor/d2

Repository files navigation

bencinmonitor / d2

High-performance API for bencinmonitor.si.

Build Status

REST Endpoints

GET /stations

Returns list of stations and prices.

Supported GET parameters

  • near[String] - Address or location "name". near is geo-coded into coordinates then are then used as starting point.
  • at[Double,Double] - Coordinates ther are used for starting point.
  • maxDistance[Int] - Maximal distance in meters around near or at. Default is 10000 meters.
  • limit[Int] - Maximum number of records that API returns. Default is 10.

Docker

sbt assembly

docker build -t bencinmonitor/d2:latest .

docker run -ti --rm \
    -e MONGO_URI=mongodb://10.8.8.8:27017/bm \
    -e REDIS_URI=redis://@10.8.8.8:6379/1 \
    -p 0.0.0.0:4444:4444 bencinmonitor/d2:latest

Environment variables

  • PORT
  • MONGO_URIREDIS_URI

Author

Releases

No releases published

Packages

No packages published