Patent Publication Number: US-2023143631-A1

Title: Electronic Device and Control Method Thereof

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
     This application claims the benefit of Korean Patent Application No. 10-2021-0154101, filed on Nov. 10, 2021, which application is hereby incorporated herein by reference. 
     TECHNICAL FIELD 
     The disclosure relates to an electronic device and a control method thereof. 
     BACKGROUND 
     With the development of digital technology, various types of electronic devices such as a mobile communication terminal, smartphone, tablet personal computer (PC), laptop, personal digital assistant (PDA), wearable device, digital camera, personal computer, etc., are widely used. 
     Recently, in addition to functions that may be performed by an electronic device such as a call, multimedia playback (e.g., music playback and video playback), and Internet, research on a navigation function is increasing. 
     The navigation function above is performed in a vehicle as well, and a global positioning system (GPS) for recognizing a current location is generally used when electronic devices and vehicles perform the navigation function. 
     In relation to the navigation function, as interest in delivery service and indoor spatial information has recently increased, a demand for integrated indoor/outdoor navigation has risen. However, indoor and outdoor location information is stored in different ways since both are collected differently, which prevents an integrated navigation from being performed. Also, because navigation algorithms and services are developed in a fragmented way indoors and outdoors, navigation services that connect indoors to outdoors or outdoors to indoors are not being provided. 
     SUMMARY 
     The disclosure relates to an electronic device and a control method thereof. Particular embodiments relate to an electronic device and a control method thereof that provides a user with route guidance. 
     An embodiment of the disclosure provides an electronic device and a control method thereof that may automatically perform a pre-stored function when a passenger having a personal identification device with a pre-stored identifier (ID) boards the vehicle, in order to enhance convenience of a fellow passenger. 
     According to an embodiment of the disclosure, there is provided an electronic device including a display module, a communicator configured to communicate with a server, an input module configured to receive an input from a user, and a controller configured to determine a route to be guided as a shortest path, from an indoor route or an outdoor route based on the input from the user or an external environment received from the server, determine a route from a departure point to an arrival point based on the route to be guided as the shortest path, and control the display module to display the determined route. 
     The route from the departure point to the arrival point includes the indoor route and the outdoor route. 
     The communicator is configured to receive at least one of weather environment information or traffic environment information from the server. 
     The controller is configured to control to set the route to be guided as the shortest path as the outdoor route, when the communicator receives environment information about rain or high temperature from the server. 
     The controller is configured to control to set the route to be guided as the shortest path as the outdoor route, when the communicator receives traffic congestion information from the server. 
     When the departure point is indoors, the arrival point is outdoors and the route to be guided as the shortest path is the indoor route, the controller is configured to control the display module to display shortest route guidance information from the departure point to an indoor exit, and display route guidance information from the indoor exit to the arrival point, the departure point and the arrival point being input by the user. 
     When the departure point is indoors, the arrival point is outdoors and the route to be guided as the shortest path is the outdoor route, the controller is configured to control the display module to display shortest route guidance information to the arrival point from a first exit closest to the arrival point among a plurality of indoor exits, and display route guidance information from the departure point to the first exit, the departure point and the arrival point being input by the user. 
     When the departure point is outdoors, the arrival point is indoors and the route to be guided as the shortest path is the indoor route, the controller is configured to control the display module to display route guidance information from the departure point to an indoor entrance, and display shortest route guidance information from the indoor entrance to the arrival point, the departure point and the arrival point being input by the user. 
     When the departure point is outdoors, the arrival point is indoors and the route to be guided as the shortest path is the outdoor route, the controller is configured to control the display module to display shortest route guidance information from the departure point to a first entrance closest to the departure point among a plurality of indoor entrances, and display route guidance information from the first entrance to the arrival point, the departure point and the arrival point being input by the user. 
     The input module is configured to receive information about means of transportation from the user. 
     When the user inputs a vehicle as the means of transportation, the controller is configured to set an indoor entrance and an indoor exit as an entrance and an exit close to a parking lot, respectively, to control the display module to display route guidance information. 
     When the user inputs a two-wheeled vehicle or a bicycle as the means of transportation, the controller is configured to set an indoor entrance and an indoor exit as an entrance and an exit close to an outside, respectively, to control the display module to display route guidance information. 
     According to an embodiment of the disclosure, there is provided a control method of an electronic device, the control method including receiving an input from a user, performing communication with a server, determining a route to be guided as a shortest path, from an indoor route or an outdoor route based on the input from the user or an external environment received from the server, determining a route from a departure point to an arrival point based on the route to be guided as the shortest path, and displaying the determined route. 
     The route from the departure point to the arrival point includes the indoor route and the outdoor route. 
     The performing communication with the server includes receiving at least one of weather environment information or traffic environment information from the server. 
     The determining of the route to be guided as the shortest path includes setting the route to be guided as the shortest path as the outdoor route, when environment information about rain or high temperature is received from the server. 
     The determining of the route to be guided as the shortest path includes setting the route to be guided as the shortest path as the outdoor route, when traffic congestion information is received from the server. 
     When the departure point is indoors, the arrival point is outdoors and the route to be guided as the shortest path is the indoor route, the displaying of the determined route includes displaying shortest route guidance information from the departure point to an indoor exit, and displaying route guidance information from the indoor exit to the arrival point, the departure point and the arrival point being input by the user. 
     When the departure point is indoors, the arrival point is outdoors and the route to be guided as the shortest path is the outdoor route, the displaying of the determined route includes displaying shortest route guidance information to the arrival point from a first exit closest to the arrival point among a plurality of indoor exits, and displaying route guidance information from the departure point to the first exit, the departure point and the arrival point being input by the user. 
     When the departure point is outdoors, the arrival point is indoors and the route to be guided as the shortest path is the indoor route, the displaying of the determined route includes displaying route guidance information from the departure point to an indoor entrance, and displaying shortest route guidance information from the indoor entrance to the arrival point, the departure point and the arrival point being input by the user. 
     When the departure point is outdoors, the arrival point is indoors and the route to be guided as the shortest path is the outdoor route, the displaying of the determined route includes displaying shortest route guidance information from the departure point to a first entrance closest to the departure point among a plurality of indoor entrances, and displaying route guidance information from the first entrance to the arrival point, the departure point and the arrival point being input by the user. 
     The receiving of the input from the user includes receiving information about means of transportation from the user. 
     When the user inputs a vehicle as the means of transportation, the displaying of the determined route includes setting an indoor entrance and an indoor exit as an entrance and an exit close to a parking lot, respectively, to display route guidance information. 
     When the user inputs a two-wheeled vehicle or a bicycle as the means of transportation, the displaying of the determined route includes setting an indoor entrance and an indoor exit as an entrance and an exit close to an outside, respectively, to display route guidance information. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
       These and/or other embodiments of the disclosure will become apparent and more readily appreciated from the following description of the exemplary embodiments, taken in conjunction with the accompanying drawings in which: 
         FIG.  1    is a diagram illustrating various electronic devices displaying route guidance information; 
         FIG.  2    is a diagram illustrating a route guidance screen provided by a route guidance service; 
         FIG.  3    is a control block diagram illustrating an electronic device according to an embodiment; 
         FIGS.  4  to  7    are diagrams illustrating screens displaying routes including a route determined as a route to be guided as a shortest path; 
         FIG.  8    is a diagram illustrating a screen allowing a user to select a means of transportation; 
         FIG.  9    is a flowchart illustrating operations of providing route guidance; and 
         FIG.  10    is a flowchart illustrating operations of determining a route to be guided as a shortest path. 
     
    
    
     DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS 
     Like reference numerals throughout the specification denote like elements. Also, this specification does not describe all the elements according to embodiments of the disclosure, and descriptions well-known in the art to which the disclosure pertains or overlapped portions are omitted. The terms such as “˜part”, “˜member”, “˜module”, “˜block”, and the like may refer to at least one process processed by at least one hardware or software. According to embodiments, a plurality of “˜parts”, “˜members”, “˜modules”, “˜blocks” may be embodied as a single element, or a single of “˜part”, “˜member”, “˜module”, “˜block” may include a plurality of elements. 
     It will be understood that when an element is referred to as being “connected” to another element, it can be directly or indirectly connected to the other element, wherein the indirect connection includes “connection” via a wireless communication network. 
     It will be understood that the term “include” when used in this specification, specifies the presence of stated features, integers, steps, operations, elements, and/or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. 
     It will be understood that when it is stated in this specification that a member is located “on” another member, not only may a member be in contact with another member, but also still another member may be present between the two members. 
     It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. 
     It is to be understood that the singular forms are intended to include the plural forms as well, unless the context clearly dictates otherwise. 
     Reference numerals used for method steps are just used for convenience of explanation, but not to limit an order of the steps. Thus, unless the context clearly dictates otherwise, the written order may be practiced otherwise. 
     Hereinafter, an operation principle and embodiments will be described in detail with reference to the accompanying drawings. 
       FIG.  1    is a diagram illustrating various electronic devices displaying route guidance information. 
     The electronic device  10  may be a portable terminal. 
     The electronic device  10  may be a terminal that may be detachably mounted on a vehicle or a terminal that may be embedded in a dashboard of the vehicle. The electronic device  10  may be an audio, video, navigation (AVN) terminal that performs audio, video and navigation functions. 
     The electronic device  10  may be embodied as a computer or portable terminal that may access the vehicle through a network. 
     For example, the computer may include a laptop, desktop, tablet personal computer (PC), slate PC, etc., equipped with a web browser. Also, for example, the portable terminal, as a wireless communication device that guarantees portability and mobility, may include all types of handheld-based wireless communication devices such as a personal communication system (PCS), global system for mobile communications (GSM), personal digital cellular (PDC), personal handyphone system (PHS), personal digital assistant (PDA), international mobile telecommunication (IMT)-2000, code division multiple access (CDMA)-2000, W-CDMA, wireless broadband internet (Wibro), smartphone, and also include wearable devices such as a watch, ring, bracelet, necklace, eyeglasses, contact lenses, head-mounted-devices (HMDs), and the like. 
     Among the above, a portable smartphone  10 - 1 , an AVN terminal  10 - 2  mounted on a dashboard of the vehicle, and the portable electronic device  10 - 3  are illustrated in  FIG.  1   . 
     A user may be provided with a route guidance service through the electronic device  10  described above. 
       FIG.  2    is a diagram illustrating a route guidance screen provided by a route guidance service.  FIG.  3    is a control block diagram illustrating an electronic device according to an embodiment. 
     In general, a navigation system may provide a user with a route to a destination or map information about a specific location. The map information provided allows the user to move to the destination along the route. 
     Recently, as a demand for route guidance from indoors to outdoors and from outdoors to indoors increases, a route guidance service capable of simultaneously providing both indoor and outdoor route guidance is highly required. 
     Hereinafter, the electronic device  10  that provides route guidance about all routes from indoors to outdoors and from outdoors to indoors is described. 
     Referring to  FIG.  3   , according to an embodiment, the electronic device  10  may include a communicator  11 , an input module  12 , a controller  13  and a display module  16 . 
     The communicator  11  may receive information about an external environment from a server  20  by communicating with the server  20 . Also, the communicator  11  may transmit the information received from the server  20  to the controller  13  of the electronic device  10 . 
     The communicator  11  may include at least one constituent component for enabling the constituent components of the electronic device  10  to communicate with each other, such as a short-range communication module, a wired communication module, and a wireless communication module, and the like. 
     The short-range communication module may include a variety of short-range communication modules that transmit/receive a signal using a wireless communication network over short distances, such as a Bluetooth™ module, an infrared communication module, a radio frequency identification (RFID) communication module, a wireless local access network (WLAN) communication module, a near field communication (NFC) module, a Zigbee communication module, and the like. 
     The wired communication module may include various wired communication modules such as a controller area network (CAN) communication module, a local area network (LAN) module, a wide area network (WAN) module, a value added network (VAN) module, etc., and may also include various cable communication modules such as a universal serial bus (USB), a high definition multimedia interface (HDMI), a digital visual interface (DVI), a recommended standard 232 (RS-232), a power line communication, a plain old telephone service (POTS), etc. 
     The wired communication module may further include a local interconnect network (LIN). 
     The wireless communication module may include a WiFi module, a wireless broadband (Wibro) module, and may also include wireless communication modules supporting various wireless communication methods, such as a global system for mobile communication (GSM), code division multiple access (CDMA), wideband code division multiple access (WCDMA), universal mobile telecommunications system (UMTS), time division multiple access (TDMA), long term evolution (LTE), ultra wide band (UWB), and the like. 
     The input module  12  may receive a user input. 
     The input module  12  may receive an execution command of a navigation application for performing a navigation function, and receive information about a departure point and an arrival point in response to an execution of the navigation function. 
     The input module  12  may receive information about a route for which a shortest route guidance is desired by a user, from among an indoor route or outdoor route. 
     The input module  12  may receive information about a means of transportation that the user is on from the user. For example, when the user is in a vehicle, the input module  12  may receive an input indicating that the vehicle is used as the means of transportation. 
     The input module  12  may be implemented as a jog dial or a touch pad for inputting a cursor movement command, an icon or button selection command, etc., displayed on the display module  16 . 
     The input module  12  may include various hardware devices such as buttons, switches, levers, pedal, keyboard, mouse, trackball, handle, stick, and the like. 
     Also, the input module  12  may include a software device, that is, a graphical user interface (GUI) such as a touch panel, etc. The touch panel may be implemented as a touch screen panel (TSP) to form a layer structure with the display module  16 . 
     The controller  13  may determine a route to be guided as the shortest path from among the indoor route or outdoor route, based on the user input received by the input module  12  and the external environment received from the server  20 . 
     For instance, when the user inputs a route for which a shortest route guidance is desired as the indoor route, the controller  13  may determine the route to be guided as the shortest path as the indoor route according to the user input. 
     Also, when receiving information about weather or traffic conditions among the information about the external environment from the server  20 , the controller  13  may automatically determine the route to be guided as the shortest path by reflecting the information, which is described in detail later. 
     The controller  13  may determine a route from a departure point to an arrival point input by the user, based on the route to be guided as the shortest path. 
     The route from the departure point to the arrival point may include the indoor route and the outdoor route. 
     That is, when the route to be guided as the shortest path is outdoors, the controller  13  may determine the route to be guided as the shortest path as the outdoor route, and a normal route as the indoor route. 
     As such, the controller  13  may determine the route from the departure point to the arrival point, considering the route to be guided as the shortest path which is determined based on the user input or the external environment. 
     The controller  13  may control the display module  16  to provide the user with the route from the departure point to the arrival point which is determined through the above-described operations. 
     Through the control of the display module  16 , the user may view a route guidance screen, thereby going to the arrival point along the guided route. 
     The controller  13  may include a memory  15  for determining the route to be guided as the shortest path and providing route guidance about the determined route, and a processor  14  for generating a control signal according to a control program and control data stored in the memory  15 . The memory  15  and the processor  14  may be provided integrally or separately. 
     The memory  15  may store a program or data for determining the route to be guided as the shortest path and for providing route guidance based on the determined route. Also, the memory  15  may store information about an indoor entrance/exit. 
     The memory  15  may include a volatile memory for temporarily storing data such as a static random access memory (SRAM) and dynamic random access memory (DRAM), and a non-volatile memory for storing data for a long period of time such as a read only memory (ROM), an erasable programmable read only memory (EPROM), an electrically erasable programmable read only memory (EEPROM), and the like. 
     The processor  14  may include various logic circuits and arithmetic circuits, process data according to the program provided from the memory  15 , and generate a control signal according to a result of the processing. 
     The display module  16  may provide the user with a screen for providing route guidance and receiving various information. 
     The display module  16  may display the route guidance screen to provide the route determined by the controller  13 , and a screen allowing the user to input a departure point, an arrival point, means of transportation used by the user, and the like. 
     As the screens described above are provided to the user, the user may input information related to route guidance through the input module  12 , thereby being guided with the route. 
     The display module  16  may be provided as a cathode ray tube (CRT), digital light processing (DLP), plasma display panel, liquid crystal display (LCD) panel, electro luminescence (EL) panel, electrophoretic display (EPD) panel, electrochromic display (ECD) panel, light emitting diode (LED) panel, and organic light emitting diode (OLED) panel, without being limited thereto. 
     At least one constituent component may be added or deleted according to a performance of the constituent components of the electronic device  10  illustrated in  FIG.  3   . In addition, it is to be understood by those skilled in the art that mutual positions of the constituent components may be changed corresponding to a performance or structure of system. 
     Hereinafter, operations of determining a route to be guided as a shortest path and displaying the determined route by the constituent components of the electronic device  10  are described in detail. 
       FIGS.  4  to  7    are diagrams illustrating screens displaying routes including a route determined as a route to be guided as a shortest path. 
     As described above, the controller  13  may determine a route to be guided as a shortest path, considering a user input and external environment received from the server  20 . 
     When a user directly inputs a route for which a shortest route guidance is desired, the route input by the user may be guided as the shortest path. When the user inputs the route for which the shortest route guidance is desired as an indoor route, the indoor route may be guided as the shortest path, and when the user inputs the route for which the shortest route guidance is desired as an outdoor route, the outdoor route may be guided as the shortest path. 
     However, in addition to the user input, the route to be guided as the shortest path may be determined automatically considering weather or traffic conditions. 
     In general, when an outdoor temperature is high or it rains a lot, people do not want to stay outdoors for a long time. Accordingly, when environment information about a high temperature or rain is received from the server  20 , the controller  13  may determine the route to be guided as the shortest path, as the outdoor route. 
     Also, in severe road congestion due to an increase in traffic volume, people generally do not want to drive outdoors, and thus when information about traffic congestion is received from the server  20 , the controller  13  may determine the route to be guided as the shortest path, as the outdoor route. 
     As such, the route to be guided as the shortest path may be determined considering the user input and external environment received from the server  20 , and provided to the user accordingly. 
     Hereinafter, when a departure point and an arrival point are different from each other as indoors or outdoors, route guidance different for each case is described. 
       FIG.  4    illustrates an example where a departure point input by a user is indoors and an arrival point input by the user is outdoors. 
     Also, it is illustrated in  FIG.  4    that the route to be guided as the shortest path, which is determined according to a user input or external environment, is an indoor route. 
     First, because the departure point is indoors and the arrival point is outdoors, an exit to go out of an indoor place is required to be determined. 
     In this case, the controller  13  may determine an exit closest to a location of the user who is indoors using indoor information stored in the memory  15  or received from the server  20 . 
     When the exit closest to the departure point of the user is determined, the controller  13  may control the display module  16  to display an indoor route to the closest exit, and then to display a route from the exit to the arrival point. 
     In  FIG.  4   , because the exit closest to the departure point of the user is an ‘entrance/exit 2’, the controller  13  may control the display module  16  to display the indoor route from the departure point to the entrance/exit 2 and the route from the entrance/exit 2 to the arrival point. 
     Accordingly, the user may be provided with the shortest route guidance for the indoor route. 
       FIG.  5    illustrates an example where a departure point input by a user is indoors and an arrival point input by the user is outdoors. 
     Also, it is illustrated in  FIG.  5    that the route to be guided as the shortest path, which is determined according to a user input or external environment, is an outdoor route. 
     First, because the departure point is indoors and the arrival point is outdoors, an exit to go out of an indoor place is required to be determined. 
     In this case, the controller  13  may determine an exit that exists indoors using indoor information stored in the memory  15  or received from the server  20 . 
     Because the route to be guided as the shortest path is the outdoor route, the controller  13  may determine an exit closest to the arrival point among the exits that exist indoors. 
     Accordingly, the controller  13  may control the display module  16  to display an indoor route from the departure point to the determined exit, and then to display a route from the exit to the arrival point. 
     In  FIG.  5   , because the exit closest to the arrival point of the user is an ‘entrance/exit 3’, the controller  13  may control the display module  16  to display the route from the departure point to the entrance/exit 3 and the outdoor route from the entrance/exit 3 to the arrival point. 
     Thus, the user may be provided with the shortest route guidance for the outdoor route. 
       FIG.  6    illustrates an example where a departure point input by a user is outdoors and an arrival point input by the user is indoors. 
     Also, it is illustrated in  FIG.  6    that the route to be guided as the shortest path, which is determined according to a user input or external environment, is an indoor route. 
     First, because the departure point is outdoors and the arrival point is indoors, an entrance to go to an indoor place is required to be determined. 
     In this case, the controller  13  may determine an entrance closest to the arrival point among entrances that exist indoors using indoor information stored in the memory  15  or received from the server  20 . 
     When the entrance closest to the arrival point of the user is determined, the controller  13  may control the display module  16  to display an outdoor route to the closest entrance, and then to display a route from the entrance to the arrival point. 
     In  FIG.  6   , because the entrance closest to the arrival point of the user is an ‘entrance/exit 2’, the controller  13  may control the display module  16  to display the route from the departure point to the entrance/exit 2 and the indoor route from the entrance/exit 2 to the arrival point. 
     Accordingly, the user may be provided with the shortest route guidance for the indoor route. 
       FIG.  7    illustrates an example where a departure point input by a user is outdoors and an arrival point input by the user is indoors. 
     Also, it is illustrated in  FIG.  7    that the route to be guided as the shortest path, which is determined according to a user input or external environment, is an outdoor route. 
     First, because the departure point is outdoors and the arrival point is indoors, an entrance to go to an indoor place is required to be determined. 
     In this case, the controller  13  may determine an entrance that exists indoors using indoor information stored in the memory  15  or received from the server  20 . 
     Because the route to be guided as the shortest path is the outdoor route, the controller  13  may determine an entrance closest to the departure point among the entrances that exist indoors. 
     That is, the controller  13  may acquire information about all routes from the departure point to a plurality of entrances that exist indoors where the arrival point is located, compare the acquired information about all of the routes, and determine the entrance closest to the departure point. 
     Accordingly, the controller  13  may control the display module  16  to display an outdoor route from the departure point to the determined entrance, and then to display a route from the entrance to the arrival point. 
     In  FIG.  7   , because the entrance closest to the departure point of the user is an ‘entrance/exit 3’, the controller  13  may control the display module  16  to display the outdoor route from the departure point to the entrance/exit 3 and the route from the entrance/exit 3 to the arrival point. 
     Thus, the user may be provided with the shortest route guidance as the outdoor route. 
     As described above, the controller  13  may determine the route to be guided as the shortest path based on the user input or external environment, and provide route guidance according to the determined route, and thus the user may be provided with an optimized route guidance. 
       FIG.  8    is a diagram illustrating a screen allowing a user to select a means of transportation. 
     Since the user may use other means of transportation such as a bicycle or a two-wheeled vehicle, in addition to a vehicle, an indoor entrance/exit is required to be determined differently considering the above. 
     For example, when the user uses a vehicle, the vehicle is required to be parked in a parking lot, and thus the closer the entrance to the parking lot, the more convenient it may be for the user. 
     Accordingly, when the user inputs a vehicle as the means of transportation, the controller  13  may determine an entrance adjacent to the parking lot among entrances existing indoors, and perform route guidance based thereon. 
     In addition, when the user uses a bicycle or a two-wheeled vehicle, the user may park the bicycle or two-wheeled vehicle on a pedestrian road, bicycle road, or a general road to enter an indoor place. 
     Accordingly, when the user inputs a bicycle or a two-wheeled vehicle as the means of transportation, the controller  13  may determine an entrance adjacent to an outdoor place among the entrances existing indoors, and perform route guidance based thereon. 
     As such, the route guidance is performed by determining an entrance/exit differently depending on a type of the means of transportation used by the user, thereby improving user convenience. 
       FIG.  9    is a flowchart illustrating operations of providing route guidance. 
     First, the input module  12  may receive a user input from a user and the communicator  11  may perform communication with the server  20  ( 901 ). 
     Here, the user input may be information about a departure point, an arrival point, a route for which a shortest route guidance is desired, and a means of transportation used by the user. 
     At least one of current weather environment information or traffic environment information may be received from the server  20  by performing communication with the server  20 . 
     A route to be guided as a shortest path may be determined from among an indoor route or an outdoor route, based on the received user input or external environment information received from the server  20  ( 902 ). 
     Afterwards, a route to be guided to the user may be determined considering the determined route to be guided as the shortest path, and a departure point and arrival point input by the user ( 903 ). 
     The display module  16  may be controlled to display route guidance information to provide the user with the determined route ( 904 ). 
     Accordingly, the user may be provided with route guidance optimized in consideration of the user input and external environment. 
       FIG.  10    is a flowchart illustrating operations where the controller  13  determines a route to be guided as the shortest path. 
     First, it is determined whether a route for which a shortest route guidance is desired is an outdoor route is received from a user ( 1001 ). 
     When the user inputs the route for which the shortest route guidance is desired as an outdoor route (Yes in operation  1001 ), the outdoor route may be determined as a route to be guided as a shortest path ( 1004 ). 
     When the user inputs the route for which the shortest route guidance is desired as an indoor route (No in operation  1001 ), whether external environment information received from the server  20  is received is determined ( 1002 ). 
     When environment information about a high temperature or rain or traffic congestion information is received from the server  20  (Yes in operation  1002 ), the route to be guided as the shortest path may be determined as the outdoor route ( 1004 ), since the user would not prefer to stay outdoors for a long period of time in situations such as rain, high temperature, or traffic congestion. 
     When the environment information about a high temperature or rain or traffic congestion information is not received from the server  20  (No in operation  1002 ), the route to be guided as the shortest path may be determined as the indoor route ( 1003 ). 
     According to the above-described operations, the user may be provided with an optimized route guidance considering the user input according to the user&#39;s preference and the external environment. 
     As is apparent from the above, according to the embodiments of the disclosure, the electronic device and the control method thereof can set a shortest route to be guided based on a user&#39;s selection or an external environment, thereby providing a user with an optimized route guidance service. 
     Although embodiments have been described for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the disclosure. Therefore, embodiments have not been described for limiting purposes.