ElectricBikeProfile class Routes & Navigation

Electric bike profile containing e-bike configuration and rider/vehicle parameters.

Holds electric bike specific routing parameters used by the routing engine to estimate energy consumption, apply legal constraints, and tune route generation for e-bike capabilities.

See also:

Inheritance

Constructors

ElectricBikeProfile({ElectricBikeType type = ElectricBikeType.pedelec, double bikeMass = 0.0, double bikerMass = 0.0, double auxConsumptionDay = 0.0, double auxConsumptionNight = 0.0, bool ignoreLegalRestrictions = false, String plateNumber = ''})
Creates an ElectricBikeProfile with optional values.
ElectricBikeProfile.fromJson(Map<String, dynamic> json)
Deserializes a JSON-compatible map to create an instance.
factory

Properties

auxConsumptionDay double
Auxiliary power consumption during day in Watts.
getter/setter pair
auxConsumptionNight double
Auxiliary power consumption during night in Watts.
getter/setter pair
bikeMass double
Bike mass in kilograms.
getter/setter pair
bikerMass double
Rider (biker) mass in kilograms.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
ignoreLegalRestrictions bool
Ignore country-based legal restrictions related to e-bikes.
getter/setter pair
plateNumber String
Vehicle plate number.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ElectricBikeType
Ebike drivetrain type. Default is ElectricBikeType.pedelec.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this instance to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant ElectricBikeProfile other) bool
The equality operator.
override