Reconstruction of a compact object motion in the vicinity of a black hole by its electromagnetic radiation