> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters.md).

# SafetyScoreRequestParameters

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

## SafetyScoreRequestParameters API

### `init`

An initializer to create an instance of SafetyScoreRequestParameters.

```swift
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](/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequestperiod.md).                                       |
| transportModes | The transport mode for for which an aggregated safety score will be requested. See [SafetyScoreRequestTransportModeOption](/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequesttransportmodeoption.md). |
| occupantRoles  | The occupant roles for which an aggregated safety score will be requested. See [SafetyScoreRequestOccupantRoleOption](/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequestoccupantroleoption.md).       |

### `period`

The period for which an aggregated safety score will be requested. See [SafetyScoreRequestPeriod](/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequestperiod.md).

```swift
let period: SafetyScoreRequestPeriod
```

### `occupantRoles`

The occupant roles for which an aggregated safety score will be requested. See [SafetyScoreRequestOccupantRoleOption](/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequestoccupantroleoption.md).

```swift
let occupantRoles: SafetyScoreRequestOccupantRoleOption
```

### `transportModes`

The transport mode for for which an aggregated safety score will be requested. See [SafetyScoreRequestTransportModeOption](/sdk/api-reference/ios/driving-insights/safetyscorerequestparameters/safetyscorerequesttransportmodeoption.md).

```swift
let transportModes: SafetyScoreRequestTransportModeOption
```
