MapKit Mobile SDK

Warning

This feature is available in the Full MapKit version.

Package world.mappable.mapkit.directions.driving

Class JamSegment

java.lang.Object
    ↳ world.mappable.mapkit.directions.driving.JamSegment

All Superinterfaces:

Serializable

class JamSegment implements Serializable

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

Summary

Constructors

Signature and Description

JamSegment(@NonNull JamType jamType,
           double speed)

JamSegment()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

JamType

getJamType()
The type of the traffic jam.

double

getSpeed()
The speed at which traffic is moving.

void

serialize(Archive archive)

Constuctors

JamSegment

JamSegment(@NonNull JamType jamType,
           double speed)


JamSegment

JamSegment()

Use constructor with parameters in your code. This one is for bindings only!


Methods

getJamType

@NonNull
JamType getJamType()

The type of the traffic jam.


getSpeed

double getSpeed()

The speed at which traffic is moving.


serialize

@Override
void serialize(Archive archive)