Skip to content

Application for the movement of passengers by city bus.

Notifications You must be signed in to change notification settings

billgewrgoulas/Bus-Transit

Repository files navigation

Go Bus

This is my diploma thesis - an application for the movement of passengers by city bus.

Description

Nowadays the transit bus has become one of the most popular ways for people to travel around the cities. However, the rapid rise in popularity of this transportation method has come with a cost. Some of the main problems that the passengers face are the lack of information including static and realtime updates, the constant delays, the small frequency of the trips and the overloading of the vehicles. The proposed application aims to solve these issues by allowing the passengers to reserve a seat on the desired trip. This will allow the agency to save and monitor the flow of passengers and their preferences and make the necessary adjustments to the daily schedule such as adding extra vehicle and routes. The use cases of the app are the following:

  • Create a user account.
  • Easily find optimal bus routes and be able to reserve a seat. A QR code will be generated for each reservation which will assign priority.
  • Display and store information about stops and lines.
  • Display real-time information about bus arrivals, departures and bus locations.
  • Visualize information using map services.

In order to satisfy some advanced functionalities the application will utilize the open source software Open Trip Planner which is used to calculate optimal itineraries using data from a public transportation agency and data from Open Street Map. OTP can receive both static files that describe the daily schedule and the routes and real time indormation as protocol buffers. It exposes a rest API that we can use to make the relevant queries.

Architecture

At a glance the application follows the 3-tier architecture. For the presentation tier we use Angular, for the logic tier we use Nest.js and for the data tier we use postgreSQL. The architecture is shown below. OTP belongs to the logic tier.

Database

Logic tier - Repository Pattern

Presentation tier - NgRx

User interface - Mobile version

Reproduce locally

Run npm install to download all dependencies required. For a dev server run ng serve. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files. To run OTP you will need Java v.14+ and the file otp-2.2.0-shaded.jar that you can download from here: https://repo1.maven.org/maven2/org/opentripplanner/otp/2.2.0/. Open a terminal inside the otp folder and run 'java -Xmx2G -jar otp-2.2.0-shaded.jar --load .' All files are ready. The back end is in the repo Go-Bus-Back-End.

About

Application for the movement of passengers by city bus.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published