How can I track a device's location (x,y,z coordinates) as well as the direction the device is facing (north, south, up, down, etc.)?
Standard accelerometers are not precise enough for very small scale (personal hand-held devices) and tend to drift.
In addition, satellite GPS is not available in the location where this device would be used.