Notice App Api Documentation - person-in-hangang/HanRiver GitHub Wiki

Notice

Server

RealtimeFragment.java

connect()

Receive Picture just before a person fell off a bridge.

  • parameter : none
  • return : none

connect2()

Receive information of fallen person.

  • parameter : none
  • return : none

connect3()

Receive Prediction of drown point.

  • parameter : none
  • return : none

connect4()

Receive trajectory picture.

  • parameter : none
  • return : none

setFrag(int n)

If the info of camera 1, this function shows picture of person on the bridge and person's information. And if the info of camera 2, it shows trajectory picture and location information.

  • parameter : camera number (camera 1 - on the bridge / camera 2 - under the bridge)
  • return : none

Google Map

MapsActivity.java

onMapReady(GoogleMap googleMap)

Put location on the map according to the latitude, longitude informations MainActivity.java sent to this Activity(MapsActivity.java).

  • parameter : google map
  • return : none

Graph

Firebase

ReportFragment.java

onDataChange(DataSnapshot dataSnapshot)

After receiving the data from the Firebase, this function put the data into each of the fallen people and bridge arrays to create a graph.

  • parameter : data of fallen person info and bridge info
  • return : none

list()

Using data from the last six months, this function creates a line graph and a pie chart. The line graph shows the change in the number of fallen people, and the pie chart shows the status of fallen by bridge.

  • parameter : none
  • return : none