Class TransitDetails
- Namespace
- GoogleMapsApi.Entities.Directions.Response
- Assembly
- GoogleMapsApi.dll
public class TransitDetails
- Inheritance
-
TransitDetails
- Inherited Members
Properties
ArrivalStop
Contains information about the stop/station for this part of the trip
[JsonPropertyName("arrival_stop")]
public Stop? ArrivalStop { get; set; }
Property Value
ArrivalTime
Contain the arrival times for this leg of the journey
[JsonPropertyName("arrival_time")]
public Duration? ArrivalTime { get; set; }
Property Value
DepartureStop
Contains information about the stop/station for this part of the trip.
[JsonPropertyName("departure_stop")]
public Stop? DepartureStop { get; set; }
Property Value
DepartureTime
Contain the departure times for this leg of the journey
[JsonPropertyName("departure_time")]
public Duration? DepartureTime { get; set; }
Property Value
Headsign
Specifies the direction in which to travel on this line, as it is marked on the vehicle or at the departure stop. This will often be the terminus station.
[JsonPropertyName("headsign")]
public string? Headsign { get; set; }
Property Value
Headway
Specifies the expected number of seconds between departures from the same stop at this time. For example, with a headway value of 600, you would expect a ten minute wait if you should miss your bus.
[JsonPropertyName("headway")]
public int Headway { get; set; }
Property Value
Lines
Contains information about the transit line used in this step.
[JsonPropertyName("line")]
public Line? Lines { get; set; }
Property Value
NumberOfStops
Contains the number of stops in this step, counting the arrival stop, but not the departure stop. For example, if your directions involve leaving from Stop A, passing through stops B and C, and arriving at stop D, num_stops will return 3.
[JsonPropertyName("num_stops")]
public int NumberOfStops { get; set; }