google-maps-documentation

TransitLine interface

google.maps.TransitLine interface

Information about the transit line that operates this transit step.

Properties
agencies
Type:  Array<TransitAgency>
The transit agency that operates this transit line.
color
Type:  string
The color commonly used in signage for this transit line, represented as a hex string.
icon
Type:  string
The URL for an icon associated with this line.
name
Type:  string
The full name of this transit line, e.g. "8 Avenue Local".
short_name
Type:  string
The short name of this transit line, e.g. "E".
text_color
Type:  string
The text color commonly used in signage for this transit line, represented as a hex string.
url
Type:  string
The agency's URL which is specific to this transit line.
vehicle
The type of vehicle used, e.g. train or bus.