Home > @magiclane/maps-sdk > RoutePreferences > (constructor)
RoutePreferences.(constructor)
Creates a new set of routing preferences used to customize how routes are calculated.
Can be called in two ways for backward compatibility: - new RoutePreferences(id) - Internal constructor with pointer ID - new RoutePreferences(options) - Public constructor with configuration options
Signature:
constructor(idOrOptions?: any);Parameters
Parameter | Type | Description |
|---|---|---|
idOrOptions | any | (Optional) Either a pointer ID (string/number, internal use) or configuration options object |