Driving Focus, previously named Do Not Disturb While Driving, limits iPhone notifications when you're on the road.
You can use the Do Not Disturb feature on your iPhone whenever you want to silence any calls, texts, or other notifications.