Class TransitLine
Represents a single transit line.
Implements
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class TransitLine : IMessage<TransitLine>, IEquatable<TransitLine>, IDeepCloneable<TransitLine>, IBufferMessage, IMessage
Constructors
TransitLine()
Declaration
public TransitLine()
TransitLine(TransitLine)
Declaration
public TransitLine(TransitLine other)
Parameters
| Type | Name | Description |
|---|---|---|
| TransitLine | other |
Properties
BackgroundColor
The background color of the labels for this transit line in #RRGGBB hex format, e.g. #909CE1. This color can also be used for drawing shapes for this transit line.
Declaration
public string BackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DisplayName
The long name for this transit line (e.g. "Sunnydale local").
Declaration
public LocalizedText DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| LocalizedText |
Icon
Icon identifier for this particular line (e.g. subway lines in New York).
Declaration
public TransitIcon Icon { get; set; }
Property Value
| Type | Description |
|---|---|
| TransitIcon |
Id
The id of the transit line that can be used to uniquely identify the line among other transit lines in the same transit station. This identifier is not guaranteed to be stable across different responses.
Declaration
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ShortDisplayName
The short name for this transit line (e.g. "S2").
Declaration
public LocalizedText ShortDisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| LocalizedText |
TextColor
The text color of labels for this transit line in #RRGGBB hex format, e.g. #909CE1.
Declaration
public string TextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Url
The URL of a webpage with details about this line.
Declaration
public string Url { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
VehicleIcon
Icon identifier for this particular vehicle type.
Declaration
public TransitIcon VehicleIcon { get; set; }
Property Value
| Type | Description |
|---|---|
| TransitIcon |
VehicleType
The type of vehicle using this line.
Declaration
public TransitLine.Types.VehicleType VehicleType { get; set; }
Property Value
| Type | Description |
|---|---|
| TransitLine.Types.VehicleType |