GET Trips/GetEmployeeTrips?employeeId={employeeId}&from={from}&to={to}&extendedInfo={extendedInfo}

Get Trips from a driver between two date's.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeId

The target User

integer

Required

from

From date (ISO 8601 - YYYY-MM-DDTHH:MM:SS)

date

Required

to

To date (ISO 8601 - YYYY-MM-DDTHH:MM:SS)

date

Required

extendedInfo

Get extended info (polyline data)

boolean

Required

Body Parameters

None.

Response Information

Resource Description

Collection of RideDTO
NameDescriptionTypeAdditional information
Id

integer

None.

EquipmentId

integer

None.

RideNumber

integer

None.

Distance

decimal number

None.

RideType

RideTypeDTO

None.

From

FromToDTO

None.

To

FromToDTO

None.

DriverName

string

None.

DriverId

integer

None.

EncodedTrack

string

None.

EncodedSpeed

string

None.

RouteTicks

Collection of integer

None.

EncodedTime

string

None.

EncodedPTO

string

None.

Events

Collection of EcoEventDTO

None.

CustomField

string

None.

Purpose

string

None.

Reason

string

None.

Contact

string

None.

Remarks

string

None.

IsCorrection

boolean

None.

FixedMileage

boolean

None.

CorrectionMileage

decimal number

None.

Timestamp

string

None.

Ticks

integer

None.

StationaryTimeInHours

decimal number

None.

FuelUsedInLiters

decimal number

None.

LicensePlate

string

None.

RouteDescription

string

None.

RoutePlannerDistance

decimal number

None.

AvlDTO

Collection of TripAvlDTO

None.

TripTypeId

integer

None.

PrivateDetourKm

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "EquipmentId": 2,
    "RideNumber": 3,
    "Distance": 4.0,
    "RideType": "Private",
    "From": {
      "DateTime": "sample string 1",
      "Odometer": 2.0,
      "Description": "sample string 3",
      "Address": {
        "Country": "sample string 1",
        "Address": "sample string 2",
        "City": "sample string 3",
        "PostalCode": "sample string 4",
        "Longitude": 5.1,
        "Latitude": 6.1
      },
      "Location": {
        "Latitude": 1.0,
        "Longitude": 2.0,
        "Altitude": 3.0,
        "DateTime": "sample string 4",
        "DateTimeString": "sample string 4",
        "Remarks": "sample string 5",
        "Reason": "sample string 6",
        "EncodedGeofence": "sample string 7",
        "Radius": 8.1,
        "Type": "Business",
        "AreaType": "Radius"
      },
      "PointOfInterest": {
        "Id": 1,
        "Description": "sample string 2",
        "LocationNumber": 3,
        "Address": {
          "Country": "sample string 1",
          "Address": "sample string 2",
          "City": "sample string 3",
          "PostalCode": "sample string 4",
          "Longitude": 5.1,
          "Latitude": 6.1
        },
        "Location": {
          "Latitude": 1.0,
          "Longitude": 2.0,
          "Altitude": 3.0,
          "DateTime": "sample string 4",
          "DateTimeString": "sample string 4",
          "Remarks": "sample string 5",
          "Reason": "sample string 6",
          "EncodedGeofence": "sample string 7",
          "Radius": 8.1,
          "Type": "Business",
          "AreaType": "Radius"
        }
      },
      "MinutesAtLocation": 4
    },
    "To": {
      "DateTime": "sample string 1",
      "Odometer": 2.0,
      "Description": "sample string 3",
      "Address": {
        "Country": "sample string 1",
        "Address": "sample string 2",
        "City": "sample string 3",
        "PostalCode": "sample string 4",
        "Longitude": 5.1,
        "Latitude": 6.1
      },
      "Location": {
        "Latitude": 1.0,
        "Longitude": 2.0,
        "Altitude": 3.0,
        "DateTime": "sample string 4",
        "DateTimeString": "sample string 4",
        "Remarks": "sample string 5",
        "Reason": "sample string 6",
        "EncodedGeofence": "sample string 7",
        "Radius": 8.1,
        "Type": "Business",
        "AreaType": "Radius"
      },
      "PointOfInterest": {
        "Id": 1,
        "Description": "sample string 2",
        "LocationNumber": 3,
        "Address": {
          "Country": "sample string 1",
          "Address": "sample string 2",
          "City": "sample string 3",
          "PostalCode": "sample string 4",
          "Longitude": 5.1,
          "Latitude": 6.1
        },
        "Location": {
          "Latitude": 1.0,
          "Longitude": 2.0,
          "Altitude": 3.0,
          "DateTime": "sample string 4",
          "DateTimeString": "sample string 4",
          "Remarks": "sample string 5",
          "Reason": "sample string 6",
          "EncodedGeofence": "sample string 7",
          "Radius": 8.1,
          "Type": "Business",
          "AreaType": "Radius"
        }
      },
      "MinutesAtLocation": 4
    },
    "DriverName": "sample string 5",
    "DriverId": 6,
    "EncodedTrack": "sample string 7",
    "EncodedSpeed": "sample string 8",
    "RouteTicks": [
      1,
      2
    ],
    "EncodedTime": "sample string 9",
    "EncodedPTO": "sample string 10",
    "Events": [
      {
        "Type": "HarshAcceleration",
        "Value": 1,
        "Location": {
          "Latitude": 1.0,
          "Longitude": 2.0,
          "Altitude": 3.0,
          "DateTime": "sample string 4",
          "DateTimeString": "sample string 4",
          "Remarks": "sample string 5",
          "Reason": "sample string 6",
          "EncodedGeofence": "sample string 7",
          "Radius": 8.1,
          "Type": "Business",
          "AreaType": "Radius"
        },
        "Ticks": 2
      },
      {
        "Type": "HarshAcceleration",
        "Value": 1,
        "Location": {
          "Latitude": 1.0,
          "Longitude": 2.0,
          "Altitude": 3.0,
          "DateTime": "sample string 4",
          "DateTimeString": "sample string 4",
          "Remarks": "sample string 5",
          "Reason": "sample string 6",
          "EncodedGeofence": "sample string 7",
          "Radius": 8.1,
          "Type": "Business",
          "AreaType": "Radius"
        },
        "Ticks": 2
      }
    ],
    "CustomField": "sample string 11",
    "Purpose": "sample string 12",
    "Reason": "sample string 13",
    "Contact": "sample string 14",
    "Remarks": "sample string 15",
    "IsCorrection": true,
    "FixedMileage": true,
    "CorrectionMileage": 18.0,
    "Timestamp": "sample string 19",
    "Ticks": 20,
    "StationaryTimeInHours": 21.1,
    "FuelUsedInLiters": 22.1,
    "LicensePlate": "sample string 23",
    "RouteDescription": "sample string 24",
    "RoutePlannerDistance": 25.0,
    "AvlDTO": [
      {
        "SignalValues": null,
        "Longitude": 1.1,
        "Latitude": 2.1,
        "DateTime": "2020-10-25T19:26:36.6251217+01:00",
        "Ticks": 4
      },
      {
        "SignalValues": null,
        "Longitude": 1.1,
        "Latitude": 2.1,
        "DateTime": "2020-10-25T19:26:36.6251217+01:00",
        "Ticks": 4
      }
    ],
    "TripTypeId": 26,
    "PrivateDetourKm": 27.0
  },
  {
    "Id": 1,
    "EquipmentId": 2,
    "RideNumber": 3,
    "Distance": 4.0,
    "RideType": "Private",
    "From": {
      "DateTime": "sample string 1",
      "Odometer": 2.0,
      "Description": "sample string 3",
      "Address": {
        "Country": "sample string 1",
        "Address": "sample string 2",
        "City": "sample string 3",
        "PostalCode": "sample string 4",
        "Longitude": 5.1,
        "Latitude": 6.1
      },
      "Location": {
        "Latitude": 1.0,
        "Longitude": 2.0,
        "Altitude": 3.0,
        "DateTime": "sample string 4",
        "DateTimeString": "sample string 4",
        "Remarks": "sample string 5",
        "Reason": "sample string 6",
        "EncodedGeofence": "sample string 7",
        "Radius": 8.1,
        "Type": "Business",
        "AreaType": "Radius"
      },
      "PointOfInterest": {
        "Id": 1,
        "Description": "sample string 2",
        "LocationNumber": 3,
        "Address": {
          "Country": "sample string 1",
          "Address": "sample string 2",
          "City": "sample string 3",
          "PostalCode": "sample string 4",
          "Longitude": 5.1,
          "Latitude": 6.1
        },
        "Location": {
          "Latitude": 1.0,
          "Longitude": 2.0,
          "Altitude": 3.0,
          "DateTime": "sample string 4",
          "DateTimeString": "sample string 4",
          "Remarks": "sample string 5",
          "Reason": "sample string 6",
          "EncodedGeofence": "sample string 7",
          "Radius": 8.1,
          "Type": "Business",
          "AreaType": "Radius"
        }
      },
      "MinutesAtLocation": 4
    },
    "To": {
      "DateTime": "sample string 1",
      "Odometer": 2.0,
      "Description": "sample string 3",
      "Address": {
        "Country": "sample string 1",
        "Address": "sample string 2",
        "City": "sample string 3",
        "PostalCode": "sample string 4",
        "Longitude": 5.1,
        "Latitude": 6.1
      },
      "Location": {
        "Latitude": 1.0,
        "Longitude": 2.0,
        "Altitude": 3.0,
        "DateTime": "sample string 4",
        "DateTimeString": "sample string 4",
        "Remarks": "sample string 5",
        "Reason": "sample string 6",
        "EncodedGeofence": "sample string 7",
        "Radius": 8.1,
        "Type": "Business",
        "AreaType": "Radius"
      },
      "PointOfInterest": {
        "Id": 1,
        "Description": "sample string 2",
        "LocationNumber": 3,
        "Address": {
          "Country": "sample string 1",
          "Address": "sample string 2",
          "City": "sample string 3",
          "PostalCode": "sample string 4",
          "Longitude": 5.1,
          "Latitude": 6.1
        },
        "Location": {
          "Latitude": 1.0,
          "Longitude": 2.0,
          "Altitude": 3.0,
          "DateTime": "sample string 4",
          "DateTimeString": "sample string 4",
          "Remarks": "sample string 5",
          "Reason": "sample string 6",
          "EncodedGeofence": "sample string 7",
          "Radius": 8.1,
          "Type": "Business",
          "AreaType": "Radius"
        }
      },
      "MinutesAtLocation": 4
    },
    "DriverName": "sample string 5",
    "DriverId": 6,
    "EncodedTrack": "sample string 7",
    "EncodedSpeed": "sample string 8",
    "RouteTicks": [
      1,
      2
    ],
    "EncodedTime": "sample string 9",
    "EncodedPTO": "sample string 10",
    "Events": [
      {
        "Type": "HarshAcceleration",
        "Value": 1,
        "Location": {
          "Latitude": 1.0,
          "Longitude": 2.0,
          "Altitude": 3.0,
          "DateTime": "sample string 4",
          "DateTimeString": "sample string 4",
          "Remarks": "sample string 5",
          "Reason": "sample string 6",
          "EncodedGeofence": "sample string 7",
          "Radius": 8.1,
          "Type": "Business",
          "AreaType": "Radius"
        },
        "Ticks": 2
      },
      {
        "Type": "HarshAcceleration",
        "Value": 1,
        "Location": {
          "Latitude": 1.0,
          "Longitude": 2.0,
          "Altitude": 3.0,
          "DateTime": "sample string 4",
          "DateTimeString": "sample string 4",
          "Remarks": "sample string 5",
          "Reason": "sample string 6",
          "EncodedGeofence": "sample string 7",
          "Radius": 8.1,
          "Type": "Business",
          "AreaType": "Radius"
        },
        "Ticks": 2
      }
    ],
    "CustomField": "sample string 11",
    "Purpose": "sample string 12",
    "Reason": "sample string 13",
    "Contact": "sample string 14",
    "Remarks": "sample string 15",
    "IsCorrection": true,
    "FixedMileage": true,
    "CorrectionMileage": 18.0,
    "Timestamp": "sample string 19",
    "Ticks": 20,
    "StationaryTimeInHours": 21.1,
    "FuelUsedInLiters": 22.1,
    "LicensePlate": "sample string 23",
    "RouteDescription": "sample string 24",
    "RoutePlannerDistance": 25.0,
    "AvlDTO": [
      {
        "SignalValues": null,
        "Longitude": 1.1,
        "Latitude": 2.1,
        "DateTime": "2020-10-25T19:26:36.6251217+01:00",
        "Ticks": 4
      },
      {
        "SignalValues": null,
        "Longitude": 1.1,
        "Latitude": 2.1,
        "DateTime": "2020-10-25T19:26:36.6251217+01:00",
        "Ticks": 4
      }
    ],
    "TripTypeId": 26,
    "PrivateDetourKm": 27.0
  }
]