California Vehicle Code §40902 allows a person charged with a nonalcohol-related infraction, to “appear” in front of a judge by written instrument. Basically, you tell your side of the story and the cop tells his. Both documents go in front of a judge and the judge decides whether you are guilty or not.
The relevant code sections are: