Skip to content

This program returns the time in minutes for a bus on "BUS ROUTE" leaving from "BUS STOP NAME" going "DIRECTION" using the API at http://svc.metrotransit.org/

Notifications You must be signed in to change notification settings

pkumaratg/bus-route

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bus route application

Build Process(How to run this application)

First use below command to download dependencies and compile the program

  $mvn clean install

or else you can directly download the jar file and you can skip this step

  eg:

image

Then use below command to run the program Note(program will take three command-line argument i.e route,stop,direction)

   $java -jar bus-route-0.0.1-SNAPSHOT.jar "BUS ROUTE" "BUS STOP NAME" "DIRECTION"
   eg:java -jar bus-route-0.0.1-SNAPSHOT.jar 5 77PO north

image

External libraries:

The libraries and imports used are as follows:

     import java.io.*;

     import java.net.HttpURLConnection;

     import java.net.URL;

     import com.google.gson.*;

Test case result

positive case

image

Negative case

image

This program returns the time in minutes for a bus on "BUS ROUTE" leaving from "BUS STOP NAME" going "DIRECTION" using the API at http://svc.metrotransit.org/

value

About

This program returns the time in minutes for a bus on "BUS ROUTE" leaving from "BUS STOP NAME" going "DIRECTION" using the API at http://svc.metrotransit.org/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%