Patent attributes
The location of an electronic device can be tracked and updated in order to provide a user of the device accurate directions from the user's current location to a target location, for various types of environments. Upon detecting a trigger (e.g., detecting a QR code or detecting an access point signal), an example device can switch from using a first type of positioning element (e.g., GPS) to a second type of positioning element (e.g., using accelerometers, QR codes, etc.) in determining the user's current location. By using the appropriate type of positioning element for each environment, the device may determine the user's current location more accurately. The device may provide an overlay (e.g., arrows) for displaying the directions over images captured from the user's surroundings to provide a more realistic and intuitive experience for the user.