TrafficIncidentsQueryOptions
public struct TrafficIncidentsQueryOptions : Hashable
The options to specify how incidents should be queried.
-
The list of incident types to be queried. If the list is empty, all types will be queried.
Declaration
Swift
public var typeFilter: [TrafficIncidentType] -
The list of incident impacts to be queried. If the list is empty, all incident impacts will be queried.
Declaration
Swift
public var impactFilter: [TrafficIncidentImpact] -
The earliest start time of incidents to be queried. If the value is null filtering by the earliest start time is not applied.
Declaration
Swift
public var earliestStartTime: Date? -
The latest end time of incidents to be queried. If the value is null filtering by the latest end time is not applied.
Declaration
Swift
public var latestEndTime: Date? -
The language code of the query. It’s the expected language of fields
descriptionandTrafficIncident.summaryin the relevant response. However, the language code doesn’t impact onTrafficLocation.description. If the language code is null or not supported then response fields are expected in the original language of the country that the incident belongs to.Declaration
Swift
public var languageCode: LanguageCode? -
Undocumented
Declaration
Swift
public init(typeFilter: [TrafficIncidentType] = [], impactFilter: [TrafficIncidentImpact] = [], earliestStartTime: Date? = nil, latestEndTime: Date? = nil, languageCode: LanguageCode? = nil)