query · Module: Fleet
Arguments
Returns
Position!
Errors
Errors are returned inerrors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
query VehiclePosition($id: ID!) {
vehiclePosition(id: $id) {
at
latitude
longitude
heading
speed {
value
unit
}
accuracy_m
source
}
}
{
"id": "obj_1a2B3c"
}
{
"data": {
"vehiclePosition": {
"at": "example",
"latitude": 51.5074,
"longitude": -0.1278,
"heading": 1.5,
"speed": {
"value": 1.5,
"unit": "kg"
},
"accuracy_m": 1.5,
"source": "driver_app"
}
}
}
Latest vehicle position
query VehiclePosition($id: ID!) {
vehiclePosition(id: $id) {
at
latitude
longitude
heading
speed {
value
unit
}
accuracy_m
source
}
}
{
"id": "obj_1a2B3c"
}
{
"data": {
"vehiclePosition": {
"at": "example",
"latitude": 51.5074,
"longitude": -0.1278,
"heading": 1.5,
"speed": {
"value": 1.5,
"unit": "kg"
},
"accuracy_m": 1.5,
"source": "driver_app"
}
}
}
query · Module: Fleet
| Argument | Type | Description |
|---|---|---|
id | ID! | The object’s ID. |
Position!
| Field | Type |
|---|---|
at | String! |
latitude | Float! |
longitude | Float! |
heading | Float |
speed | PositionSpeed |
accuracy_m | Float |
source | PositionSource |
errors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
query VehiclePosition($id: ID!) {
vehiclePosition(id: $id) {
at
latitude
longitude
heading
speed {
value
unit
}
accuracy_m
source
}
}
{
"id": "obj_1a2B3c"
}
{
"data": {
"vehiclePosition": {
"at": "example",
"latitude": 51.5074,
"longitude": -0.1278,
"heading": 1.5,
"speed": {
"value": 1.5,
"unit": "kg"
},
"accuracy_m": 1.5,
"source": "driver_app"
}
}
}