MapKit Mobile SDK

Warning

This feature is available in the Full MapKit version.

Package world.mappable.mapkit.transport.masstransit

Class TransportThread

java.lang.Object
    ↳ world.mappable.mapkit.transport.masstransit.Transport.TransportThread

static class TransportThread implements Serializable

mapkit.transport.masstransit.Thread specific properties of a mass transit ride section of a mapkit.transport.masstransit.Route.

Summary

Constructors

Signature and Description

TransportThread()
Use constructor with parameters in your code.

TransportThread(@NonNull Thread thread,
                boolean isRecommended,
                @NonNull java.util.List<TransportThreadAlert> alerts,
                @Nullable Stop alternateDepartureStop,
                @Nullable BoardingOptions boardingOptions)

Methods

Type and modifiers

Method and Description

synchronized Thread

getThread()
Mass transit thread.

synchronized boolean

getIsRecommended()
Indicates that the mass transit router considers this thread the best one for the current section of the constucted route.

synchronized java.util.List<TransportThreadAlert>

getAlerts()
Collection of important annotations for the section.

synchronized Stop

getAlternateDepartureStop()
If alternateDepartureStop is specified, it specifies the departure location for this particular Thread instead of the first Stop of the Section.

synchronized BoardingOptions

getBoardingOptions()
Recommended underground boarding options for this section.

void

serialize(world.mappable.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

TransportThread

TransportThread()

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


TransportThread

TransportThread(@NonNull Thread thread,
                boolean isRecommended,
                @NonNull java.util.List<TransportThreadAlert> alerts,
                @Nullable Stop alternateDepartureStop,
                @Nullable BoardingOptions boardingOptions)


Methods

getThread

@NonNull
Thread getThread()

Mass transit thread.


getIsRecommended

boolean getIsRecommended()

Indicates that the mass transit router considers this thread the best one for the current section of the constucted route.


getAlerts

@NonNull
java.util.List<TransportThreadAlert> getAlerts()

Collection of important annotations for the section.


getAlternateDepartureStop

@Nullable
Stop getAlternateDepartureStop()

If alternateDepartureStop is specified, it specifies the departure location for this particular Thread instead of the first Stop of the Section. Optional field, can be null.


getBoardingOptions

@Nullable
BoardingOptions getBoardingOptions()

Recommended underground boarding options for this section. Optional field, can be null.


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()