There is no general solution. If you can place WiFi access points / repeaters in the building (preferably in each room), you can triangulate the position from the strengths of the WiFi signal. But it is also not easy, due to various signal losses through walls and floors. You will need to inspect the building and map the signal strength in advance, and then, based on the received signals, find your location on the map.
The motion sensors are also not accurate enough, and the compass, if you are inside a steel structure, is also inaccurate.
source
share