Skip to content
/ tranSEAt Public

A python package to play with public transport data from the city of Naples

License

Notifications You must be signed in to change notification settings

gcrbr/tranSEAt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tranSEAt

python 3.x

tranSEAt logo

A python package to get arrival times of buses and trains in the metropolitan city of Naples.

Installation

python3 setup.py install

Features

  • 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

Featured means of transport

ANM

Transport Available Live arrival times Calculated arrival times*
Linea 1
Bus
Funicolare centrale
Funicolare di Montesanto
Funicolare di Mergellina
Funicolare di Chiaia

EAV

Transport Available Live arrival times Calculated arrival times*
Cumana
Circumflegrea
Linea Arcobaleno/Metrocampania NordEst
Circumvesuviana

Trenitalia

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

Rendering the rail map

Rail map

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.

Notes

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])"`

About

A python package to play with public transport data from the city of Naples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages