Home > @magiclane/maps-sdk > RangeType
RangeType enum
Range type to define ranges in.
Unit type to define ranges in. Currently only used for the roundtrips feature, not the ranges (aka isochrones) feature.
Routing
Signature:
export declare enum RangeType Enumeration Members
Member | Value | Description |
|---|---|---|
defaultType |
| Use distanceBased for route type "shortest" and timeBased for route type "fastest" (backward compatibility) |
distanceBased |
| Range unit is in meters |
energyBased |
| Range unit is in Watt-hours (not currently supported for roundtrips) |
timeBased |
| Range unit is in seconds |