An object is said to transit when it reaches its highest point in the sky. This will be when it crosses an imaginary line which runs from the celestial pole (in the northern hemisphere this is close to Polaris) through the zenith (the point directly above the observer) and on to the horizon. North of the equator, the Moon and planets transit when they are due south, and vice versa.

Inconstant Moon