What does the function positionEventHandler(*) do when viewing a map?

What does the function positionEventHandler(*) do when viewing a map?

  1.        //This function:
  2.           function positionEventHandler( e, geo ) {

  3.           map.geomap("remove", point2);
  4.           map.geomap("remove", line);
  5.        
  6.         var eventRowClass = "." + e.type;
  7.         

  8.         $(eventRowClass + " .date").text($.now());
  9.             console.log(geo.coordinates.join( ", " ));
  10.             getEmissions(coord[0], coord[1], geo.coordinates[0], geo.coordinates[1]);


  11.            point2 = {
  12.                 type: "Point",
  13.                  coordinates: geo.coordinates
  14.              };

  15.              line = {
  16.                  type: "LineString",
  17.                  coordinates: [coord, geo.coordinates]  
  18.             } 
  19.             map.geomap("append", line);
  20.             map.geomap("append", point2);
  21.             
  22.        

  23.       }