SafetyScoreRequestParameters

Represents the parameters for which an aggregated safety score is being requested.

SafetyScoreRequestParameters API

init

An initializer to create an instance of SafetyScoreRequestParameters.

public init(
    period: SafetyScoreRequestPeriod,
    transportModes: SafetyScoreRequestTransportModeOption = .all,
    occupantRoles: SafetyScoreRequestOccupantRoleOption = .all
)
Parameters

period

transportModes

occupantRoles

period

The period for which an aggregated safety score will be requested. See SafetyScoreRequestPeriod.

let period: SafetyScoreRequestPeriod

occupantRoles

The occupant roles for which an aggregated safety score will be requested. See SafetyScoreRequestOccupantRoleOption.

let occupantRoles: SafetyScoreRequestOccupantRoleOption

transportModes

The transport mode for for which an aggregated safety score will be requested. See SafetyScoreRequestTransportModeOption.

let transportModes: SafetyScoreRequestTransportModeOption

Last updated