Navigation for Cars in a City

How would/should one handle AI navigation for cars in a city situation so they don’t drive on sidewalks and such? I’m just curious about the basic level of keeping cars to streets not all the other logic of traffic stops and such just yet.