However, all modern smartphones have Wi-Fi built in, and wireless networks are common enough in indoor spaces that an app could easily scan for known access points and calculate your position using trilateration.
Computer geeks call it war-driving or Net stumbling: roving around with a Wi-Fi-enabled laptop to scan for nearby Wi-Fi access points, then trying to see if they can use them for free.