Class Route
Represents a transit route. A route is a group of trips that are displayed to riders as a single service.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Route : GTFSEntity
Properties
AgencyId
Gets or sets an agency for the specified route. Use this field when you are providing data for routes from more than one agency.
Declaration
public string AgencyId { get; set; }
Property Value
System.String
|
Color
Gets or sets a color that corresponds to a route. The color must be provided as a six-character hexadecimal number, for example, 00FFFF. If no color is specified, the default route color is white (FFFFFF).
Declaration
public int ? Color { get; set; }
Property Value
System.Nullable<System.Int32>
|
Description
Gets or sets the description of a route. Please provide useful, quality information. Do not simply duplicate the name of the route. For example, "A trains operate between Inwood-207 St, Manhattan and Far Rockaway-Mott Avenue, Queens at all times. Also from about 6AM until about midnight, additional A trains operate between Inwood-207 St and Lefferts Boulevard (trains typically alternate between Lefferts Blvd and Far Rockaway)."
Declaration
public string Description { get; set; }
Property Value
System.String
|
Id
Gets or sets an ID that uniquely identifies a route. The route_id is dataset unique.
Declaration
public string Id { get; set; }
Property Value
System.String
|
LongName
Gets or sets the full name of a route. This name is generally more descriptive than the route_short_name and will often include the route's destination or stop. At least one of route_short_name or route_long_name must be specified, or potentially both if appropriate. If the route does not have a long name, please specify a route_short_name and use an empty string as the value for this field.
Declaration
public string LongName { get; set; }
Property Value
System.String
|
ShortName
Gets or sets the short name of a route. This will often be a short, abstract identifier like "32", "100X", or "Green" that riders use to identify a route, but which doesn't give any indication of what places the route serves. At least one of route_short_name or route_long_name must be specified, or potentially both if appropriate. If the route does not have a short name, please specify a route_long_name and use an empty string as the value for this field.
Declaration
public string ShortName { get; set; }
Property Value
System.String
|
TextColor
Gets or sets a legible color to use for text drawn against a background of route_color. The color must be provided as a six-character hexadecimal number, for example, FFD700. If no color is specified, the default text color is black (000000).
Declaration
public int ? TextColor { get; set; }
Property Value
System.Nullable<System.Int32>
|
Type
Gets or sets the type of transportation used on this route.
Declaration
public RouteTypeExtended Type { get; set; }
Property Value
RouteTypeExtended
|
Url
Gets or sets the URL of a web page about that particular route. This should be different from the agency_url. 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
|
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(Route)
Returns a new route given another route object
Declaration
public static Route From(Route route)
Parameters
Route
route
|
Returns
Route
|
GetHashCode()
Serves as a hash function.
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
ToString()
Returns a description of this route.
Declaration
public override string ToString()
Returns
System.String
|