Push GPS Pin from Spark IoT
Body
GPS Pin to report
-
testMode boolean
Set true if you are testing integration, to avoid data pollution. Otherwise, this property can be omitted from request data.
-
UTC timestamp when GPS coordinates are calculated on device, in ISO 8601 datetime format. This can be formatted in Node/JavaScript with
toISOString()
-
Spark IoT hardware unique device ID
-
GPS latitude
-
GPS longitude
-
gps_speed number(float)
GPS speed (km/h)
-
gps_satellite integer
GPS satellites in view
POST /spark
curl \
-X POST https://api.spotlumos.com/spark \
-H "X-API-KEY: $API_KEY" \
-d '{"testMode":true,"utc_located_at":"2023-01-25T02:00:00.000Z","id_dev":"B188","gps_lat":-33.872953,"gps_long":151.206948,"gps_speed":25.0,"gps_satellite":8}'
Request example
{
"testMode": true,
"utc_located_at": "2023-01-25T02:00:00.000Z",
"id_dev": "B188",
"gps_lat": -33.872953,
"gps_long": 151.206948,
"gps_speed": 25.0,
"gps_satellite": 8
}
Request examples
{
"testMode": true,
"utc_located_at": "2023-01-25T02:00:00.000Z",
"id_dev": "B188",
"gps_lat": -33.872953,
"gps_long": 151.206948,
"gps_speed": 25.0,
"gps_satellite": 8
}
Response examples (200)
{
"ok": true,
"testMode": true,
"pin": {
"testMode": true,
"utc_located_at": "2023-01-25T02:00:00.000Z",
"id_dev": "B188",
"gps_lat": -33.872953,
"gps_long": 151.206948,
"gps_speed": 25.0,
"gps_satellite": 8
}
}
Response examples (200)
{
"ok": true,
"testMode": true,
"pin": {
"testMode": true,
"utc_located_at": "2023-01-25T02:00:00.000Z",
"id_dev": "B188",
"gps_lat": -33.872953,
"gps_long": 151.206948,
"gps_speed": 25.0,
"gps_satellite": 8
}
}
Response examples (400)
{
"message": "string"
}
Response examples (400)
{
"message": "string"
}