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

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

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