1
2
3
4
5
6
7
8
9
10
11
-
-
import
HMKit
from
'hmkit’
;
const
hmkit =
new
HMKit(
"dGVzdB7ep5h7SLfibBXpdEXbG5rBwg...”
,
"OZurZt6RogBOrU4IDH/cVJGhV8Lz4y..."
);
hmkit.telematics.sendCommand(
hmkit.commands.VehicleStatus.getVehicleStatus(),
hmkit.downloadAccessCertificate(accessToken)
);
// Example Auto API response (coordinates)
{
"coordinates"
:
{
"timestamp"
:
"2020-12-21T15:48:04.887Z"
,
"data"
:
{
"value"
:
{
"latitude"
:
{
"value"
:
52.520008
},
"longitude"
:
{
"value"
:
13.404954
}
}
}
}
// Example Auto API response (estimated range)
{
"estimatedRange"
:
{
"timestamp"
:
"2020-12-21T15:48:04.887Z"
,
"data"
:
{
"value"
:
{
"value"
:
432.1
,
"unit"
:
"kilometers"
}
}
}
}
// Example Auto API response (distance to next service)
{
"distanceToNextService"
:
{
"timestamp"
:
"2020-12-21T15:48:04.887Z"
,
"data"
:
{
"value"
:
{
"value"
:
3681
,
"unit"
:
"kilometers"
}
}
}
}