AdministrativeRules class

Represents a set of administrative rules for a country or a state.

Constructors

AdministrativeRules()

Properties

bloodAlcoholContentLimit BloodAlcoholContentLimit
Indicates the rules regarding alcohol in blood content limit in a country or state for all types of drivers.
getter/setter pair
countryCode CountryCode
Country code for which the administrative rules apply.
getter/setter pair
daylightSavingPeriod TimeRule?
Time rule indicating the time periods in which daylight savings applies. If the field is 'null' then daylight savings time is not observed in the country or state. Note: In order to properly calculate the time zone offset, if the daylight savings time is observed at the time of the calculation, then a value of 60 minutes should be substracted from the time zone offset.
getter/setter pair
drivingSide DrivingSide?
The side of the road used for driving in the country or state. Defaults to right driving side.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
headlightsRequirements ↔ List<HeadlightsRequirement>
Indicates in which conditions should the headlights be turned on. Defaults to an empty list, which means that by default there are no special situations in which the headlights should be turned on.
getter/setter pair
isCleanAirStickerRequired ↔ bool
Indicates if the country or state requires an ecological sticker. Defaults to false.
getter/setter pair
isTollRequired ↔ bool
Indicates if the country or state requires paid fees for usage of the motorways / controlled access roads. Defaults to false.
getter/setter pair
isTollStickerRequired ↔ bool
Indicates if the country or state requires a toll sticker. Defaults to false.
getter/setter pair
isUturnRestricted ↔ bool
Indicates if performing a u-turn maneuver is restricted. Defaults to false.
getter/setter pair
parkingSideRegulations ↔ List<ParkingSideRegulation>
Indicates the regulations for parking on the side of the road.
getter/setter pair
preTripPlanning PreTripPlanning
Indicates the legal requirements to be considered before a trip for all vehicles types.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speedLimits GeneralVehicleSpeedLimits
The general speed limits in the country or state.
getter/setter pair
stateCode ↔ String?
The state code for which the administrative rules apply. It represents the state / province code. It is a 1 to 3 upper-case characters string that follows the ISO 3166-2 standard, but without the preceding country code (e.g. for Texas, the state code will be TX). It will be null if the rules are applying to the entire country and not just a specific state.
getter/setter pair
timeZoneOffsetsInMinutes ↔ List<Duration>
The time zone offset from UTC of the country or state expressed in minutes. The value can also be negative (e.g.: Eastern Standard Time (EST) will be -360 minutes, Central European Time (CET) will be 60 minutes). Defaults to 0 minutes. Note: A time zone with a positive shift of 1 hour and 30 minutes will result in a time zone offset of 90 minutes. A time zone with a negative shift of 3 hour and 30 minutes will result in an time zone offset of -210 minutes. In order to properly calculate the time zone offset, the AdministrativeRules.daylight_saving_period should be taken into consideration and if the daylight savings time is observed at the time of the calculation, then a value of 60 minutes should be substracted from the time zone offset.
getter/setter pair
tollSystems ↔ List<TollSystem>
Indicates the toll systems present in a country or state.
getter/setter pair
turnOnRedRegulations ↔ List<TurnOnRedRegulation>
Indicates the regulations for turning on the red color of the traffic light.
getter/setter pair
unitSystem UnitSystem?
Defines the measurement system used for distances. Defaults to metric measurement system.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.