Look up the next bus for Pittsburgh Port Authority Transportation System and CMU shuttles.
The system consists of
- Tomcat web server ('webserver' directory)
- Android app ('client' directory)
- Additional submission documents ('documents' directory)
App:
- import 'client' directory as an Android project. It should compile without any issues.
Server:
-
you need Tomcat 7.0 to run the webserver.
-
If you are using Eclipse JEE, import 'webserver' directory as a project.
-
Select Tomcat 7.0 as a server
-
Change the database filepath in WebContent/META-INF/context.xml to the new one. The Tomcat path could be either absolute or relative to Tomcat server, therefore, it was set to absolute.
The usage pattern is as follows:
- choose bus stop
- choose buses that go through this bus stop
- view next several buses
For web interface:
-
Go to http://localhost:8080/webserver/. Choose the stop from the list. You can enter a street for your stop, to make the list smaller. Click 'choose stop'
-
Pick the buses from the list. Only buses passing though the chosen stop are displayed. Every bus has a number and direction. Click 'Get schedule'
-
See the schedule. The buses are sorted by arrival times.
For app interface (the home page brings you straight to step 2, the closest bus stop already chosen):
-
From home screen tap 'change bus stop'. That will bring you to a list of stops, sorted by distance from you. You can search by street name to make the list shorter. Tap 'Choose' button.
-
Pick buses from the list. Only buses passing though the chosen stop are displayed. Every bus has a number and direction. Tap 'Get schedule' button
-
See the schedule. The buses are sorted by arrival times. A label 'local info' / 'server info' indicates whether the data was retrieved from the local database or from the server.
Extra for the app: from the home screen (step 2, the screen has button 'Get schedule') tap on menu button.
-
From the menu you can add the current stop to the list of favorites. When added the favorite stops will be displayed ahead of others in the list
-
From the menu, tap 'Settings'. In the settings you can choose whether to connect to the server first by default to retrieve data. The server has up-to-date schedule and in some cases it has real-time estimate of buses arrival times.
-
Menu on every screen has the item 'help' which guides a user though.
Please look into documents/meeting_requirements.pdf and documents/design.pdf for detailed usage description and design accordingly