-
Download GTFS Data
- Download the
GTFS.zipfile for the Netherlands. - Import the data into your local MySQL database.
- Download the
-
Configure Database Connection
- Open the
DatabaseSingletonclass. - Update lines 16, 17 and 18 with your own MySQL credentials (host, username, password).
- Open the
-
Initial Data Cleanup
- On the first launch, call the
cleanDatamethod fromdataGetterin themapGUI.mainmethod:dataGetter.cleanData(); - This process cleans up excess data to improve query performance.
- Important: Running
cleanDatatakes some time, so after you have used it to clear your database, you should remove it from themainmethod for future launches to speed up the startup process.
- On the first launch, call the
-
Launch
- Run the
mainmethod in themapGUIclass to launch the application.
- Run the
-
Usage
- The application allows you to input two postcodes. It only accepts postcodes within the vicinity of Maastricht.
- If you do not input appropriate postcodes, it will display an error message.
- Note: If the API throws an error, you may wish to look for an alternative API to call from. Try
https://project12.ashish.nl/get_coordinates.
The application should now be ready to use for exploring public transport routes.