Home > @magiclane/maps-sdk > RoutePreferences > vehicleRegistration

RoutePreferences.vehicleRegistration property

Returns the vehicle registration profile for the current transport mode.

Extracts the relevant vehicle profile (CarProfile, TruckProfile, or ElectricBikeProfile) based on the selected . Returns null for pedestrian, public, and shared vehicle modes or when no profile is configured.

Signature:

get vehicleRegistration(): VehicleRegistration | null;