Creates an ElectricBikeProfile with optional values.
Constructs an instance with sensible defaults if specific values are not provided. The defaults model a typical pedelec with no masses or auxiliary consumption specified.
Optionaloptions: {Configuration options
OptionalauxConsumptionDay?: numberAuxiliary power consumption during daytime in Watts. If 0, a default internal value may be used.
OptionalauxConsumptionNight?: numberAuxiliary power consumption during nighttime in Watts. If 0, a default internal value may be used.
OptionalbikeMass?: numberThe bike mass in kilograms. If 0, a default internal value may be used.
OptionalbikerMass?: numberThe rider mass in kilograms. If 0, a default internal value may be used.
OptionalignoreLegalRestrictions?: booleanWhen true, country-based legal restrictions related to e-bikes are ignored in routing.
OptionalplateNumber?: stringVehicle plate number (inherited from VehicleRegistration).
Optionaltype?: ElectricBikeTypeThe e-bike drivetrain type. Defaults to ElectricBikeType.pedelec.
Auxiliary power consumption during day in Watts.
If zero, a default internal value may be applied by routing logic.
Auxiliary power consumption during night in Watts.
If zero, a default internal value may be applied by routing logic.
Bike mass in kilograms.
If zero, a default internal value may be applied by routing logic.
Rider (biker) mass in kilograms.
If zero, a default internal value may be applied by routing logic.
Ignore country-based legal restrictions related to e-bikes.
When true, routing will not apply jurisdiction-specific constraints for e-bike classification.
The vehicle's registration plate number.
Ebike drivetrain type. Default is ElectricBikeType.pedelec.
Get hash code for use in maps/sets
ProtectedhashInternalSerializes this instance to a JSON-compatible map.
Used internally, not intended for direct use by consumers. The map structure may change without notice.
JSON-compatible map
StaticfromInternalDeserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
JSON-compatible map
A new ElectricBikeProfile instance
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.