Home > @magiclane/maps-sdk > RoundTripParameters

RoundTripParameters class

Round trip parameters

Routing

Signature:

export declare class RoundTripParameters 

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Creates a new instance of RoundTripParameters.

Properties

Property

Modifiers

Type

Description

randomSeed

number

If set to 0, generate a random route; any other number, use it as the seed for deterministic randomness.

range

number

Approximate desired size of the roundtrip; meaning is the same as for the route ranges feature.

rangeType

RangeType

The units in which the range is expressed. Default is dependent on the route type like for Ranges. Other options are distance in meters and time in seconds.

Methods

Method

Modifiers

Description

equals(other)

Check equality with another RoundTripParameters

hashCode()

Get hash code for use in maps/sets