Interactive tool for generating geographically accurate definitions of routes of the Integrated Transport System of the South Moravian Region created for the company KORDIS JMK, a.s.
The tool consists of two parts:
- Map Editor - Allows to manage, import and export the transport networks
- Line Router - Based on imported data about the transit system structure, it generates geographically accurate complex route definitions for individual lines. It also allows modification of the structure of the lines themselves.
- In the
api/.env
file, set theDB_USER
andDB_PASSWORD
variables. If you want to use authentication, also set theEDITOR_USERS
andROUTER_USERS
variables. - The tool can be run in 4 modes:
make fullAuth
- Authentication is enabled for both map editing and line routermake noAuth
- Authentication is disabledmake editorAuth
- Authentication is enabled only for the map editor, line router is accessible without loginmake routerAuth
- Authentication is enabled only for line router, the map editor is accessible without logging in
- After build and startup, the application runs on
http://your_url:9001/lineShaper
- Application can be stopped by
make stop
- If you want to run application on background, just add
Prod
to any configuration (e.make fullAuthProd
)
The Map Editor works with 3 separate transport networks, which can be created directly in the editor or imported from special .geojson files, examples of which are contained in the exampleFiles/editor
folder.
The Line Router works with two types of files:
- Structural files containing a description of the transport system. Attention! Due to the nature of internal Kordis system, provided example files
Zastavky.txt
,LineOrder.csv
andLineLabels.csv
has atypical encodingiso-8859-2
. Fell free to use your files with standardUTF-8
encoding, but be careful about the files structure itself. TheZastavky.txt
file contains the stops of the public transport system, theLineOrder.csv
file contains the structure of the lines, and the optionalLineLabels.csv
file contains pairs of codes and actual labels for each line. Examples of all files are contained in theexampleFiles/router
folder. - In addition to the system structure, the line router operates within the line structure editing with waypoints for more accurate routing. These waypoints can be imported or exported to the
midpoints.geojson
file. An example of this file can be found in theexampleFiles/router
folder.
The structure of all files is described in more detail in the attached user manual.
This project is licensed under GPL-3.0.