Skip to content

This repository contains the project which is built using Servlets & JSP.

Notifications You must be signed in to change notification settings

dranandrao/MetroTransit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MetroTransit

Problem Statement

In a language of your choice, write a program which will tell you how long it is until the next bus on “BUS ROUTE” leaving from “BUS STOP NAME” going “DIRECTION” using the api defined at http://svc.metrotransit.org/ “BUS ROUTE” will be a substring of the bus route name which is only in one bus route “BUS STOP NAME” will be a substring of the bus stop name which is only in one bus stop on that route “DIRECTION” will be “north” “east” “west” or “south”.

Solution

This project is built using J2EE frameworks i.e., Servlets,JSP. It uses HttpURLConnection for HTTP connection with the API and GSON for parsing JSON response.

Prerequisites

This project requires Java, Apache-Tomcat, Eclipse IDE and GSON.jar file.

Installing

This part explains the installing the prerequisites.

  • Java - Language used in the project.
  • Apache-Tomcat - Server to host the application.
  • Eclipse - IDE to run the application.
  • GSON - Parse the JSON response from server.

Environment Setup

This part explains the environment required to host application.

Running

Extract the both eclipse and gson zip files.Add the GSON.jar into the /WebContent/WEN-INF/lib folder if the GSON.jar file is not available. Run the application and select the server to be hosted.Welcome page is displayed in eclipse browser.Feed in the Route, from and direction into the page, submit the form.If any error or server down, error messages are displayed in the browser.If no errors the the arrival time is displayed based on scheduled time/real time departures.

About

This repository contains the project which is built using Servlets & JSP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages