Constraining tilt

Hello,

Is it possible to constrain the camera tilt so that the direction of the
camera is never 'horizontal'?

In Google Map, the tilt constraint is dynamic, according to the distance.