Distance measurement with minimal accuracy

i mean how can i get distance from something to a wall (big object), 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

Measure 4-5 meters indoors to a wall? Use a measuring tape. Or buy a laser measuring tape. The more expensive ones are more accurate and can measure longer distances.

There are GPS based measuring devices specifically designed to measure land area for outdoor use. Use google.