-
Notifications
You must be signed in to change notification settings - Fork 0
Sample Data Format
Jeffrey Yang edited this page Jul 3, 2014
·
1 revision
A sample POST for uploading data is given below.
POST to: https://api.kinisi.cc/geoserver/api/import
- The API_TOKEN will be provisioned upon request.
- The DEVICE_ID is automatically assigned per Kinisi Agent device.
POST /geoserver/api/import HTTP/1.1
Host: api.kinisi.cc
Content-Type: application/json
X-Api-Token: [API_TOKEN]
{
"deviceId": "[DEVICE_ID]",
"deviceRecords": [
{
"class": "TPV",
"tag": "MID2",
"device": "/dev/gps0",
"mode": 3,
"time": "2014-02-07T16:38:06.000Z",
"ept": 0.005,
"lat": 13.7512111111,
"lon": -97.203333333,
"alt": 504.504,
"epx": 8.61,
"epy": 8.99,
"epv": 25.44,
"track": 270.3197,
"speed": 36.56,
"climb": 0.51,
"epd": 27.7941,
"eps": 17.98
},
{
"class": "TPV",
"tag": "MID2",
"device": "/dev/gps0",
"mode": 3,
"time": "2014-02-05T16:38:00.000Z",
"ept": 0.005,
"lat": 13.75222222,
"lon": -97.206666666,
"alt": 500.96,
"epx": 8.61,
"epy": 8.99,
"epv": 25.44,
"track": 267.8481,
"speed": 36.365,
"climb": 0.884,
"epd": 27.8725,
"eps": 17.98
}
]
}