Class JamSegment

com.yandex.mapkit.directions.driving

java.lang.Object ⇽ JamSegment

public class JamSegment

A segment of a traffic jam that has specific traffic conditions.

Constructors

JamSegment(@NonNull JamType jamType, double speed)
JamSegment()

Use constructor with parameters in your code.

Methods

JamType getJamType()

The type of the traffic jam.

double getSpeed()

The speed at which traffic is moving.

void serialize(Archive archive)

Constructor Detail

JamSegment

public JamSegment (@NonNull JamType jamType, double speed)

JamSegment

public JamSegment ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getJamType

public JamType getJamType ()

The type of the traffic jam.

getSpeed

public double getSpeed ()

The speed at which traffic is moving.

serialize

public void serialize (Archive archive)