It really is basically illegal anywhere you drive to handle your phone and also drive, so your best bet is to get a great magnetic phone mount.
But certain mounts can be pretty tedious, and a great permanent magnetic mount makes life so much better when you're getting in and out of your car. Oliv are the best magnetic car mounts for the phone!
These are the best magnetic car mounts on your iPhone. They'll keep your phone from your hands while you're a car (and hopefully prevent a ticket), and they'll let anyone check directions and more on the run.