Sorry, for those things, i mean how can i get distance from something to a wall (big object),
Something is equipped with an infra red laser distance meter. It points to the wall and gets a reading.
and X,Y axis i mean to get width and height on one area, maybe with GPS module, and minimal accuracy (wrong) i mean high accuracy
If you still want the area (wall) measured from distance, you need a theodolite. You point your theodolite and your IR laser to the four corners of the area, assuming the area is a rectangle. You use the distance reading from the IR laser and the angle readings from the theodolite. From all that you calculate the area, using high school maths. Theoretically you need only three corners, but measuring the fourth corner, you get better accuracy.
Of course, the theodolite can be replaced with your own tilting mechanism, which holds the distance sensor. You should be able to read angles from the tilting mechanism. And the laser beam could preferably be visible to get it aimed at the corners.