Build Status | |
---|---|
Production |
Project can be set up by running sh ./bin/setup
. It does the steps defined below.
Note that Elixir 1.5 or greater is required in order to start it.
Once run, follow directions and start app by running sh ./bin/server
Now you can visit localhost:4000
from your browser.
Add a new positive location with timestamp.
POST /api/v1/submit_positive_location
{
"app_version": "foo",
"lat": 90.0,
"lng": 90.0,
"when": "2020-05-28T17:21:29Z"
}
{
"data": {
"lat": 90.0,
"lng": 90.0,
"when": "2020-05-28T17:21:29Z"
},
"ok": true
}
Find postive reports near the queried location and time.
GET /api/v1/find_proximate_positives
name | type | example |
---|---|---|
lat | float | 90.0 |
lng | float | 90.0 |
when | iso8601 | 2020-05-28T17:21:29Z |
{
"ok": true,
"positives": [
{
"lat": 90.00000001,
"lng": 90.00000002,
"when": "2020-05-28T17:29:32Z"
},
{
"lat": 90.00000003,
"lng": 90.00000004,
"when": "2020-05-28T17:32:05Z"
}
]
}