Class Trip
Represents a trip. A trip is a sequence of two or more stops that occurs at specific time.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Trip : GTFSEntity
Properties
AccessibilityType
Gets or sets accessibility information for the trip
Declaration
public WheelchairAccessibilityType? AccessibilityType { get; set; }
Property Value
System.Nullable<WheelchairAccessibilityType>
|
BlockId
Gets or sets the block to which the trip belongs. A block consists of two or more sequential trips made using the same vehicle, where a passenger can transfer from one trip to the next just by staying in the vehicle. The block_id must be referenced by two or more trips in trips.txt.
Declaration
public string BlockId { get; set; }
Property Value
System.String
|
Direction
Gets or sets the direction of travel for a trip. Use this field to distinguish between bi-directional trips with the same route_id. This field is not used in routing; it provides a way to separate trips by direction when publishing time tables. You can specify names for each direction with the trip_headsign field.
Declaration
public DirectionType? Direction { get; set; }
Property Value
System.Nullable<DirectionType>
|
Headsign
Gets or sets the text that appears on a sign that identifies the trip's destination to passengers. Use this field to distinguish between different patterns of service in the same route. If the headsign changes during a trip, you can override the trip_headsign by specifying values for the the stop_headsign field in stop_times.txt.
Declaration
public string Headsign { get; set; }
Property Value
System.String
|
Id
Gets or sets an ID that identifies a trip.
Declaration
public string Id { get; set; }
Property Value
System.String
|
RouteId
Gets or sets a route.
Declaration
public string RouteId { get; set; }
Property Value
System.String
|
ServiceId
Gets or sets an ID that uniquely identifies a set of dates when service is available for one or more routes. This value is referenced from the Calendar or CalendarDates entity.
Declaration
public string ServiceId { get; set; }
Property Value
System.String
|
ShapeId
Gets or sets a shape for the trip. This value is referenced from the shapes.txt file. The shapes.txt file allows you to define how a line should be drawn on the map to represent a trip.
Declaration
public string ShapeId { get; set; }
Property Value
System.String
|
ShortName
Gets or sets the text that appears in schedules and sign boards to identify the trip to passengers, for example, to identify train numbers for commuter rail trips. If riders do not commonly rely on trip names, please leave this field blank.
Declaration
public string ShortName { get; set; }
Property Value
System.String
|
Methods
Equals(Object)
Returns true if the given object contains the same data.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
From(Trip)
Returns a new trip given another trip object
Declaration
public static Trip From(Trip trip)
Parameters
Trip
trip
|
Returns
Trip
|
GetHashCode()
Serves as a hash function.
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
ToString()
Returns a description of this trip.
Declaration
public override string ToString()
Returns
System.String
|