A python package to get arrival times of buses and trains in the metropolitan city of Naples.
python3 setup.py install
- Calculate arrival times of trains based on public data (frequency, speed, etc.)
- Obtain live arrival times of trains/buses from companies' API
- Draw maps of supported rail lines by using mplleaflet
Transport | Available | Live arrival times | Calculated arrival times* |
---|---|---|---|
Linea 1 | ✓ | ✓ | |
Bus | ✓ | ✓ | |
Funicolare centrale | ✓ | ✓ | |
Funicolare di Montesanto | ✓ | ✓ | |
Funicolare di Mergellina | ✓ | ✓ | |
Funicolare di Chiaia |
Transport | Available | Live arrival times | Calculated arrival times* |
---|---|---|---|
Cumana | ✓ | ✓ | ✓ |
Circumflegrea | ✓ | ✓ | ✓ |
Linea Arcobaleno/Metrocampania NordEst | ✓ | ✓ | ✓ |
Circumvesuviana |
Transport | Available | Live arrival times | Calculated arrival times* |
---|---|---|---|
Linea 2 | ✓ | ✓ | ✓ |
*: Many of those rail lines are so f***ed up that calculated times tend to be inaccurate most of the times
You can achieve this through mplleaflet; for this example in particular you can run the railmap.py
file from the examples
folder.
Please refer to the notes below to fix mplleaflet before running the example.
I am not affiliated in any way with any of the companies mentioned in this project.
mplleaflet is broken, you can either fix it manually or run the command below
sed -i '' 's/axis._gridOnMajor/axis._major_tick_kw['gridOn']/' `python3 -c "print([os:=__import__('os'),os.path.join(os.path.dirname(__import__('mplleaflet').__file__), 'mplexporter/utils.py')][1])"`