Table of Contents

Class Vehicle

Namespace
GoogleMapsApi.Entities.Directions.Response
Assembly
GoogleMapsApi.dll
public class Vehicle
Inheritance
Vehicle
Inherited Members

Properties

Icon

Contains the URL for an icon associated with this vehicle type.

[JsonPropertyName("icon")]
public string? Icon { get; set; }

Property Value

string

LocalIcon

Contains the URL for a localized icon associated with this vehicle type.

[JsonPropertyName("local_icon")]
public string? LocalIcon { get; set; }

Property Value

string

Name

Contains the name of the vehicle on this line. eg. "Subway."

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

VehicleType

Contains the type of vehicle that runs on this line.

[JsonPropertyName("type")]
[JsonConverter(typeof(EnumMemberJsonConverter<VehicleType>))]
public VehicleType VehicleType { get; set; }

Property Value

VehicleType