TransitTransport (API Reference)
Package com.here.sdk.routing
Class TransitTransport
java.lang.Object
com.here.sdk.routing.TransitTransport
Holds all the transit transport information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionHuman readable transport category (such as Bus, Gondola, Tram, Train, ...)Color of the transport polyline and background for the transport name.Transit line headsign.Transit mode of transport in the route.Transit line name.Color of the transport name. -
Constructor Summary
ConstructorsConstructorDescriptionTransitTransport(TransitMode mode, String name, String headsign, String category, Color color, Color textColor) Creates a new instance. -
Method Summary
-
Field Details
-
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.
-
-
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