Getting Real Life Coordinates

I am struggling to get a real time location and rotation of an mobile game. Thanks (CSharp)

Please be more specfic,

This sample shows how to get the device location: