Driving Summary

Handles DrivingSummary related requests with IMS web services.

The SDK allows for the host application to retrieve driving summary data.

Fetch Drive Summary

To fetch driving summary data, the following API can be used.

Concrete example

let service = DrivingSummaryService()
let startDate = Date() // customize this to your convenience
let endDate = Date() // customize this to your convenience

service.fetch(filters: [.date(start: startDate, end: endDate)], then: { result in 
    guard !result.value.isEmpty else {
        // failure
        return
    }
    completionHandler(.success(result.value))
}

Fetch Drive Summary By Policy

To fetch driving summary for a specific policy within the given start and end date, the following API can be used.

Parameters:

  • policyId: The policy ID

  • startDate: Start date (optional)

  • endDate: End date (optional)

  • verificationCutOffDate: Verification cutoff date (optional)

Concrete example

Fetch Drive Summary For User By Policy

To fetch driving summary for a specific user and policy within the given start and end date, the following API can be used.

Parameters:

  • userId: The user ID

  • policyId: The policy ID

  • startDate: Start date (optional)

  • endDate: End date (optional)

  • verificationCutOffDate: Verification cutoff date (optional)

Concrete example

Last updated