AdministrativeCommercialVehicleRules
public struct AdministrativeCommercialVehicleRules : Hashable
Commercial vehicle regulations for an administrative region (country or state). Contains access restrictions, speed limits, and drive/rest rules applicable to commercial vehicles on road segments within the region.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Administrative context identifier for this set of rules.
Declaration
Swift
public var id: AdminContextId -
Access restrictions for commercial vehicles (e.g. bridge/tunnel restrictions).
Declaration
Swift
public var accessRegulations: [VehicleSpecificAccess] -
Vehicle-specific speed limits for commercial vehicles.
Declaration
Swift
public var speedLimitRegulations: [VehicleSpecificSpeedLimit] -
Drive and rest regulations for commercial drivers.
Declaration
Swift
public var driveRestRegulation: DriveRestRegulation -
Creates a new instance with default values.
Declaration
Swift
public init(id: AdminContextId, accessRegulations: [VehicleSpecificAccess] = [], speedLimitRegulations: [VehicleSpecificSpeedLimit] = [], driveRestRegulation: DriveRestRegulation = DriveRestRegulation())