Texting and driving is a pretty heinous crime. Bad enough that it's spawned entire ad campaigns devoted to educating the public on the dangers of such acts. Of this, you are no doubt aware. What you may be less aware of is the fact that figuring out where you're going is exactly as dangerous as sending someone a message that says "Doesn't the Peachoid look like a giant..."
California, despite having no known Peachoids, knows this very well and a court has ruled that using a mapping application is just as bad (and illegal) as texting behind the wheel.