@kuba Yeah you were joking, but my comment is that there is a tiny bit of truth to it, as some "rooftops" are walkable "ground" five floors up from the "natural" (not actually natural) ground.
The GPS info is what you get from the OS in the phone. The manufacturers have different approaches to handling uncertainty.