Struct gtfs_structures::Route
source · pub struct Route {
pub id: String,
pub short_name: Option<String>,
pub long_name: Option<String>,
pub desc: Option<String>,
pub route_type: RouteType,
pub url: Option<String>,
pub agency_id: Option<String>,
pub order: Option<u32>,
pub color: RGB8,
pub text_color: RGB8,
pub continuous_pickup: ContinuousPickupDropOff,
pub continuous_drop_off: ContinuousPickupDropOff,
}
Expand description
A route is a commercial line (there can be various stop sequences for a same line). See https://gtfs.org/reference/static/#routestxt
Fields§
§id: String
Unique technical (not for the traveller) identifier for the route
short_name: Option<String>
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
long_name: Option<String>
Full name of a route. This name is generally more descriptive than the Route::short_name] and often includes the route’s destination or stop
desc: Option<String>
Description of a route that provides useful, quality information
route_type: RouteType
Indicates the type of transportation used on a route
url: Option<String>
URL of a web page about the particular route
agency_id: Option<String>
Agency for the specified route
order: Option<u32>
Orders the routes in a way which is ideal for presentation to customers. Routes with smaller route_sort_order values should be displayed first.
color: RGB8
Route color designation that matches public facing material
text_color: RGB8
Legible color to use for text drawn against a background of [Route::route_color]
continuous_pickup: ContinuousPickupDropOff
Indicates whether a rider can board the transit vehicle anywhere along the vehicle’s travel path
continuous_drop_off: ContinuousPickupDropOff
Indicates whether a rider can alight from the transit vehicle at any point along the vehicle’s travel path