When a police officer halts a traffic violator other than for the purpose of giving a warning and does not take such person into custody under arrest, he shall take the name, address, and operator's license number of said person, the license number of the motor vehicle involved, and such other pertinent information as may be necessary, and shall issue to him a written traffic citation containing a notice to answer to the charge against him in the city court at a specified time. The officer, upon receiving the written promise of the alleged violator to answer as specified in the citation, shall release such person from custody.