Skip to content

Commit

Permalink
Made changes to Durres line of Plepa to merge services in one html page
Browse files Browse the repository at this point in the history
  • Loading branch information
pomodoren committed Jan 6, 2024
1 parent 23c61a5 commit bdd0d9c
Show file tree
Hide file tree
Showing 15 changed files with 1,801 additions and 1,442 deletions.
34 changes: 4 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# osm-generated-pt-info

<br>

> **VISIT WEBSITE**: https://pomodoren.github.io/osm-generated-pt-info/
# freeBus

<br>

Expand All @@ -12,36 +8,14 @@

<br>

### Tools used

- https://github.com/mapanica/easy-timetable-generator <-- decide on frequencies
- https://github.com/Jungle-Bus/osm2gtfs <-- generate trips
- https://gtfs-validator.mobilitydata.org/ <-- get report on GTFS validity
- https://github.com/blinktaginc/gtfs-to-html <-- render schedules and map - https://run.gtfstohtml.com/

<br>

### Notes on possible issues

- Make sure OSM data is correct:
- Order of Stations is correct
- From and To is same to From and To that you have defined in the frequencies table
- Via is defined (in case no error comes up - might be related to this)
- Make sure you have cleaned up after error in osm2gtfs
- the data is cached under data/ - `rm -rf data/al_*`
- python3 tools/unpickling.py - for debugging routes built


<br>

### Sneak Peek



| Example| Example per line |
| --|--|
| ![](docs/example.png) | ![](docs/example-line.png) |
| **Tirana - L2** | **Prishtina - L1A** |
| ![](docs/tirana.png) | ![](docs/prishtina.png) |

| ![](docs/example.png) | Example City Network|
| <xx style="float:right">Using this in Prishtina<br>for the Airport line</xx>| ![](docs/prishtina.png) |
|![](docs/tirana.png) | Using this in Tirana <br> for one line |

10 changes: 5 additions & 5 deletions data/durres/config/gtfs-to-html.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"daysShortStrings": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
"daysStrings": ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"],
"defaultOrientation": "vertical",
"effectiveDate": "July 8, 2016",
"effectiveDate": "Janar 2024",
"interpolatedStopSymbol": "",
"interpolatedStopText": "Estimated time of arrival",
"linkStopUrls": true,
"mapboxAccessToken": "pk.eyJ1IjoicG9tb2RvcmVuIiwiYSI6ImNscXNxbHgzNjRkbnoycXJxODB6b2F2ZTYifQ.yepzIdraeKMJ0QeCPKoWAA",
"menuType": "radio",
"menuType": "simple",
"noDropoffSymbol": "",
"noDropoffText": "No drop off available",
"noHead": false,
Expand All @@ -35,16 +35,16 @@
"serviceProvidedOnText": "Service provided on",
"showArrivalOnDifference": 0.2,
"showMap": true,
"showOnlyTimepoint": true,
"showOnlyTimepoint": false,
"showRouteTitle": true,
"showStopCity": false,
"showStopDescription": false,
"showStoptimesForRequestStops": true,
"showStoptimesForRequestStops": false,
"skipImport": false,
"sortingAlgorithm": "common",
"templatePath": "views/default",
"timeFormat": "h:mma",
"useParentStation": true,
"useParentStation": false,
"verbose": true,
"zipOutput": false
}
6 changes: 3 additions & 3 deletions data/durres/frequencies.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ref,from,to,via,intermediates,opening-hours,exceptions,duration,intermediate-durations,frequency
L1,Plepa,Sheshi Pranvera,,Posta;Ura e Dajlanit,Mo-Sa 05:40-18:20;Mo-Sa 18:50,,35,10;20,60
L1,Plepa,Sheshi Pranvera,,Posta;Ura e Dajlanit,Su 06:20; Su 07:00-17:00;Su 17:40,,35,10;20,60
L1,Sheshi Pranvera,Plepa,,Ura e Dajlanit;Posta,Mo-Sa 05:40-18:20;Mo-Sa 18:50,,35,10;20,60
L1,Sheshi Pranvera,Plepa,,Ura e Dajlanit;Posta,Su 06:20; Su 07:00-17:00;Su 17:40,,35,10;20,60
L1,Sheshi Pranvera,Plepa,,Ura e Dajlanit;Posta,Su 06:20; Su 07:00-17:00;Su 17:40,,35,10;20,60
L1,Plepa,Sheshi Pranvera,,Posta;Ura e Dajlanit,Mo-Sa 06:40-18:20;Mo-Sa 18:50,,35,10;20,45
L1,Plepa,Sheshi Pranvera,,Posta;Ura e Dajlanit,Su 07:20; Su 07:00-17:00;Su 17:40,,35,10;20,45
Loading

0 comments on commit bdd0d9c

Please sign in to comment.