Class TransitTransport
Package com.here.sdk.routing
Class TransitTransport
- java.lang.Object
-
- com.here.sdk.routing.TransitTransport
-
public final class TransitTransport extends java.lang.ObjectHolds all the transit transport information.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcategoryHuman readable transport category (such as Bus, Gondola, Tram, Train, ...)ColorcolorColor of the transport polyline and background for the transport name.java.lang.StringheadsignTransit line headsign.TransitModemodeTransit mode of transport in the route.java.lang.StringnameTransit line name.ColortextColorColor of the transport name.
-
Constructor Summary
Constructors Constructor Description TransitTransport(TransitMode mode, java.lang.String name, java.lang.String headsign, java.lang.String category, Color color, Color textColor)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
mode
@NonNull public TransitMode mode
Transit mode of transport in the route.
-
name
@Nullable public java.lang.String name
Transit line name.
-
headsign
@Nullable public java.lang.String headsign
Transit line headsign.
-
category
@Nullable public java.lang.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 Detail
-
TransitTransport
public TransitTransport(@NonNull TransitMode mode, @Nullable java.lang.String name, @Nullable java.lang.String headsign, @Nullable java.lang.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.
-
-