The judge of the superior court who grants certiorari or by appeal in traffic cases may hear the appeal after giving notice to each party, or his attorney, of the time and place of hearing, the judge being required to certify and send up to the superior court a complete and accurate history of the case, as his answer to the petition for certiorari, and the defendant having the right to traverse the answer as provided by law. The mayor and council may pass ordinances regulating the costs for appeals and certiorari; and for the forfeiture of all bonds.