One or more non-transitory computer-readable storage media storing one or more computer programs including computer-executable instructions that, when executed by one or more processors of an electronic device individually or collectively, cause the electronic device to perform operations of detecting a movement direction, the operations comprising:
- when identifying execution of a location-based application, requesting a communication-connected second wearable electronic device to calculate posture information about the second wearable electronic device by a first wearable electronic device;
- when receiving the request for calculating the posture information about the second wearable electronic device from the first wearable electronic device, calculating the posture information about the second wearable electronic device based on a sensor module of the second wearable electronic device by the second wearable electronic device;
- when identifying that a reception sensitivity of a location signal received from a location measurement module of the first wearable electronic device is equal to or less than a threshold during detection of a movement direction of the first wearable electronic device based on the location signal, requesting the posture information about the second wearable electronic device from the second wearable electronic device by the first wearable electronic device;
- when receiving the request for the posture information about the second wearable electronic device from the first wearable electronic device, transmitting the posture information about the second wearable electronic device to the first wearable electronic device by the second wearable electronic device;
- and
- detecting the movement direction of the first wearable electronic device by applying the posture information received from the second wearable electronic device to pedestrian dead reckoning by the first wearable electronic device.