BorderCrossingWarning class

A border crossing.

The main fields describing the border crossing are BorderCrossingWarning.type specifying whether the border crossing is given for a country border or for a state border and BorderCrossingWarning.countryCode which should be present at all times, regardless if the warning is a country border or a state border. A border crossing must contain a known BorderCrossingWarning.type and a BorderCrossingWarning.countryCode. The BorderCrossingWarning.stateCode is optional. Use BorderCrossingWarningListener to get notifications about upcoming country or state border crossings.

Constructors

BorderCrossingWarning(double distanceToBorderCrossingInMeters, BorderCrossingType type, AdministrativeRules administrativeRules, DistanceType distanceType)

Properties

administrativeRules AdministrativeRules
The 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.
getter/setter pair
countryCode CountryCode
Country code for the country after the border crossing. It can be the same as the current country if the border crossing warning is given for a state border crossing.
getter/setter pair
distanceToBorderCrossingInMeters ↔ double
Distance to the border crossing in meters.
getter/setter pair
distanceType DistanceType
The 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.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speedLimits GeneralVehicleSpeedLimits
The general speed limits in the country / state after border crossing.
getter/setter pair
stateCode ↔ String?
The state code after the border crossing. 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 for countries without states or countries in which the states have very similar regulations (e.g. for Germany there will be no state borders).
getter/setter pair
type BorderCrossingType
Type of border crossing.
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.