SafetyScoreRequestParameters
Represents the parameters for which an aggregated safety score is being requested.
SafetyScoreRequestParameters API
init
init
An initializer to create an instance of SafetyScoreRequestParameters.
public init(
period: SafetyScoreRequestPeriod,
transportModes: SafetyScoreRequestTransportModeOption = .all,
occupantRoles: SafetyScoreRequestOccupantRoleOption = .all
)
period
The period for which an aggregated safety score will be requested. See SafetyScoreRequestPeriod.
transportModes
The transport mode for for which an aggregated safety score will be requested. See SafetyScoreRequestTransportModeOption.
occupantRoles
The occupant roles for which an aggregated safety score will be requested. See SafetyScoreRequestOccupantRoleOption.
period
period
The period for which an aggregated safety score will be requested. See SafetyScoreRequestPeriod.
let period: SafetyScoreRequestPeriod
occupantRoles
occupantRoles
The occupant roles for which an aggregated safety score will be requested. See SafetyScoreRequestOccupantRoleOption.
let occupantRoles: SafetyScoreRequestOccupantRoleOption
transportModes
transportModes
The transport mode for for which an aggregated safety score will be requested. See SafetyScoreRequestTransportModeOption.
let transportModes: SafetyScoreRequestTransportModeOption
Last updated