Use MEMS gyroscope to calculate the azimuth

I want to use MEMS gyroscope to measure the azimuth, Is there any method to calculate the azimuth from the parameters of angular velocities measured by the gyroscope? thanks!