GET api/v1/{tokenClient}/vehicle/{vehicleId}/getFuelAndGpsBySampling?start={start}&end={end}&sampling={sampling}
récupération des données kilométriques et gps de date à date par échantillonage défini
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| tokenClient |
Token client |
globally unique identifier |
Required |
| vehicleId |
Id véhicule |
globally unique identifier |
Required |
| start |
le début de la période |
date |
Required |
| end |
la fin de la période |
date |
Required |
| sampling |
Échantillonnage en minutes. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of FuelAndGpsStatementDto| Name | Description | Type | Additional information |
|---|---|---|---|
| DateTimeUtc |
Date/Heure |
date |
None. |
| Mileage |
Kilométrage compteur |
decimal number |
None. |
| FuelUsed |
Nombre de litres consommés |
integer |
None. |
| Longitude |
Longitude |
decimal number |
None. |
| Latitude |
Latitude |
decimal number |
None. |
| Speed |
Vitesse en km/h |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"DateTimeUtc": "2025-11-30T11:53:20.1561818+00:00",
"Mileage": 1.1,
"FuelUsed": 1,
"Longitude": 2.1,
"Latitude": 3.1,
"Speed": 4
},
{
"DateTimeUtc": "2025-11-30T11:53:20.1561818+00:00",
"Mileage": 1.1,
"FuelUsed": 1,
"Longitude": 2.1,
"Latitude": 3.1,
"Speed": 4
}
]
application/xml, text/xml
Sample:
<ArrayOfFuelAndGpsStatementDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/B2Fleet.Web.Handler.Models">
<FuelAndGpsStatementDto>
<DateTime>2025-11-30T11:53:20.1561818+00:00</DateTime>
<FuelUsed>1</FuelUsed>
<Latitude>3.1</Latitude>
<Longitude>2.1</Longitude>
<MileStone>1.1</MileStone>
<Speed>4</Speed>
</FuelAndGpsStatementDto>
<FuelAndGpsStatementDto>
<DateTime>2025-11-30T11:53:20.1561818+00:00</DateTime>
<FuelUsed>1</FuelUsed>
<Latitude>3.1</Latitude>
<Longitude>2.1</Longitude>
<MileStone>1.1</MileStone>
<Speed>4</Speed>
</FuelAndGpsStatementDto>
</ArrayOfFuelAndGpsStatementDto>