-
Notifications
You must be signed in to change notification settings - Fork 9
2. Setup a new route
After the extraction into the sqlite db you can setup your routes. GTFS2 uses routes to collect start/end stations from the source, this removes the need to find their id manually However, all depends on the GTFS data providers where some try to be complete and concise, others may provide only abreviations
IMPORTANT>>>>
Even though you select a route based on a specific bus/tram/metro-line, GTFS2 will only use the start- and end- stations. This will allow to identify other means of public transport that serve the same start- and end-stations.
<<<<IMPORTANT
Information: with the setup of the first route for fresh GTFS dataset, the app. will add indexes to the DB and this may take time too. Next routes will be faster
Note: whilst the data is being extracted, the source will become visible for selection but it will not allow you to continue. This to prevent disrupting multiple processes on the same DB
The next screen allows to select different ways to setup your routes.
- All except trains: the next screen will allow you to select stops from the data as provided by your transport co.
- Trains: the next screen allows to manually enter a departure and arrival city.
Why this option? Train stations often show multiple stops, so one has to setup each start/end stop correctly which is a tedious and error-prone activity as stops may not match. By allowing to select 'city' as a start and end, all stops will be queried in one go, see Trains
In this case the aim is to setup a bus-route
Depending (yes, again...depending) on the gtfs provider, outbound/return may not be in line with the title of the route, you may need to try them out both. Select the start and endpoints of your interest
IMPORTANT Even though you select a route based on a specific bus/tram/metro-line, GTFS2 will only use the start- and end- stations. This will allow to identify other means of public transport that serve the same start- and end-stations.
You can tickbox 'include tomorrow' if you want the entity to include also tomorrow's schedule
Repeating information: with the setup of the first route for fresh GTFS dataset, the app. will add indexes to the DB and this may take time too. Next routes will be faster
You can add a area (optional)
In Developer Tools > States you can see the new entity
Example content of the entity:
arrival: "2023-12-17T06:45:00+00:00"
day: today
first: true
last: false
offset: 0
agency_agency_id: busazur
agency_agency_name: Palmbus
agency_agency_url: https://www.palmbus.fr
agency_agency_timezone: Europe/Paris
agency_agency_lang: fr
agency_agency_phone: "0825825599"
agency_agency_fare_url: https://www.palmbus.fr/fr/acheter-son-titre/35
agency_agency_email: [email protected]
origin_station_stop_id: GSNF0R
origin_station_stop_code: None
origin_station_stop_name: Gare SNCF de Cannes
origin_station_stop_desc: None
origin_station_stop_lat: "43.553645169596614"
origin_station_stop_lon: "7.019986063282887"
origin_station_zone_id: None
origin_station_stop_url: None
origin_station_location_type: "0"
origin_station_parent_station: Station Gare SNCF de Cannes
origin_station_stop_timezone: None
origin_station_wheelchair_boarding: "1"
origin_station_platform_code: None
origin_station_location_type_name: Station
origin_station_wheelchair_boarding_available: true
destination_station_stop_id: MSCE0A
destination_station_stop_code: None
destination_station_stop_name: Mouans-Sartoux Centre
destination_station_stop_desc: None
destination_station_stop_lat: "43.618942880622285"
destination_station_stop_lon: "6.971753137085002"
destination_station_zone_id: None
destination_station_stop_url: None
destination_station_location_type: "0"
destination_station_parent_station: None
destination_station_stop_timezone: None
destination_station_wheelchair_boarding: "1"
destination_station_platform_code: None
destination_station_location_type_name: Station
destination_station_wheelchair_boarding_available: true
route_route_id: B
route_agency_id: busazur
route_route_short_name: B
route_route_long_name: Mouans Sartoux Centre - Lycée Carnot - Gare SNCF de Cannes
route_route_desc: None
route_route_type: "3"
route_route_url: None
route_route_color: 0277bd
route_route_text_color: FFFFFF
route_type_name: Bus
trip_route_id: B
trip_service_id: 115_SCO_DIM_V12
trip_trip_id: "1115644423119"
trip_trip_headsign: Mouans-Sartoux Centre
trip_trip_short_name: None
trip_direction_id: "0"
trip_block_id: None
trip_shape_id: "55"
trip_wheelchair_accessible: None
trip_bikes_allowed: "2"
trip_bikes_allowed_state: false
trip_wheelchair_access_available: unknown
origin_stop_arrival_time: "2023-12-17T06:15:00+00:00"
origin_stop_departure_time: "2023-12-17T06:15:00+00:00"
origin_stop_drop_off_type: 0
origin_stop_pickup_type: 0
origin_stop_shape_dist_traveled: 0
origin_stop_sequence: 1
origin_stop_drop_off_type_state: Regular
origin_stop_pickup_type_state: Regular
origin_stop_timepoint_exact: true
destination_stop_arrival_time: "2023-12-17T06:45:00+00:00"
destination_stop_departure_time: "2023-12-17T06:45:00+00:00"
destination_stop_drop_off_type: 0
destination_stop_pickup_type: 0
destination_stop_shape_dist_traveled: 9.971
destination_stop_sequence: 29
destination_stop_drop_off_type_state: Regular
destination_stop_pickup_type_state: Regular
destination_stop_timepoint_exact: true
next_departures:
- "2023-12-17T06:15:00+00:00"
- "2023-12-17T06:43:00+00:00"
- "2023-12-17T07:11:00+00:00"
- "2023-12-17T07:39:00+00:00"
- "2023-12-17T08:07:00+00:00"
- "2023-12-17T08:35:00+00:00"
- "2023-12-17T09:03:00+00:00"
- "2023-12-17T09:31:00+00:00"
- "2023-12-17T09:59:00+00:00"
- "2023-12-17T10:27:00+00:00"
next_departures_lines:
- >-
2023-12-17T06:15:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T06:43:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T07:11:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T07:39:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T08:07:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T08:35:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T09:03:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T09:31:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T09:59:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
- >-
2023-12-17T10:27:00+00:00 (Mouans Sartoux Centre - Lycée Carnot - Gare SNCF
de Cannes)
next_departures_headsign:
- 2023-12-17T06:15:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T06:43:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T07:11:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T07:39:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T08:07:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T08:35:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T09:03:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T09:31:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T09:59:00+00:00 (Mouans-Sartoux Centre)
- 2023-12-17T10:27:00+00:00 (Mouans-Sartoux Centre)
gtfs_updated_at: "2023-12-17T06:13:17.676488+00:00"
origin_stop_alert: no info
destination_stop_alert: no info
info_realtime: No realtime information
attribution: Palmbus
device_class: timestamp
icon: mdi:bus
friendly_name: Palmbus B to Mouans
This concludes the setup of the static data, you can optinally Configure options as adding realtime