GPS is not intended to be accurate to inches or even feet.
With a Trimble ProXH Receiver you can get 30cm +\-....But it's designed for rough surveying...
Not something that our phone has And if you were to measure something in cm, it still wouldn't be an accurate way of measuring something.