When the phone is in a house or in any building it can’t get data from GPS satellites. Then the location depends on GSM and Network Location Providers. Although GPS is most accurate (about 10 meters), it only works outdoors, so indoor systems determine user location using cell tower or Wi-Fi signal and the accuracy is more then 100 meters (depends on signal strength).