Gyro/accelerometer data isn't accurate enough to do that. Small errors in the data add up and will quickly drift away from the actual location. You can use it for video game controllers, but not tracking over large distances. Edit: there's a reason the best VR tracking often uses external methods, not controllers alone.
But most phones have GPS and that's where the real problem is.