Class TransportThread

Warning

This feature is available in the Full MapKit SDK version

Package world.mappable.mapkit.transport.masstransit

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,
                @Nullable TravelEstimation estimation,
                @NonNull java.util.List<TransportStop> stops,
                @NonNull Polyline geometry)

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.

synchronized TravelEstimation

getEstimation()
Time estimation for transport thread.

synchronized java.util.List<TransportStop>

getStops()
Collection of stops for the section.

synchronized Polyline

getGeometry()
Transport thread geometry.

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,
                @Nullable TravelEstimation estimation,
                @NonNull java.util.List<TransportStop> stops,
                @NonNull Polyline geometry)


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.


getEstimation

@Nullable
TravelEstimation getEstimation()

Time estimation for transport thread.

Optional field, can be null.


getStops

@NonNull
java.util.List<TransportStop> getStops()

Collection of stops for the section.

The first stop in the collection is the stop for boarding the transport, and the last stop in the collection is the stop for exiting the transport.


getGeometry

@NonNull
Polyline getGeometry()

Transport thread geometry.


serialize

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


getNativeName

java.lang.String getNativeName()