BorderCrossingWarning constructor
- @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
- int id,
- double distanceToBorderCrossingInMeters,
- BorderCrossingType type,
- AdministrativeRules administrativeRules,
- DistanceType distanceType,
- AdministrativeCommercialVehicleRules? commercialVehicleRegulations,
Creates a new instance.
idUnique identifier for this specific border crossing warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.distanceToBorderCrossingInMetersDistance to the border crossing in meters.typeType of border crossing.administrativeRulesThe administrative rules for the country or state after the border crossing. It contains information regarding rules such as driving side, speed limits, various sticker requirements, toll costs and others.distanceTypeThe distance type for the warning, e.g. a warning for a new border crossing ahead or a warning for passing a border crossing. Since the border crossing warning is given relative to a single position on the route, DistanceType.reached will never be given for this warning.commercialVehicleRegulationsCommercial vehicle regulations for the administrative region after the border crossing. Contains access restrictions, speed limits, and drive/rest rules applicable to commercial vehicles. This field is only populated when crossing into a region with specific commercial vehicle regulations.
Implementation
@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
BorderCrossingWarning(this.id, this.distanceToBorderCrossingInMeters, this.type, this.administrativeRules, this.distanceType, this.commercialVehicleRegulations);