An electronic device comprising: a communication module; a memory; and a processor, wherein the processor is configured to: acquire position information of a vehicle via the communication module; acquire lane information (801, 805, 1017, 1077) of the vehicle; determine whether high definition, HD, map information corresponding to the position information is acquired; determine whether a lane is recognized, based on the lane information; when the HD map information is not acquired, display two-dimensional, 2D, navigation information in augmented reality; when the HD map information is acquired and the lane is recognized, display three-dimensional, 3D, navigation information in augmented reality by using the HD map information; and when the HD map information is acquired and the lane is not recognized, display, using the HD map information, 3D and 2D navigation information in which the 3D navigation information is displayed to correspond to a first distance, and the 2D navigation information is displayed to correspond to a second distance beyond the first distance; wherein the displaying of the 3D navigation information comprises displaying virtual 3D graphic information for driving guidance that is spatially matched to, and displayed on, an actual object in a real world by using the HD map information, and wherein the displaying of the 2D navigation information comprises displaying virtual 2D graphic information for driving guidance that is planarly matched to, and displayed on, an actual object in a real world. a communication module; a memory; and a processor, wherein the processor is configured to: acquire position information of a vehicle via the communication module; acquire lane information (801, 805, 1017, 1077) of the vehicle; determine whether high definition, HD, map information corresponding to the position information is acquired; determine whether a lane is recognized, based on the lane information; when the HD map information is not acquired, display two-dimensional, 2D, navigation information in augmented reality; when the HD map information is acquired and the lane is recognized, display three-dimensional, 3D, navigation information in augmented reality by using the HD map information; and when the HD map information is acquired and the lane is not recognized, display, using the HD map information, 3D and 2D navigation information in which the 3D navigation information is displayed to correspond to a first distance, and the 2D navigation information is displayed to correspond to a second distance beyond the first distance; acquire position information of a vehicle via the communication module; acquire lane information (801, 805, 1017, 1077) of the vehicle; determine whether high definition, HD, map information corresponding to the position information is acquired; determine whether a lane is recognized, based on the lane information; when the HD map information is not acquired, display two-dimensional, 2D, navigation information in augmented reality; when the HD map information is acquired and the lane is recognized, display three-dimensional, 3D, navigation information in augmented reality by using the HD map information; and when the HD map information is acquired and the lane is not recognized, display, using the HD map information, 3D and 2D navigation information in which the 3D navigation information is displayed to correspond to a first distance, and the 2D navigation information is displayed to correspond to a second distance beyond the first distance; wherein the displaying of the 3D navigation information comprises displaying virtual 3D graphic information for driving guidance that is spatially matched to, and displayed on, an actual object in a real world by using the HD map information, and wherein the displaying of the 2D navigation information comprises displaying virtual 2D graphic information for driving guidance that is planarly matched to, and displayed on, an actual object in a real world.