How to position/rotate a pyramid based on its tip


Basically, I have a photo with GPS and orientation info. I want to make a pyramid outline to display the camera’s field of view when this photo is taken. So I want to make a pyramid and place it’s tip on the location. And then rotate it based on the orientation info. Not sure how to achieve it ?

Thanks for helping.