Home > @magiclane/maps-sdk > TimeDistance

TimeDistance class

Time distance representation based on meters and seconds.

Signature:

export declare class TimeDistance 

Constructors

Constructor

Modifiers

Description

(constructor)({ unrestrictedTimeS, restrictedTimeS, unrestrictedDistanceM, restrictedDistanceM, ndBeginEndRatio, }, input)

Constructs a new instance of the TimeDistance class

Properties

Property

Modifiers

Type

Description

hasRestrictedBeginEndDifferentiation

readonly

boolean

isEmpty

readonly

boolean

isNotEmpty

readonly

boolean

ndBeginEndRatio

number

restrictedDistanceAtBegin

readonly

number

restrictedDistanceAtEnd

readonly

number

restrictedDistanceM

number

restrictedTimeAtBegin

readonly

number

restrictedTimeAtEnd

readonly

number

restrictedTimeS

number

totalDistanceM

readonly

number

totalTimeS

readonly

number

unrestrictedDistanceM

number

unrestrictedTimeS

number

Methods

Method

Modifiers

Description

add(other)

equals(other)

fromJson(json)

static

hashCode()

toJson()