Class Stop
Represents an individual location where vehicles pick up or drop off passengers.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Stop : GTFSEntity
Properties
Code
Gets or sets short text or a number that uniquely identifies the stop for passengers. Stop codes are often used in phone-based transit information systems or printed on stop signage to make it easier for riders to get a stop schedule or real-time arrival information for a particular stop.
Declaration
public string Code { get; set; }
Property Value
System.String
|
Description
Gets or sets the description of a stop. Please provide useful, quality information. Do not simply duplicate the name of the stop.
Declaration
public string Description { get; set; }
Property Value
System.String
|
Id
Gets or sets an ID that uniquely identifies a stop or station. Multiple routes may use the same stop. The stop_id is dataset unique.
Declaration
public string Id { get; set; }
Property Value
System.String
|
Latitude
Gets or sets the latitude of a stop or station. The field value must be a valid WGS 84 latitude.
Declaration
public double Latitude { get; set; }
Property Value
System.Double
|
LevelId
Level of the location. The same level can be used by multiple unlinked stations.
Declaration
public string LevelId { get; set; }
Property Value
System.String
|
LocationType
Gets or sets the location field that identifies whether this stop represents a stop or station. If no location type is specified, or the location type is blank, stops are treated as regular stops. Stations may have different properties from stops when they are represented on a map or used in trip planning.
Declaration
public LocationType? LocationType { get; set; }
Property Value
System.Nullable<LocationType>
|
Longitude
Gets or sets the longitude of a stop or station. The field value must be a valid WGS 84 longitude value from -180 to 180.
Declaration
public double Longitude { get; set; }
Property Value
System.Double
|
Name
Gets or sets the name of a stop or station. Please use a name that people will understand in the local and tourist vernacular.
Declaration
public string Name { get; set; }
Property Value
System.String
|
ParentStation
Gets or sets the station associated with the stop. To use this field, a stop must also exist where this stop ID is assigned LocationType=Station.
Declaration
public string ParentStation { get; set; }
Property Value
System.String
|
PlatformCode
Gets or sets the platform code. It is optional. Do not include the platform terms (e.g. platform) itself. Instead only 'A' or '1'.
Declaration
public string PlatformCode { get; set; }
Property Value
System.String
|
Timezone
Gets or sets the timezone in which this stop or station is located. Please refer to Wikipedia List of Timezones for a list of valid values. If omitted, the stop should be assumed to be located in the timezone specified by agency_timezone in agency.txt.
Declaration
public string Timezone { get; set; }
Property Value
System.String
|
Url
Gets or set the URL of a web page about a particular stop. This should be different from the agency_url and the route_url fields. The value must be a fully qualified URL that includes http:// or https://, and any special characters in the URL must be correctly escaped.
Declaration
public string Url { get; set; }
Property Value
System.String
|
WheelchairBoarding
Gets or sets whether wheelchair boardings are possible from the specified stop or station. The field can have the following values:
Declaration
public string WheelchairBoarding { get; set; }
Property Value
System.String
|
Zone
Gets or sets the fare zone for a stop. Zone IDs are required if you want to provide fare information using fare rules. If this stop ID represents a station, the zone ID is ignored.
Declaration
public string Zone { 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(Stop, String)
Returns a new Stop object created from a previous stop object
Declaration
public static Stop From(Stop other, string newStopId = null)
Parameters
Stop
other
|
System.String
newStopId
|
Returns
Stop
|
GetHashCode()
Serves as a hash function.
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
IsTypeStation()
Returns true if the location type is station.
Declaration
public bool IsTypeStation()
Returns
System.Boolean
|
IsTypeStop()
Returns true the location type is stop.
Declaration
public bool IsTypeStop()
Returns
System.Boolean
|
ToString()
Returns a description of this stop.
Declaration
public override string ToString()
Returns
System.String
|