Function toGeodeticCoordinates