Package ai.nextbillion.maps.model
Class Vehicle
java.lang.Object
ai.nextbillion.maps.model.Vehicle
- All Implemented Interfaces:
java.io.Serializable
public class Vehicle
extends java.lang.Object
implements java.io.Serializable
The vehicle used on a line.
See Transit details for more detail.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringiconThe URL for an icon associated with this vehicle type.java.lang.StringlocalIconThe URL for an icon based on the local transport signage.java.lang.StringnameThe name of the vehicle on this line.VehicleTypetypeThe type of vehicle that runs on this line. -
Constructor Summary
Constructors Constructor Description Vehicle() -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()
-
Field Details
-
name
public java.lang.String nameThe name of the vehicle on this line. E.g."Subway". -
type
The type of vehicle that runs on this line. See theVehicleTypedocumentation for a complete list of supported values. -
icon
public java.lang.String iconThe URL for an icon associated with this vehicle type. -
localIcon
public java.lang.String localIconThe URL for an icon based on the local transport signage.
-
-
Constructor Details
-
Vehicle
public Vehicle()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-