"Using on your phone’s built-in GPS, Wi-Fi, and gyroscope to determine distances and the orientation of walls, RoomScan can reliably estimate measurements to within about half a foot, which should be adequate if all you need is a rough floor plan. If, you need more precise measurements, you can opt for the $5 Pro version, which allows you to specify exact distances, and will automatically correct the entire room if you adjust a couple dimensions."
Combining GPS, wifi-positioning, and the gyroscope should be fairly accurate for a floor plan. It's a very clever idea.