GET api/Utilization/Trips?SerialNumber={SerialNumber}&FromDate={FromDate}
Get motion based trips for specified unit
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
SerialNumber |
Unit serialnumber |
string |
Required |
FromDate |
(Optional) Only include trips after this date |
date |
None. |
Body Parameters
None.
Response Information
Resource Description
Get motion based trips for specified unit
TripModelName | Description | Type | Additional information |
---|---|---|---|
TripId | integer32 |
None. |
|
FromGeocode |
Geocode address of starting position |
string |
None. |
FromLatitude |
Llatitude of starting position |
string |
None. |
FromLongitude |
Longitude of starting position |
string |
None. |
ToGeocode |
Geocode of ending position |
string |
None. |
ToLatitude |
Latitude of ending position |
string |
None. |
ToLongitude |
Longitude of ending position |
string |
None. |
Distance |
Distance in km |
decimal number |
None. |
Duration |
Duration in seconds |
integer32 |
None. |
ArrivalDate |
Arrival date |
date |
None. |
DepartureDate |
Departue date |
date |
None. |
Response Formats
application/json, text/json
Sample:
{ "TripId": 1, "FromGeocode": "sample string 2", "FromLatitude": "sample string 3", "FromLongitude": "sample string 4", "ToGeocode": "sample string 5", "ToLatitude": "sample string 6", "ToLongitude": "sample string 7", "Distance": 8.1, "Duration": 9, "ArrivalDate": "2024-12-03T16:37:37.8145315+00:00", "DepartureDate": "2024-12-03T16:37:37.8145315+00:00" }
application/xml, text/xml
Sample:
<TripModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <ArrivalDate>2024-12-03T16:37:37.8145315+00:00</ArrivalDate> <DepartureDate>2024-12-03T16:37:37.8145315+00:00</DepartureDate> <Distance>8.1</Distance> <Duration>9</Duration> <FromGeocode>sample string 2</FromGeocode> <FromLatitude>sample string 3</FromLatitude> <FromLongitude>sample string 4</FromLongitude> <ToGeocode>sample string 5</ToGeocode> <ToLatitude>sample string 6</ToLatitude> <ToLongitude>sample string 7</ToLongitude> <TripId>1</TripId> </TripModel>