Home > @magiclane/maps-sdk > ElectricBikeProfile
ElectricBikeProfile class
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.
Routing
Signature:
export declare class ElectricBikeProfile extends VehicleRegistration Extends: VehicleRegistration
Constructors
Constructor | Modifiers | Description |
|---|---|---|
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. |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
number | Auxiliary power consumption during day in Watts. If zero, a default internal value may be applied by routing logic. | ||
number | Auxiliary power consumption during night in Watts. If zero, a default internal value may be applied by routing logic. | ||
number | Bike mass in kilograms. If zero, a default internal value may be applied by routing logic. | ||
number | Rider (biker) mass in kilograms. If zero, a default internal value may be applied by routing logic. | ||
boolean | Ignore country-based legal restrictions related to e-bikes. When true, routing will not apply jurisdiction-specific constraints for e-bike classification. | ||
Ebike drivetrain type. Default is ElectricBikeType.pedelec. |
Methods
Method | Modifiers | Description |
|---|---|---|
Check equality with another ElectricBikeProfile | ||
Get hash code for use in maps/sets |