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

0

Use distanceBased for route type "shortest" and timeBased for route type "fastest" (backward compatibility)

distanceBased

1

Range unit is in meters

energyBased

3

Range unit is in Watt-hours (not currently supported for roundtrips)

timeBased

2

Range unit is in seconds