Package ai.nextbillion.maps.model
Class TransitLine
java.lang.Object
ai.nextbillion.maps.model.TransitLine
- All Implemented Interfaces:
java.io.Serializable
public class TransitLine
extends java.lang.Object
implements java.io.Serializable
The transit line used in a step.
See Transit Details for more detail.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description TransitAgency[]agenciesInformation about the operator(s) of this transit line.java.lang.StringcolorThe color commonly used in signage for this transit line.java.lang.StringiconThe URL for the icon associated with this transit line.java.lang.StringnameThe full name of this transit line.java.lang.StringshortNameThe short name of this transit line.java.lang.StringtextColorThe color of text commonly used for signage of this transit line.java.lang.StringurlThe URL for this transit line as provided by the transit agency.VehiclevehicleThe type of vehicle used on this transit line. -
Constructor Summary
Constructors Constructor Description TransitLine() -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()
-
Field Details
-
name
public java.lang.String nameThe full name of this transit line. E.g."7 Avenue Express". -
shortName
public java.lang.String shortNameThe short name of this transit line. This will normally be a line number, such as"M7"or"355". -
color
public java.lang.String colorThe color commonly used in signage for this transit line. The color will be specified as a hex string, such as"#FF0033". -
agencies
Information about the operator(s) of this transit line. -
url
public java.lang.String urlThe URL for this transit line as provided by the transit agency. -
icon
public java.lang.String iconThe URL for the icon associated with this transit line. -
textColor
public java.lang.String textColorThe color of text commonly used for signage of this transit line. The color will be specified as a hex string, such as"#FF0033". -
vehicle
The type of vehicle used on this transit line.
-
-
Constructor Details
-
TransitLine
public TransitLine()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-