Simple project for setting up a simple Digital Railway Twin with neo4j database.
GTFS stands for General Transit Feed Specification. It is a set of open standards that define formats for public transportation schedules and associated geographic information.
The GTFS-files is downloaded from Trafiklab.se (GTFS Sverige-2). The files are really large because they contains all public transportation in Sweden, both busses and trains. To reduce the filesize you could use the provided Jupyter Notebook (/notebooks/extract_trains.ipynb).
Contains all stations and their relationships in the nordic countries and Germany. It's downloaded from ERA
Includes all stations for Sweden, Norway, Denmark, Finland and Norway with properties like name, UIC-code, coordinates.
Contains sections between all stations with properties like length (km) between the stations.
- Run /queries/era.cypher
- Run /queries/gtfs.cypher
Before running the queries, you must have a neo4j-database. Note! The dataset is to lagre for AuraDB Free. You must reduce the filesize. There is a Jupyter notebook provided in /notebook/ folder that uses Pandas.
The Query folder contains cypher for inserting both ERA and GTFS-data. Just copy the cypher and paste it in to your neo4j-browser.
You can import dashbord.json into neodash for prebuilt views