GET Trips/GetLastTripOfAdministrations?minDate={minDate}&adminIds={adminIds}

Get last trip for each provided administration.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
minDate

Minimum datetime from which trips should be returned.

date

None.

adminIds

Comma separated administration id's.

string

None.

Body Parameters

None.

Response Information

Resource Description

Dictionary of integer [key] and RideDTO [value]

Response Formats

application/json, text/json

Sample:
{
  "1": {
    "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": "2021-11-30T19:41:56.2651081+01:00",
        "Ticks": 4
      },
      {
        "SignalValues": null,
        "Longitude": 1.1,
        "Latitude": 2.1,
        "DateTime": "2021-11-30T19:41:56.2651081+01:00",
        "Ticks": 4
      }
    ],
    "TripTypeId": 26,
    "PrivateDetourKm": 27.0
  },
  "2": {
    "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": "2021-11-30T19:41:56.2651081+01:00",
        "Ticks": 4
      },
      {
        "SignalValues": null,
        "Longitude": 1.1,
        "Latitude": 2.1,
        "DateTime": "2021-11-30T19:41:56.2651081+01:00",
        "Ticks": 4
      }
    ],
    "TripTypeId": 26,
    "PrivateDetourKm": 27.0
  }
}