bustracker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bustracker [2016/11/10 20:36]
guest-a
bustracker [2016/11/10 20:43]
guest-a
Line 6: Line 6:
  
 The second module are the buses. A bus consists basically in a line and a unique identifier number. All the buses of the same line sends message to a group with an id that is the line of the bus. For example, all the buses of 497 will send a message to the group with id 497. With this, all the member of that group will receive the messages informing the locations os the buses. The second module are the buses. A bus consists basically in a line and a unique identifier number. All the buses of the same line sends message to a group with an id that is the line of the bus. For example, all the buses of 497 will send a message to the group with id 497. With this, all the member of that group will receive the messages informing the locations os the buses.
 +
 +====== Source Code ======
 +
 +You can download the source code from: https://github.com/mobbyd1/bus-tracker
  
 ====== Compilation ====== ====== Compilation ======
Line 22: Line 26:
   * To run the client module, type $java –jar bus-client-node.jar   * To run the client module, type $java –jar bus-client-node.jar
   * To run the bus module, type $java –jar bus-node.jar   * To run the bus module, type $java –jar bus-node.jar
 +
 +The buses locations are in a file called gps.json, in the resources folder. This file consists in a snapshot of all the buses locations in the city, provided by data.rio.
 +You can change into real time by change the class named GPSBusStream and point directly to the data.rio website.
 +
 +In this example, the client wants to see the location of the 497’s line buses. When a bus is less than 558 meters from the user (the green point), the bus point turns red, otherwise is shown in blue.
 +
 +{{::screen_shot_2016-11-08_at_21.33.55.png?200|}}
 +
 +====== Disclaimer ====== 
 +
 +This work is a task of Introduction to Mobile Computing course, 2016, second semester. Computer Department, PUC-Rio.
 +
 +====== Contact ======
 +
 +Ruhan dos Reis: rreis@inf.puc-rio.br 
 +
 +
 +
  
  
  • bustracker.txt
  • Last modified: 2017/07/21 03:08
  • (external edit)