Class TransitTransport

java.lang.Object
com.here.sdk.routing.TransitTransport

public final class TransitTransport extends Object

Holds all the transit transport information.

  • Field Details

    • mode

      @NonNull public TransitMode mode

      Transit mode of transport in the route.

    • name

      @Nullable public String name

      Transit line name.

    • headsign

      @Nullable public String headsign

      Transit line headsign.

    • category

      @Nullable public String category

      Human readable transport category (such as Bus, Gondola, Tram, Train, ...)

    • color

      @Nullable public Color color

      Color of the transport polyline and background for the transport name.

    • textColor

      @Nullable public Color textColor

      Color of the transport name.

  • Constructor Details

    • TransitTransport

      public TransitTransport(@NonNull TransitMode mode, @Nullable String name, @Nullable String headsign, @Nullable String category, @Nullable Color color, @Nullable Color textColor)

      Creates a new instance.

      Parameters:
      mode -

      Transit mode of transport in the route.

      name -

      Transit line name.

      headsign -

      Transit line headsign.

      category -

      Human readable transport category (such as Bus, Gondola, Tram, Train, ...)

      color -

      Color of the transport polyline and background for the transport name.

      textColor -

      Color of the transport name.

  • Method Details