I guess it should not be difficult to find the spherical polar coordinates from x,y,z (3d-coordinate system).
-
ris always constant if it’s on surface.
-
(90 – θ) your latitude (negative means it’s on the bottom) as it’s measured from top.

-
φ is your longitude. (but not quite sure about longitude system)

Also check this diagram from wikipedia.
