Method of displaying itinerary information and related apparatus
Patent Information
- Application Number
- CN202610846619.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2026-10-13
AI Technical Summary
这种方式不够直观,用户体验差
Smart Images

Figure CN122909340A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminals, and more particularly to a method and related apparatus for displaying travel information. Background Technology
[0002] Users can use electronic devices to plan and view various trips. These devices typically display trip information as text, which is not intuitive and results in a poor user experience. Summary of the Invention
[0003] This application provides a method and related apparatus for displaying itinerary information. It not only makes it easier to obtain itinerary information but also allows for a more intuitive display of the obtained itinerary. Users can observe the itinerary information more clearly.
[0004] In a first aspect, this application provides a method for displaying trip information, the method comprising: an electronic device displaying a first user interface of a first application; the electronic device running a third application and displaying a first control provided by the third application; the electronic device responding to a user operation applied to the first control and acquiring first trip information of a first trip in the first user interface in a first manner; the electronic device displaying a second user interface of a second application; the electronic device running the third application and displaying a second control provided by the third application; the electronic device responding to a user operation applied to the second control and acquiring second trip information of a second trip in the second user interface in a second manner; and responding to the first operation, the electronic device displaying a user interface provided by the third application containing a first map, the first map including the first trip information and the second trip information, wherein the first manner and the second manner are different.
[0005] By implementing the above methods, electronic devices can not only more conveniently acquire trip information, but also display the acquired trips more intuitively. This makes it clearer for users to observe trip information.
[0006] In conjunction with the first aspect, in some implementation methods, the first method and the second method are one of the following: taking a screenshot of the first user interface and extracting the first trip information included in the first user interface, taking a picture and obtaining the first trip information included in the picture, or copying the first trip information included in the first user interface.
[0007] In conjunction with the first aspect, in some implementations, the first application is a camera application, the first user interface includes a shooting preview interface, and the first method is to take a picture and obtain the first trip information included in the picture.
[0008] In conjunction with the first aspect, in some implementations, the third application is a system assistant application or a calendar application.
[0009] In conjunction with the first aspect, in some implementations, the first trip information includes: the first time of the first trip, the first location of the first trip, and the first item included in the first trip; the second trip information includes: the second time of the second trip, the second location of the second trip, and the second item included in the second trip; the first map displays: a first location marker, the first time, the first location, the first item, a second location marker, the second time, the second location, and the second item; the first location marker is located at the position representing the first location on the first map; the second location marker is located at the position representing the second location on the first map; among all location markers on the first map, the first time and the first item are closest to the first location marker, and the second time and the second item are closest to the second location marker.
[0010] In this way, electronic devices can display trip information in map form. Users can see the time, location, and activities for each trip.
[0011] In conjunction with the first aspect, in some implementations, the first map also displays a first route from the location of the first location to the location of the second location.
[0012] In conjunction with the first aspect, in some implementation methods, the first map also displays one or more of the following: the mode of transportation corresponding to the first route, the time spent using the first route, the amount spent using the first route, the traffic light information on the first route, and the congestion situation on the first route.
[0013] This allows users to see the location of each trip on the map. Users can also see the route between two trips, making it easier for them to execute their trips.
[0014] In conjunction with the first aspect, in some implementations, the first map also displays a second route from the location of the first location to the location of the second location.
[0015] In conjunction with the first aspect, in some implementations, the first route is a solid line and the second route is a dashed line; or the line of the first route is thicker than the line of the second route; or the color of the first route is darker than the color of the second route.
[0016] In this way, electronic devices can display multiple routes on a map for users to choose from, with the first route being the better route compared to the second.
[0017] In conjunction with the first aspect, in some implementations, the first time is prior to the second time, the first location marker includes a first number, the second location marker includes a second number, and the first number is less than the second number.
[0018] In this way, electronic devices can also use location markers to indicate the sequence of events.
[0019] In conjunction with the first aspect, in some implementations, before the electronic device displays a user interface containing a first map, the method further includes: the electronic device acquiring third trip information, the third trip information including: a third time of the third trip, a third location of the third trip, the first time being before the second time, and the second time being before the third time; the first map also displays: a first route from the location of the first location to the location of the second location, and a third route from the location of the second location to the location of the third location.
[0020] In conjunction with the first aspect, in some implementations, the first time is the earliest of all times displayed on the first map, which also displays a fourth route from the current or preset location of the electronic device to the location representing the first location.
[0021] In this way, the electronic device can display the route to the first destination based on the user's actual needs, resulting in a better user experience. If the electronic device still displays the location of the last destination of the previous day pointing to the location of the current first destination, it does not take the user's actual situation into account and may not meet the user's needs.
[0022] In conjunction with the first aspect, in some implementations, the first map also displays a selected first label, and the trips corresponding to the trip information displayed in the first map all belong to the trip category indicated by the first label.
[0023] In conjunction with the first aspect, in some implementations, the trip category is classified based on one or more of the following dimensions: the trip's time, the trip's location, and the type of items included in the trip.
[0024] In this way, after obtaining trip information, electronic devices can add tags to the trips indicated by that trip information. Users can then choose to view trips with a specific tag selected.
[0025] In conjunction with the first aspect, in some implementations, after the electronic device displays a user interface containing the first map, the method further includes: The electronic device receives user operations applied to the area where the first time, the first event, or the first location marker is located, and displays a third user interface. The third user interface includes: a second map, the first time, the first event, and the address corresponding to the first location. The second map displays the first location marker, and the area represented by the second map is smaller than the area represented by the first map.
[0026] In this way, electronic devices can display detailed information about individual trips. Furthermore, they offer trip-sharing functionality, allowing users to easily share their trips with others. Electronic devices can also provide navigation features, eliminating the need for users to manually input trip locations, making operation even more convenient.
[0027] In conjunction with the first aspect, in some implementations, the characteristic is that the electronic device acquiring the first trip information specifically includes: the electronic device acquiring a first part of the first trip information, the first part of the information including one or two of the first time, the first location, and the first event; the electronic device displaying a first prompt message, the first prompt message being used to prompt the user to supplement information; and the electronic device acquiring a second part of the information, the second part of the information being information in the first trip information other than the first part of the information.
[0028] In this way, electronic devices can remind users that incomplete trip information has been obtained, preventing the display of incomplete trip details. Electronic devices can also use simple question-and-answer formats to remind users to complete incomplete trip information, making the process easier for users.
[0029] In conjunction with the first aspect, in some implementations, the electronic device obtains the first part of the information by one of the following methods: recognizing text converted from input speech, recognizing input text, recognizing text in a screenshot, recognizing text in a photograph obtained by taking a picture, or recognizing text obtained by copying.
[0030] In conjunction with the first aspect, in some implementations, the first prompt information includes: one or more recommended information based on the first part of information, user habits, and public knowledge; the electronic device obtaining the second part of information specifically includes: the electronic device receiving an operation from the user accepting the recommended information, and determining the recommended information as the second part of information.
[0031] In conjunction with the first aspect, in some implementations, the first prompt information is used to prompt the user to supplement the first trip information with information other than the first part of the information; the electronic device obtaining the second part of the information specifically includes: the electronic device obtaining the second part of the information input by the user.
[0032] In conjunction with the first aspect, in some implementations, the first map also displays a second prompt message indicating a conflict between the first trip and the second trip.
[0033] In this way, electronic devices can not only alert the user to a trip conflict as soon as they receive a single trip information entry, but also remind the user of the conflict again when multiple trip information entries are displayed. This allows for a second notification if the user ignores the first one. Furthermore, the electronic device can respond to user actions by modifying the time of the conflicting trip, thereby eliminating the conflict between trips.
[0034] In conjunction with the first aspect, in some implementations, the first time includes the start time and end time of the first trip, the second time includes the start time and end time of the second trip, the first location is different from the second location, the start time of the first trip is the same as the start time of the second trip; or the start time of the second trip is later than the end time of the first trip, and the time difference between the start time of the second trip and the end time of the first trip is less than the time spent traveling from the first location to the second location; or the end time of the first trip is later than the start time of the second trip; or the first location and the second location belong to different cities, and the electronic device has not obtained ticket purchase information for traveling from the city where the first location is located to the city where the second location is located.
[0035] In this way, electronic devices can distinguish different conflict situations and provide corresponding solutions.
[0036] In conjunction with the first aspect, in some implementations, the first map also displays one or more of the following: a first card, which includes: some or all of the trip information obtained by the electronic device; a second card, which includes one or more of the following: a first route, the time spent using the first route, the amount consumed using the first route, a control for navigating using the first route, and a control for hailing a taxi using the first route, wherein the first route is a route from the location representing the first location to the location representing the second location, and the duration between the current time and the second time is less than a first threshold; and a third card, which is used to provide an entry point for services related to the trip information displayed on the first map.
[0037] In this way, as the time for a certain trip approaches, the electronic device can alert the user. Furthermore, it can recommend transportation options from the user's current location to that trip's destination. This serves two purposes: it provides advance notice, giving the user time to prepare and avoid missing their trip; and it recommends transportation options, saving the user time from manually searching for them.
[0038] In conjunction with the first aspect, in some implementations, after the electronic device displays a user interface containing a first map, the method further includes: the electronic device receiving a user operation applied to a third control displayed on the first map; the electronic device displaying a fourth user interface for adding new trip information; and the electronic device acquiring the new trip information in the fourth user interface.
[0039] In conjunction with the first aspect, in some implementations, after the electronic device displays a user interface containing a first map, the method further includes: the electronic device receiving a user operation applied to a fourth control displayed on the first map; the electronic device displaying a fifth user interface for modifying travel information; and the electronic device receiving the user operation to modify the travel information in the fifth user interface.
[0040] In conjunction with the first aspect, in some implementations, the method further includes: the electronic device displaying a sixth user interface, the sixth user interface displaying: a first area, a second area, and a fifth control, the first area displaying: the first time, the first location, and the first event, the second area including: the second time, the second location, and the second event, the first time being located before the second time, the first area being displayed above the second area, and the electronic device displaying a user interface containing a first map in response to an operation on the fifth control.
[0041] In conjunction with the first aspect, in some implementations, the first area also displays a first number, and the second area also displays a second number, wherein the first number is smaller than the second number.
[0042] In conjunction with the first aspect, in some implementations, the first area also displays: an image of the first location, attributes of the first location, the distance between the current location of the electronic device and the first location, and the time taken to travel from the current location of the electronic device to the first location, wherein the first time is the earliest of all times displayed in the sixth user interface. The second area also displays: an image of the second location, attributes of the second location, the distance between the first location and the second location, and the time taken to travel from the first location to the second location, wherein the attributes are used to indicate the category of the location.
[0043] In conjunction with the first aspect, in some implementations, before the electronic device displays the sixth user interface, the method further includes: the electronic device displaying a seventh user interface, the seventh user interface including a first option for displaying trip information acquired by the electronic device; the electronic device receiving a user operation applied to the first option; or the electronic device displaying an eighth user interface including the second card, the second card displaying the trip information acquired by the electronic device; the electronic device receiving a user operation applied to the second card.
[0044] In this way, the electronic device can access the user interface for viewing trip information through the aforementioned seventh or eighth user interface.
[0045] In conjunction with the first aspect, in some implementations, after the electronic device displays a user interface containing the first map, the method further includes: the electronic device responding to a user operation to display a zoomed-out version of the first map, the zoomed-out first map displaying: a third prompt message, the third prompt message being used to prompt the user that the location of the trip information obtained by the electronic device belongs to a first city; the electronic device receiving a user operation acting on the third prompt message to display an enlarged version of the first map, the enlarged first map displaying: trip information containing locations belonging to the first city.
[0046] In a second aspect, this application provides an electronic device including a memory, a processor, and computer instructions stored in the memory, wherein the processor executes the computer program to implement the method described in the first aspect or any embodiment of the first aspect.
[0047] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect or any of the embodiments of the first aspect.
[0048] Fourthly, embodiments of this application provide a computer program product comprising computer instructions that, when executed by a processor, implement the method described in the first aspect or any of the embodiments of the first aspect. Attached Figure Description
[0049] Figure 1A A detailed flowchart illustrating a user's execution of a trip (such as taking a train) provided in an embodiment of this application; Figures 1B-1D This application provides a user interface for obtaining travel information via voice input in its embodiments. Figure 1E-Figure 1G This application provides a user interface for obtaining travel information via text input in its embodiments. Figures 2A-2C This application provides a user interface for obtaining travel information via screenshot in an embodiment of the present application. Figures 3A-3H This application provides a user interface for acquiring travel information by means of photography in its embodiments. Figures 4A-4F This application provides a user interface for obtaining travel information through any door in its embodiments. Figure 4G-Figure 4IAn example is shown showing the user interface of an electronic device that obtains trip information by copying; Figures 4J-4L An example is shown showing the user interface of an electronic device that obtains trip information by selecting a screenshot; Figures 5A-5C This application provides a user interface for supplementing complete itinerary information when incomplete itinerary information is obtained; Figures 6A-6C This application provides a user interface that immediately alerts users to trip conflicts after obtaining trip information. Figures 7A-7G The user interface for displaying itinerary information provided in this application embodiment; Figures 8A-8C This application provides a user interface that alerts users to trip conflicts after displaying trip information. Figure 9 This application provides a user interface for notifying users of upcoming trips in its embodiments. Figure 10 A flowchart illustrating the method for displaying travel information provided in an embodiment of this application; Figure 11 A schematic diagram comparing conflict-free and conflicting trips provided in the embodiments of this application; Figure 12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application; Figure 13 A software structure block diagram of an electronic device provided in an embodiment of this application; Figure 14 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation
[0050] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0051] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0052] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0053] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with a user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.
[0054] In daily life, users can execute various schedules. However, users often need to consider and query relevant information during the execution of these schedules, making the process cumbersome and complex.
[0055] Figure 1A An exemplary diagram illustrates a detailed process of a user executing a trip (such as taking a train).
[0056] like Figure 1A As shown, the process of a user taking a train can be roughly divided into three stages: before the trip, during the trip, and at the destination. Specifically, the detailed process of a user taking a train, in chronological order, may include: receiving a business trip notification, booking tickets and hotels, planning and preparing for the trip, departing for the train station, arriving at the train station, going through security, waiting at the station, checking tickets at the ticket gate, boarding the train, during the train journey, getting off at the station, exiting the station, and going to the next destination.
[0057] The preparation stage before taking a train involves many tedious steps, such as: checking the destination and train schedule, searching and booking train tickets, searching and booking hotels, discovering conflicts between train travel and other planned activities, and adjusting related itineraries. These steps are cumbersome and complex. Users not only need to manually switch between different applications multiple times to search for travel-related information, adding to their burden, but the travel information obtained by electronic devices is mostly presented in text format on the user interface, which is not intuitive.
[0058] In some implementations, users can use electronic devices to schedule trips. Trips can be divided into two main categories: online trips and offline trips.
[0059] An offline itinerary refers to a user performing a specific task at a specific time and place. The itinerary information includes: time, location, and task. Time can include one or more of the following: date, start time, end time, and duration. A task refers to a user's behavior, activity, or event performed offline. For example, a task can include any of the following: attending a meeting, visiting a company, attending a dinner, attending an exhibition, taking a flight, checking into a hotel, visiting a museum, going on a picnic, participating in outdoor activities, or shopping.
[0060] An online itinerary refers to a user's performance of a specific task using an electronic device at a particular time. The itinerary information for an online itinerary includes the time and the task itself. Optionally, the itinerary information may also include the location, meaning the online itinerary can also be performed at a specific location. The time referenced is the same as the time included in the itinerary information for online itineraries. An task refers to an action, activity, or event performed by a user online. For example, a task may include any of the following: attending an online meeting, buying tickets online, or taking an online exam.
[0061] The itineraries involved in this application are generally to take place in the future; that is, the times of the aforementioned online and offline itineraries are at some point in the future.
[0062] In some implementations, electronic devices can obtain trip information through assistant applications, specifically in the following two ways: The first method involves the electronic device automatically retrieving travel information from other applications via an assistant app, with the user's permission. These other applications can include: SMS apps, email apps, phone apps, calendar apps, ticketing apps, video apps, and so on.
[0063] For example, an electronic device can obtain travel information based on the text content of SMS messages received or sent by an SMS application. An electronic device can obtain travel information based on the text content of emails received or sent by an email application. An electronic device can obtain travel information based on the voice content of incoming or outgoing calls by a phone application. An electronic device can obtain travel information based on stored text content in a calendar application. An electronic device can obtain travel information based on the text content of ticket purchase records in a ticketing application. An electronic device can also obtain travel information based on subscription information for video broadcasts in a video application. For example, subscription information for video broadcasts could be the text content "Subscribed to [specific live stream name] on March 3rd at 19:00." The above-mentioned applications are merely illustrative examples; other applications may include more or fewer types of applications.
[0064] The aforementioned acquisition of itinerary information based on text content can refer to: an electronic device determining whether the text content contains keywords indicating time, location, or event, and then associating these keywords with the context of the text content to obtain itinerary information. For example, the electronic device acquires the text content "A short meeting needs to be held at 10:00 AM on the 3rd of this month in Room 1201 of Company A." Then, the electronic device acquires the keywords indicating time ("10:00 AM on the 3rd of this month"), location ("Company A, Room 1201"), and event ("a short meeting"). Finally, the electronic device associates these keywords with the context to obtain the itinerary information "Attending a meeting at Company A, Room 1201, March 3rd, 10:00 AM."
[0065] The aforementioned acquisition of travel information based on voice refers to the electronic device first converting speech into text content, and then acquiring travel information based on the converted text content. The specific process of acquiring travel information based on the converted text content can be found in the aforementioned description of acquiring travel information based on text content, and will not be repeated here.
[0066] The second method involves electronic devices obtaining trip information via an assistant application, triggered by the user.
[0067] The assistant application can be a system application or a third-party application. In this embodiment, a system application refers to an application directly provided by the operating system of the electronic device. A third-party application refers to an application provided by another developer and obtained by the electronic device via the Internet.
[0068] Assistant apps can provide users with the information and services they need. For example, an assistant app can interact with users through voice commands to make phone calls, check the weather, and perform other functions. An assistant app can also intelligently recognize information in previewed or captured images using the camera. Furthermore, an assistant app can recognize information currently displayed on the electronic device and provide relevant suggestions and services to help users operate more easily.
[0069] The term "assistant application" is merely a word used in this embodiment, and its meaning has been described in this embodiment. Its name does not constitute any limitation on this embodiment.
[0070] In one possible implementation, system applications such as calendars can also implement the method for displaying itinerary information provided in the embodiments of this application to obtain and display itinerary information.
[0071] The following describes several methods provided by embodiments of this application for a user to trigger an electronic device to obtain trip information through an assistant application: Figures 1B-1D An example is shown of a user interface for an electronic device to obtain trip information via voice input.
[0072] Figure 1B A user interface 200 is illustrated as an example. User interface 200 is the desktop of an electronic device. User interface 200 includes multiple application icons. When user interface 200 is displayed, the user can trigger the electronic device to launch the assistant application and display it through various methods. Figure 1B The user interface 200 shown is provided. The methods for waking up the assistant application may include, but are not limited to: voice wake-up, breath wake-up, button wake-up, and contextual wake-up-free activation.
[0073] Voice wake-up can refer to the electronic device responding to a user's spoken custom wake word or default wake word (such as "Hello YOYO") to launch an assistant application.
[0074] Breath wake-up can refer to an electronic device using data collected by sensors such as motion sensors and posture sensors to recognize when a user changes the device's position and continues to do so, such as picking up the device, thereby launching an assistant application. Breath wake-up can also refer to an electronic device using data collected by a microphone to recognize when a user is about to speak, launching an assistant application without requiring the user to say a wake-up word.
[0075] Button wake-up can refer to the electronic device being able to launch an assistant application in response to a long press of the power button 201.
[0076] Contextualized wake-up-free operation can refer to the electronic device's ability to respond to clicks on the floating controls of assistant applications displayed in various user interfaces, thereby displaying user interface 210. The assistant application can be configured to automatically display its floating controls in specific scenarios.
[0077] In this embodiment of the application, the electronic device can wake up the assistant application when displaying any user interface, not limited to user interface 200.
[0078] like Figure 1C As shown, the user interface 210 may include a menu control 211 and a control 212. The menu control 211 can be used to access relevant interfaces of the assistant application, such as accessing a user interface for viewing travel information. The control 212 is used to access relevant interfaces provided by the assistant application that can receive text content input by the user, such as accessing a user interface that displays an input keyboard. For example, after launching the assistant application, the electronic device can activate the microphone to capture audio input by the user. The electronic device can respond to voice commands input by the user (e.g., "Meeting at 10:00 AM on the 3rd of this month in Room 1201 of Company A") and display... Figure 1D The user interface 220 shown.
[0079] like Figure 1D As shown, the user interface 220 may include: text boxes 221 and 222, menu control 211, and control 212. After receiving a voice command, the electronic device can convert the voice command into corresponding text content. Then, it retrieves the itinerary information based on the converted text content. For details on how to retrieve itinerary information based on text content, please refer to the first method of retrieving itinerary information described above; it will not be repeated here. For example, after receiving the voice command "Meeting at 10:00 AM on the 3rd of this month in Company A, Room 1201," the electronic device can convert the voice command into the text content "Meeting at 10:00 AM on the 3rd of this month in Company A, Room 1201" and display this text content in text box 221. Then, the electronic device can retrieve itinerary information such as "Attending Meeting 1 at Company A, Room 1201, March 3rd, 10:00 AM" based on the text content displayed in text box 221. The electronic device can also display the text content "Meeting 1 at Company A, Room 1201, March 3rd, 10:00 AM has been added to the itinerary" in text box 222 to notify the user that the itinerary information has been retrieved.
[0080] In this way, electronic devices can obtain travel information based on the user's voice input, making it more convenient.
[0081] The above Figures 1B-1DThis paper describes how an electronic device can obtain trip information for a single trip based on a user's voice input. However, it is not limited to this; if a user's voice input contains trip information for multiple trips, the electronic device can also obtain trip information for multiple trips based on that single voice input.
[0082] Figure 1E-Figure 1G An example is shown of a user interface for an electronic device to obtain trip information via text input.
[0083] Figure 1E User interface 210 is illustrated as an example. User interface 210 is the user interface displayed by the electronic device after the assistant application has been activated. The electronic device can respond to a click operation on control 212, displaying, for example... Figure 1F The user interface 230 is shown. The electronic device can receive text input by the user in the user interface 230.
[0084] like Figure 1F As shown, the user interface 230 may include: a text box 231, an input box 232, an input keyboard 233, a confirmation control 234, a menu control 211, and a control 212. For example, the text box 231 displays the text "...", indicating that the user is entering text. After receiving a click operation from the user on the input keyboard 233, the input box 231 displays the text "Meeting at 10:00 AM on the 3rd of this month in Room 1201 of Company A", indicating that the user has entered the text "Meeting at 10:00 AM on the 3rd of this month in Room 1201 of Company A". The electronic device can respond to a click operation on the confirmation control 234 to receive the text entered by the user. Then, it displays as shown... Figure 1G The user interface 240 shown.
[0085] like Figure 1GAs shown, the user interface 240 may include: text box 221, text box 222, menu control 211, and control 212. After receiving text input by the user, the electronic device can obtain the itinerary information represented by the text. For details on how to obtain itinerary information based on text content, please refer to the first method of obtaining itinerary information described above, which will not be repeated here. For example, after receiving the text "Meeting at 10:00 AM on the 3rd of this month in Room 1201 of Company A" input by the user, the electronic device can display this text content in text box 221. Then, the electronic device can obtain itinerary information such as "Attending Meeting 1 at 10:00 AM on March 3rd in Room 1201 of Company A" based on the text content displayed in text box 221. The electronic device can also display the text "Meeting 1 at 10:00 AM on March 3rd in Room 1201 of Company A has been added to the itinerary" in text box 222 to notify the user that the above itinerary information has been obtained. For a description of the user interface 240, please refer to the above description of the user interface 220. The difference is that the text content of the text box 221 in the user interface 220 is converted from the received voice command, while the text content of the text box 221 in the user interface 240 is the directly received text.
[0086] In this way, even when it is inconvenient for users to input voice, electronic devices can still obtain travel information based on the text input by the user.
[0087] Figures 2A-2C An example is shown of a user interface for an electronic device to obtain trip information by taking a screenshot.
[0088] Figure 2A User interface 250 is illustrated as an example. User interface 250 is a user interface provided for a photo album application on an electronic device. User interface 250 includes: image 241. The electronic device can display user interface 260 after waking up the assistant application while displaying user interface 250. The method for waking up the assistant application can be referred to the above regarding... Figure 1A Related descriptions.
[0089] like Figure 2BAs shown, the user interface 260 may include: menu control 211, control 212, and option 253. Option 253 is recommended by the electronic device based on the content displayed on the user interface 250. For example, if the electronic device detects that the user interface 250 contains text information and predicts that the user may need to create a trip, it can provide option 253 for "screenshotting and extracting the trip." Not limited to option 253, the electronic device can also predict other user needs and provide more options. The electronic device can respond to a click operation on option 253 by taking a screenshot of the user interface 250 and displaying the user interface 270. The electronic device can obtain trip information from the screenshot. Specifically, the electronic device can obtain text content from the screenshot and then obtain trip information based on the obtained text content. For details on how to obtain trip information based on text content, please refer to the description of the first method of obtaining trip information above; it will not be repeated here.
[0090] like Figure 2C As shown, the user interface 270 may include: text boxes 261, 262, and 263, menu control 211, and control 212. After the electronic device performs a click operation on option 253, it can take a screenshot of the user interface 250. The electronic device can then obtain trip information from the screenshot and display that trip information. Text box 261 displays the text "Screenshot to extract trip information," indicating that the electronic device is currently obtaining trip information by taking a screenshot. Text box 262 includes an image obtained from the screenshot of the user interface 250 and the text "Screenshot to extract trip information," indicating that the electronic device is obtaining text content from the screenshot and retrieving trip information based on that text content.
[0091] Text box 263 includes: text content 263A, a confirmation control 263B, and an edit control 263C. The text content 263A is used to ask the user whether the itinerary information obtained by the electronic device matches the user's wishes. For example, text content 263A may include "Add Company A 1201 Meeting 1 at 10:00 AM on March 3rd to the itinerary." "Company A 1201 Meeting 1 at 10:00 AM on March 3rd" is the itinerary information obtained by the electronic device from a screenshot. The electronic device can respond to a click operation on the confirmation control 263B to confirm that the itinerary information obtained by the electronic device matches the user's wishes. If the itinerary information represented by text content 263A does not match the user's wishes, the electronic device can also respond to a click operation on the edit control 263C, responding to the user's input modification operation in the itinerary information editing user interface, modifying the itinerary information represented by text content 263A.
[0092] In this way, electronic devices can obtain trip information from the content displayed on the screen, without requiring users to manually enter the trip information.
[0093] Figures 3A-3H An example is shown of a user interface for an electronic device to acquire trip information by taking a picture.
[0094] Specifically, electronic devices can acquire travel information through two shooting methods. Figures 3A-3C This paper introduces a method for obtaining travel information through photography. Figure 3D-Figure 3H Another method for obtaining travel information through photography was introduced.
[0095] Figure 3A User interface 280 is illustrated as an example. User interface 280 is a user interface provided for a camera application in an electronic device. User interface 280 includes a preview interface 271 that displays images captured in real time by the camera of the electronic device.
[0096] Electronic devices can wake up the assistant application and display the user interface 290 when the camera application is launched. The method for waking up the assistant application can be found above regarding... Figure 1A Related descriptions. For example... Figure 3B As shown, the user interface 290 may include: menu control 211, control 212, and option 283. Option 283 is recommended by the electronic device based on the content displayed on the user interface 280. For example, if the electronic device detects that the preview interface 271 of the user interface 280 contains text information, it predicts that the user may need to create a trip. Therefore, the electronic device can provide option 283, "Take a picture to extract the trip". Not limited to option 283, the electronic device may provide more options. The electronic device can respond to a click operation on option 283, displaying, for example... Figure 3C The user interface 300 is shown. The electronic device can obtain travel information from captured images while displaying the user interface 300. Specifically, the electronic device can extract text content from the captured images and then obtain travel information based on the extracted text content. For details on how to obtain travel information based on text content, please refer to the above description of the first method for obtaining travel information, which will not be repeated here.
[0097] like Figure 3CAs shown, the user interface 300 may include: text boxes 291 and 292, menu control 211, and control 212. After clicking option 283, the electronic device can take a picture. The picture taken by the electronic device may be the content in the preview interface 271. The electronic device can then obtain trip information from the captured picture and display the trip information. Text box 291 displays the text "Capture to extract trip information", indicating that the electronic device is currently obtaining trip information by taking a picture. Text box 292 includes a screenshot of the user interface 280 and the text "Capture screenshot to extract trip information", indicating that the electronic device is obtaining text content from the captured picture and obtaining trip information based on that text content.
[0098] Text box 293 includes, but is not limited to, text content 293A, a confirmation control 293B, and an edit control 293C. Text content 293A is used to ask the user whether the itinerary information obtained by the electronic device matches the user's wishes. For example, text content 293A may include "Add Company A 1201 Meeting 1 at 10:00 AM on March 3rd to the itinerary." "Company A 1201 Meeting 1 at 10:00 AM on March 3rd" is itinerary information obtained by the electronic device from a captured image. The electronic device can respond to a click operation on the confirmation control 292B to confirm that the itinerary information obtained by the electronic device matches the user's wishes. If the itinerary information represented by text content 293A does not match the user's wishes, the electronic device can also respond to a click operation on the edit control 292C, responding to the user's input modification operation in the itinerary information editing user interface, modifying the itinerary information represented by text content 293A.
[0099] Figure 3D The user interface 280 shown is... Figure 3A The user interface shown is consistent with 280. The electronic device can launch the camera application, i.e., display something like... Figure 3D When the user interface shown is displayed, the assistant application is activated, and then user interface 310 is displayed. For example... Figure 3E As shown, the user interface 310 may include menu control 211 and control 212. That is, in one possible implementation, the electronic device may not provide the aforementioned option 283. However, it is also possible to obtain travel information by taking a picture.
[0100] The electronic device can respond to a click operation applied to control 212 and display, as shown below. Figure 3FThe user interface 320 shown may include: a menu control 211, a control 212, an input box 311, and a control 315. Control 315 can be used to hide or expand various functional controls. The electronic device can respond to a click operation applied to control 315, expanding various functional controls and displaying, for example... Figure 3G The user interface 330 shown may include: an input field 311, a camera option 312, a gallery option 313, a file option 314, and a control 315. The electronic device can respond to a click on the camera option 312, capture an image, and display it as shown. Figure 3H The user interface 290 is shown. Electronic devices can also obtain trip information from captured images. Figure 3H The user interface 290 shown is the same as the one described above. Figure 3C The user interface shown is the same as 290, so it will not be described in detail here.
[0101] In this way, electronic devices can obtain trip information from the captured images, eliminating the need for users to re-enter the trip information.
[0102] Figures 4A-4F An example is shown of a user interface for an electronic device to obtain travel information through any door.
[0103] For example, embodiments of this application provide two methods for obtaining travel information through any door. Figures 4A-4C This paper introduces a method for obtaining travel information by transmitting text information through any door. Figures 4D-4H Another method for obtaining travel information by transmitting images through any door is introduced.
[0104] Any Door A "door to any application" is a system service or function provided by an electronic device that allows the device to easily transfer data from one application to another. Specifically, a door to any application allows the electronic device to display icons of one or more applications on the screen that can receive data to be transferred (e.g., text, documents, images, videos, hyperlinks, etc.). Upon detecting a continuous dragging of a floating element to the area of any application icon and subsequent release, the door to any application sends the data to be transferred to the corresponding application. "Door to any application" is merely a term used in this embodiment, and its meaning has been described in this embodiment; its name does not constitute any limitation on this embodiment.
[0105] Hot Zone A hot zone refers to the area on the display screen of an electronic device used to trigger an arbitrary door. The size (i.e., dimensions), location, and shape of the hot zone in this application can be set according to user needs and user experience. Hot zones are areas that the electronic device handles automatically and do not require user notification. That is, the electronic device does not need to display the hot zones on the screen to the user. In some other embodiments, the electronic device may also notify the user of the hot zones. For example, each hot zone can be highlighted using shadows, colors, etc., to make it known to the user.
[0106] Floating elements Electronic devices can display data to be transmitted. After the user inputs a user action (such as a long press) on this data, the electronic device responds to the user action and displays the content corresponding to the user action as a floating element.
[0107] A floating element is an element displayed on the screen that floats above other interface elements and can be dragged to any position on the screen by the user. A floating element can be a thumbnail or preview of the corresponding data to be transmitted, or it can be in other forms such as a name, a label, or part or all of the data to be transmitted; this application does not limit this.
[0108] Figure 4A User interface 340 is illustrated. User interface 340 is a user interface provided for a social application in an electronic device. User interface 320 includes a chat box 321. For example, chat box 321 includes the text content "Meeting at 10:00 AM on March 3rd in Room 1201 of Company A". The electronic device can respond to a long press operation on chat box 321 to display a floating element 331. Floating element 331 contains the text content in chat box 321. After a long press operation on chat box 321, the electronic device can respond to a drag operation on floating element 331 to drag floating element 331 to hot area 332. Hot area 332 may refer to the area to the right of dashed line 322. The direction of the drag operation on floating element 331 can be referenced to the direction indicated by the dashed arrow in user interface 340.
[0109] After dragging the floating element 331 to the hot zone 332, the electronic device can trigger the Anywhere Door function and display... Figure 4B The user interface 350 is shown. (Example) Figure 4BAs shown, the user interface 350 includes, but is not limited to: a chat box 321, a floating element 331, and a hotspot 332. The content provided by the social application in the user interface 350 is displayed in a three-dimensional tilted state, which distinguishes the content provided by the social application from the hotspot 332 and better reflects the characteristic that the electronic device can transmit data to the application in the hotspot 332 through any gateway. An icon 332A is displayed in the hotspot 332. The application corresponding to icon 332A is an assistant application. The floating element 331 can display the data to be transmitted, such as the text content "Meeting at 10:00 AM on March 3rd in Room 1201 of Company A" in the chat box 321.
[0110] The electronic device can respond to the operation of dragging the floating element 331 and releasing it on the icon 332A, transferring the data to be transmitted corresponding to the floating element 331 to the assistant application and displaying it as shown. Figure 4C The user interface shown is 360°. For example, the direction of drag operations can be referenced... Figure 4B The dotted arrow in the image. It's worth noting that the entire user interaction—from dragging the floating element 331 to the hotspot 332, and then releasing the floating element 331 from icon 332A—is a continuous, ongoing user action. (For example...) Figure 4C As shown, after the electronic device responds to the dragging of the floating element 331 and releases it onto icon 332A, the assistant application obtains the data to be transmitted corresponding to the floating element 331, namely the text content "Meeting at 10:00 AM on March 3rd in Room 1201 of Company A". The assistant application can then extract the itinerary information "Meeting 1 at 10:00 AM on March 3rd in Room 1201 of Company A" from the aforementioned text content. For details on how to obtain itinerary information based on text content, please refer to the relevant introduction of the first method for obtaining itinerary information mentioned above.
[0111] The user interface 360 may include, but is not limited to, text boxes 351 and 352, menu control 211, and control 212. Text box 351 displays the text "Copy Extract Trip," indicating that the electronic device is currently obtaining trip information by recognizing copied text content. Text box 352 includes, but is not limited to, text content 352A, a confirmation control 352B, and an edit control 352C. For more information on text box 352, please refer to the above description. Figure 3C The detailed description of the text box 293 shown is not repeated here.
[0112] Figure 4DUser interface 370 is illustrated. User interface 370 is also a user interface provided for social applications on an electronic device. User interface 370 includes a chat box 361. For example, chat box 361 displays the text "Meeting at 10:00 AM on March 3rd in Room 1201 of Company A". The electronic device can respond to a selection operation applied to chat box 361, partially screenshotting the selected area and displaying a floating element 381. Floating element 381 includes a screenshot containing the content displayed in chat box 361. The selection operation may refer to a swipe operation by the user using a single knuckle near chat box 361. The path of the selection operation on the screen can be referenced. Figure 4D The dashed closed curve 361A is shown in the image. After a selection operation is applied to the chat box 361, the electronic device can respond to a drag operation applied to the floating element 381, dragging the floating element 381 to the hot zone 372. The hot zone 372 can refer to the area to the right of the dashed line 362. The direction of the drag operation applied to the floating element 381 can be referenced to the direction indicated by the dashed arrow in the user interface 370.
[0113] After dragging the floating element 381 to the hot zone 372, the electronic device can trigger the Anywhere Door function and display... Figure 4E The user interface shown is 380.
[0114] like Figure 4E As shown, the user interface 380 includes: a chat box 361, a floating element 381, and a hotspot 372. Similarly, the content provided by the social application in the user interface 380 is displayed in a 3D tilted state. The hotspot 372 displays an icon 372A. The application corresponding to icon 372A is an assistant application. The floating element 381 can display data to be transmitted, such as a screenshot of the text content "Meeting at 10:00 AM on March 3rd in Room 1201 of Company A" from the chat box 361.
[0115] The electronic device can respond to the operation of dragging the floating element 381 and releasing it on the icon 372A, transferring the data to be transmitted corresponding to the floating element 381 to the assistant application and displaying it as shown. Figure 4F The user interface 390 is shown. For example, the direction of the drag operation can be referenced... Figure 4E The dashed arrow in the image. It is worth noting that the operation from dragging the floating element 381 to the hot zone 332, to dragging the floating element 381 and releasing it on the icon 372A, is a continuous and constant user operation.
[0116] like Figure 4FAs shown, after the electronic device responds to the dragging of the floating element 381 and releases it at icon 372A, the assistant application obtains the data to be transmitted corresponding to the floating element 381. The assistant application can then recognize the text content contained in the floating element 381: "Meeting at 10:00 AM on March 3rd in Room 1201 of Company A". Based on the above text content, the assistant application obtains the itinerary information: "Meeting 1 at 10:00 AM on March 3rd in Room 1201 of Company A". For details on how to obtain itinerary information based on text content, please refer to the above description of the first method for obtaining itinerary information. The user interface 390 may include: text box 391, text box 392, menu control 211, and control 212. Text box 391 displays the text content "Select to extract itinerary", indicating that the electronic device is currently obtaining itinerary information by recognizing text in a screenshot. Text box 392 includes, but is not limited to: text content 392A, confirmation control 392B, and edit control 392C. For details on text box 392, please refer to the above description of... Figure 3C The description of text box 293 shown will not be repeated here.
[0117] In another possible implementation, the electronic device can obtain trip information based on copied text content and trip information based on partial screenshots in the following ways.
[0118] Figure 4G-Figure 4I An example is shown of a user interface for an electronic device to obtain trip information by copying text.
[0119] Figure 4G A user interface 570 is illustrated. User interface 570 is a user interface provided for a social application on an electronic device. User interface 570 includes a chat box 571. For example, chat box 571 includes the text "Meeting at 10:00 AM on March 3rd in Room 1201 of Company A". The electronic device can respond to a long press operation on chat box 571 to display an options bar 572. Options bar 572 includes a copy option 572A. The electronic device can respond to a click operation on copy option 572A to copy the text content included in chat box 571. The electronic device can then activate an assistant application and display... Figure 4H The user interface shown is 580. For instructions on how to wake up the assistant application, please refer to the above information. Figure 1A Related descriptions.
[0120] like Figure 4HAs shown, the user interface 580 may include, but is not limited to, menu control 211, control 212, and option 581. Option 581 is recommended by the electronic device based on the copied text content. For example, the electronic device detects that text content has just been copied and predicts that the user may need to create a trip. Therefore, the electronic device can provide option 581 for "copy and extract trip". Not limited to option 581, the electronic device may provide more options. The electronic device can respond to a click operation on option 581 and display... Figure 4I The user interface 360 is shown. The electronic device can retrieve trip information from copied text content while displaying the user interface 360. Figure 4I The user interface shown in 360 can be referenced from the above. Figure 4C The user interface shown in Figure 360 will not be described in detail here.
[0121] Figures 4J-4L An example is shown of a user interface for an electronic device to obtain trip information by selecting a screenshot.
[0122] Figure 4J A user interface 590 is illustrated. User interface 590 is a user interface provided for a social application on an electronic device. User interface 590 includes a chat box 591. For example, chat box 591 includes the text "Meeting at 10:00 AM on March 3rd in Room 1201 of Company A". The electronic device can respond to a selection operation applied to chat box 591, partially capturing the selected area to obtain a screenshot. This selection operation can refer to a swipe operation performed by the user using a single knuckle near chat box 591. The path of this selection operation on the screen can be referenced... Figure 4J The dashed closed curve 591A in the image. The screenshot above may include the content displayed in chat box 591. The electronic device can then wake up the assistant application and display... Figure 4H The user interface shown is 580. For instructions on how to wake up the assistant application, please refer to the above information. Figure 1A The relevant description. Then the electronic device can wake up the assistant application and display... Figure 4K The user interface shown is 600. For instructions on how to wake up the assistant application, please refer to the above information. Figure 1A Related descriptions.
[0123] like Figure 4KAs shown, the user interface 600 may include, but is not limited to, menu control 211, control 212, and option 601. Option 581 is recommended by the electronic device based on a screenshot. For example, the electronic device detects that a screenshot has just been obtained through a selection operation, and that the screenshot contains text content, predicting that the user may have a need to create a trip. Therefore, the electronic device can provide option 601 for "select and extract trip". Not limited to option 601, the electronic device may provide more options. The electronic device can respond to a click operation on option 601 by displaying... Figure 4L The user interface 390 is shown. The electronic device can obtain trip information from the copied text content during the display of the user interface 360. Figure 4I The user interface 390 shown can be referenced from the above. Figure 4F The user interface 390 shown here will not be described in detail.
[0124] It should be noted that the trip information obtained by electronic devices through the above methods can be synchronized with calendar applications.
[0125] How electronic devices add tags to trips In some implementations, after acquiring trip information, the electronic device can add tags to the trip indicated by that trip information. These tags can be categorized based on one or more of the following dimensions: 1. Categorize based on the time of the trip information. For example, electronic devices can categorize tags based on the date, month, and year of the trip information. Tags added by electronic devices can include: March 3rd trip, March trip, 2024 trip, etc.
[0126] 2. Categorize trips based on the type of event. For example, tags added to electronic devices can include: business trips, travel trips, study trips, etc.
[0127] 3. Categorize based on location information. For example, electronic devices can categorize locations based on the city where the trip information is located. The tags added by the electronic device can include: trip in city A, trip in city B, etc.
[0128] 4. Categorize trips based on whether they are online or offline. For example, tags added to electronic devices can include: online trip, offline trip, etc.
[0129] Electronic devices can add a "All Trips" tag to all trips indicated by the acquired trip information. Furthermore, a trip can have multiple tags across different dimensions. Multiple trips with the same tag can belong to the trip category indicated by that same tag.
[0130] In some implementations, electronic devices can add tags to trips in the following ways: The first method involves electronic devices proactively adding tags to itineraries indicated by acquired travel information, without requiring user intervention. Specifically, electronic devices can add tags to itineraries based on keywords contained in the travel information, according to the aforementioned dimensions. For example, an electronic device can add tags to itineraries based on the time of the travel information. For instance, if a travel information contains the keyword "meeting," the electronic device can add the tag "business trip" to the itinerary indicated by that travel information.
[0131] The second approach involves the electronic device prompting the user and adding tags to the trip information based on the user's actions. For example, after obtaining the trip information, the electronic device could display text such as "Which category should this trip information be added to?" Then, after receiving user input such as voice or text message "Add to Business Trips," it could add the "Business Trip" tag to the trip information. As another example, the electronic device could first determine multiple tags for the trip information across different dimensions and offer these tags to the user for selection. Then, after receiving user input, it could add one or more tags selected by the user to the trip.
[0132] In some implementations, electronic devices may obtain incomplete trip information during the process of acquiring trip details. Specifically, when the trip is offline, complete trip information should include: location, event, and time; incomplete trip information may lack one or two of these three details. When the trip is online, complete trip information should include: event and time; incomplete trip information may lack either the event or the time.
[0133] At this point, the electronic device can ask the user for complete trip information based on one or more of the following: user habits, previously obtained trip information, and general knowledge.
[0134] User habits can be derived from the functions of various applications used by the user on the electronic device. For example, user habits can include airline preferences, hotel preferences, ride-hailing preferences, etc. Airline preferences can include: the airlines the user frequently flies, the cabin class and seat type, etc. Hotel preferences can include: the hotel group the user frequently stays in, the hotel category, the room type, and the dates of stay, etc. Ride-hailing preferences can include: the ride-hailing application platform the user frequently uses, and the type of vehicle the user frequently uses, etc. In this embodiment, the above user habits are merely illustrative; user habits can also include more preferences related to the user's frequently performed activities, and are not limited thereto.
[0135] Public knowledge can refer to information or facts that are generally recognized and understood by members of a group within a certain scope. For example, public knowledge may include: the mode of transportation from city A to city B (e.g., whether it is direct, whether a transfer is required, whether it can be reached by train, or whether it can be reached by plane), real-time traffic conditions from point A to point B within the same city, travel time, and specific mode of transportation (e.g., subway, bus).
[0136] Figures 5A-5C An example is shown of a user interface for an electronic device to supplement complete trip information when incomplete trip information is obtained.
[0137] Figure 5A A user interface 400 is illustrated. User interface 400 is a user interface for an assistant application to obtain trip information by inputting voice. User interface 400 includes, but is not limited to: text boxes 461, 462, 463, and control 464.
[0138] As can be seen from user interface 400, the electronic device receives a voice command and then displays the text content "Book a flight to City B" converted from the voice command in text box 461. At this time, the electronic device can obtain the itinerary information "Take a flight to City B". This itinerary information only includes the event (such as taking a flight to City B) and the location (such as the airport in City A where the flight will be taken), but lacks time (such as the flight time). Therefore, the electronic device determines that the itinerary corresponding to this itinerary information is incomplete. Then, based on the previously obtained itinerary information, such as needing to attend a meeting at the City B Conference Center on the afternoon of March 12, and user habits, such as the user frequently flying with Air A, the electronic device can ask the user what specific time is missing from the above itinerary information. For example, the electronic device can ask the user about the time by displaying text box 471, which displays the text content "You have a meeting 5 at the City B Conference Center on the afternoon of March 12. We recommend an Air A flight from 8:10 to 11:15 that morning" and related flight information.
[0139] After the electronic device receives the text "Okay, I'll book this trip" from the user's voice-converted text box 462, it confirms that the user accepts the recommendation. Once the electronic device confirms the user's acceptance, it can display control 464. Control 464 can be used to access the user interface for functions related to the recommendation. For example, the electronic device can also respond to a user's click on control 464 by sending the confirmed flight information and user information to the transportation ticketing application via an interface provided by the application. Then, it redirects to the transportation ticketing application and displays the flight booking interface.
[0140] This makes it convenient for users to operate, allowing them to purchase tickets without having to manually open the ticketing application. After receiving the information that the user has completed the ticket purchase, the electronic device can supplement the above incomplete itinerary information to obtain the complete itinerary information: "March 12, 8:10 AM, take a flight from City A Airport to City B".
[0141] In this embodiment, the method of asking the user by recommending a flight is merely illustrative. The electronic device can also recommend multiple flights for the user to choose from. Furthermore, it is not limited to the above-mentioned itinerary type; other itinerary types, such as booking a hotel, attending a meeting, or participating in a party, can also ask the user for relevant content to complete the itinerary information when an incomplete itinerary is obtained.
[0142] Figure 5B A user interface 410 is illustrated. The user interface 410 includes text boxes 471, 472, 473, 474, 475, and 476.
[0143] As can be seen from user interface 410, the electronic device receives a voice command and then displays the text content converted from the voice command in text box 471: "I want to take my children and elders on a two-day trip to City A. Any recommendations?". At this time, the electronic device can obtain the itinerary information "to travel to City A" based on the above text content. This itinerary information only includes the event (such as traveling to City A for two days), lacking time (such as the travel time) and location (such as the specific travel destinations). Therefore, the electronic device determines that the itinerary corresponding to this itinerary information is incomplete. Then, based on common knowledge, such as that the types of attractions suitable for children and elders could be historical sites or famous universities, the electronic device can ask the user by displaying text box 472: "Considering the travel needs of your children and elders, the following itinerary includes historical sites and famous universities, etc." and a map route for the two-day itinerary. The map route for the two-day itinerary may include, but is not limited to: each travel destination, the time spent at each destination, and the route between the two travel destinations.
[0144] After the electronic device receives the text "Okay, that's it" from the user's voice-converted text box 473, it confirms that the user accepts the above recommendation. At this point, the electronic device can obtain the itinerary information: "Travel to City A according to the recommended two-day itinerary map route." This itinerary information includes: locations (such as the multiple locations shown in the map route of the above two-day itinerary) and activities (such as traveling in City A for two days), but time is still missing (such as the travel dates). Next, the electronic device can ask the user about the missing content of the itinerary information, namely the time. For example, the electronic device can ask the user about the missing time information by displaying text box 474, which displays the text "On what dates is the above two-day itinerary specifically scheduled?".
[0145] After the electronic device receives the text content "March 28th to March 29th" from the user-inputted speech-to-text box 475, it determines the time frame of the user-inputted itinerary information. At this point, the electronic device can obtain the itinerary information: "Travel to City A from March 28th to March 29th according to the recommended two-day itinerary map route." This itinerary information includes time, location, and activities, and is complete. Therefore, the itinerary indicated by this itinerary information is a complete itinerary.
[0146] Figure 5C A user interface 610 is illustrated. The user interface 610 may include text boxes 611, 612, 613, and 614.
[0147] As can be seen from user interface 610, the electronic device can receive voice commands and then display the text content converted from the voice command, "Where should I stay the night before Conference A?", in text box 611. At this time, the electronic device can obtain the itinerary information "Check into a hotel the night before Conference A". This itinerary information only includes the time (e.g., the night before Conference A) and the event (e.g., checking into a hotel), but lacks the location (e.g., the address of the hotel). Therefore, the electronic device determines that the itinerary corresponding to this itinerary information is incomplete. Then, based on the previously obtained itinerary information, such as the time and location of Conference A, and user habits, such as hotel preferences, the electronic device asks the user what the specific location is that is missing from the above itinerary information. For example, the electronic device can ask the user what the specific location is by displaying text box 612. Text box 612 displays the text content "The location of Conference A is far from your company in City A, and the estimated travel time during the morning rush hour is 1 hour; we recommend Hotel Z, which is 2.8km away from the location of Conference A and is a hotel under your preferred Hotel C Group. The estimated travel time during the morning rush hour on the day of Conference A is 15 minutes" as well as a recommendation card for Hotel Z and a map containing route information from Hotel Z to the location of Conference A.
[0148] After the electronic device receives the text "Okay, I'll book this hotel" from the user's voice-converted text box 462, it confirms that the user accepts the recommendation. After confirming the user's acceptance, the electronic device can display control 614. Control 614 can be used to access the user interface for functions related to the recommendation. For example, the electronic device can also respond to a user's click on control 614 by sending the confirmed hotel booking information and user information to the hotel application via an interface provided by the hotel application. Then, it redirects to the hotel booking application and displays the booking interface for Hotel Z. This facilitates user operation, allowing users to book hotels without having to manually open the hotel booking application. After receiving the booking confirmation from the user, the electronic device can supplement the incomplete itinerary information to obtain the complete itinerary information: "Check-in at Hotel Z the day before Conference A".
[0149] The above-described inquiry and user feedback methods are merely illustrative and do not limit this application. Any electronic device that uses an inquiry method that allows it to supplement the trip information from the user's feedback after inquiring with the user is acceptable.
[0150] For example, a user may also refuse to accept information recommended by the electronic device and require the device to provide new recommendations. For instance, the electronic device might receive text messages like "Change your flight." As another example, a user may also receive partial recommendations from the electronic device, such as text messages like "I was satisfied with the first day's itinerary; let's change the itinerary for the second day."
[0151] In this way, electronic devices can remind users that incomplete trip information has been obtained, preventing the display of incomplete trip details. Electronic devices can also use simple question-and-answer formats to remind users to complete incomplete trip information, making the process easier for users.
[0152] In some implementations, after an electronic device acquires information from multiple trips, conflicts between these trips are inevitable. Specifically, the electronic device can determine if there is a conflict between two or more trips based on the time or location in the trip information. A detailed explanation of conflicts will be provided later; it will not be repeated here. In this case, the electronic device can alert the user to the existence of conflicting trips.
[0153] Figures 6A-6C An example is shown where an electronic device immediately alerts the user to a trip conflict after obtaining trip information.
[0154] Figure 6AA user interface 420 is illustrated as an example. User interface 420 is a user interface for an assistant application to obtain trip information by inputting voice. User interface 420 includes: text box 481, text box 482, and prompt control 483.
[0155] After acquiring itinerary information, the electronic device determines whether there is a conflict between the current itinerary and historical itineraries based on previously acquired itinerary information and the currently acquired itinerary information. If a conflict is determined, the electronic device can notify the user of the specific conflicting itinerary immediately after acquiring the itinerary information. For example, the electronic device notifies the user via text box 482 that it has acquired the itinerary information for Meeting 4, displaying the text "Meeting 4 at Company A, Room 1205, March 7th at 3 PM has been added to the itinerary." The electronic device can determine a conflict between Meeting 4 and Meeting 3 based on the time in the previously acquired itinerary information for Meeting 3 and the time of Meeting 4. In this case, the electronic device can notify the user of the specific conflicting itinerary, for example, by displaying a prompt control 483. This prompt control 483 is used to notify the user that the currently added itinerary conflicts with a previously added itinerary.
[0156] The electronic device can also modify the trip information of conflicting trips. For example, the electronic device can display [a message] in response to a click operation on the prompt control 483. Figure 6B The user interface shown is 430.
[0157] like Figure 6B As shown, the user interface 430 may include: a prompt message 491, options 492, 493, and 494. Prompt message 491 indicates the specific schedule conflict. Option 492 modifies the time of one conflicting schedule. Option 493 modifies the time of another conflicting schedule. Option 494 sets the importance of the conflicting schedules. The options are not limited to the above; more options for resolving schedule conflicts may be included, which are not limited here. For example, prompt message 491 may display the text "Specific schedule conflict: Offline meeting 3 and offline meeting 4 overlap in time." Option 492 may display the text "Modify the time of meeting 3." Option 493 may display the text "Modify the time of meeting 4." Option 494 may display the text "Mark importance." The electronic device can respond to a click operation on option 494 to enter a user interface for determining the importance of the conflicting schedules. In this user interface, the electronic device can determine that meeting 3 has a higher importance than meeting 4, or vice versa.
[0158] The electronic device can respond to a click operation on option 492, entering user interface 440 for modifying the time of meeting 3. For example... Figure 6C As shown, the user interface 440 may include editable text 501. The electronic device can edit the start time of meeting 3 in the user interface 440 to eliminate the conflict between meeting 3 and meeting 4.
[0159] Figures 7A-7G An example is shown of a user interface for an electronic device to display trip information.
[0160] Figure 7A An example is shown showing the entry point for an electronic device to access a user interface that displays trip information.
[0161] Figure 7A Example 'a' in the diagram illustrates user interface 450. User interface 450 is the interface displayed on the electronic device after waking up the assistant application when the desktop is shown. User interface 400 includes menu control 211 and control 212. The electronic device can respond to a click operation on menu control 211, displaying, for example... Figure 7A The user interface shown in c is 470.
[0162] Figure 7A Example b illustrates user interface 460. User interface 460 is the desktop of an electronic device. User interface 460 may include: card 411. Card 411 is a service card of an assistant application. Card 411 is used to display trip information obtained by the assistant application. Not limited to the trip information displayed on card 411, such as "March 6th trip: Submit manuscript A before 11:00 AM, meeting at client M's location at 3:00 PM", card 411 may also include other content related to the trip information. The electronic device can respond to a click operation on card 411 and display... Figure 7A The user interface shown in c is 470.
[0163] In one possible implementation, the electronic device may be limited to a click operation on card 411, displaying a user interface for determining whether the trip information acquired by the electronic device is complete. This user interface may include: trip information acquired by the electronic device presented in text content, a control for confirming completeness, and a control for supplementing information. The user can view the acquired trip information in this user interface and determine whether the acquired trip information is complete and whether additional trip information needs to be supplemented. See specific references. Figure 7A The user interface 570 is shown as d in the figure.
[0164] In the embodiments of this application, the above-mentioned entry points are only illustrative examples, and more entry points may be included to access the user interface for viewing the itinerary.
[0165] For example, an electronic device can display an always-on display, which includes an icon for an assistant application. The electronic device can display a user interface 470 in response to an action performed on the assistant application icon in the always-on display. The electronic device can display a lock screen, which includes an icon for an assistant application. The electronic device can display a user interface 470 in response to an action performed on the assistant application icon in the lock screen. The electronic device can display a notification bar, which includes notification information from the assistant application. The electronic device can display a user interface 470 in response to a click operation performed on the notification information from the assistant application in the notification bar. This embodiment of the application does not limit the entry point for accessing the user interface displaying trip information.
[0166] like Figure 7A As shown in Figure c, user interface 470 is a user interface provided for the assistant application of the electronic device. User interface 470 may include: schedule options 421. The assistant application may also provide various user-friendly functions, and user interface 420 may further include: lifestyle options, office options, and creative options. The electronic device can respond to a click operation on schedule options 421 and display... Figure 7B The user interface shown is 480.
[0167] Figure 7B An example is shown of a user interface that displays trip information in list format.
[0168] like Figure 7B As shown, the user interface may include: a toggle control 431, a label control 432, and a label control 433.
[0169] The switching control 431 is used to switch the display format of trip information. For example, the electronic device can respond to a click operation on the switching control 431 to switch the display format of trip information from list format to map format, displaying, for example... Figure 7C The user interface 490 is shown. When the user interface 480 displays the itinerary information in list format, the toggle control 431 displays the text "Switch Map".
[0170] Label controls 432 and 433 are used to indicate which trip categories the trips indicated by the trip information displayed by the electronic device belong to. For example, label control 432 indicates the trip category "All Trips". Label control 433 is used to indicate the trip category "Business Trip 1". When the electronic device selects label control 432, for example, when label control 432 is filled with black and the other label controls are filled with no color, the electronic device displays the trip information of the trips belonging to the trip category "All Trips" indicated by label control 432 in the user interface 480.
[0171] In user interface 480, trip information for a single trip can be displayed within a single area. Multiple trip information entries are displayed sequentially in the user interface 480 according to the chronological order of their included times. That is, the trip information with the earliest time is displayed above the trip information with the latest time.
[0172] The area used to display trip information can show: the location of this trip, the time of this trip, and the details of this trip. The area can also display: location attributes, location image, distance from the location of the previous trip to the location of this trip, mode of transportation used from the location of the previous trip to the location of this trip, time taken from the location of the previous trip to the location of this trip, and the sequence number of this trip.
[0173] The location attribute indicates the category of the location. The time of the previous trip is earlier than the time of this trip, and among trips belonging to the trip category indicated by the label selected on the electronic device, the time difference between the time of this trip and the time of the previous trip is the shortest. When this trip is the first trip, there is no previous trip. Similarly, the time of the next trip is later than the time of this trip, and among trips belonging to the trip category indicated by the label selected on the electronic device, the time difference between the time of the next trip and the time of this trip is the shortest. "This trip" refers to the trip indicated by the trip information displayed in the area. The sequence number of this trip indicates which trip it is within the trip category indicated by the label selected on the electronic device.
[0174] For example, the user interface 480 may also include: area 434, area 435, and area 436. Area 434 displays the itinerary information for Itinerary 1. Area 434 may display the following information: location 434A, location attribute 434B, text box 434C, location image 434D, route information 434E, and number 434F. Among them, location 434A is the location of Itinerary 1. For example, location 434A displays the text content "Company A". Location attribute 434B is the location attribute of Itinerary 1. For example, location attribute 434B displays the text content "City A | Company". Text box 434C may include: the event of Itinerary 1, the time of Itinerary 1. For example, text box 434C may display "Meeting 2" or "March 6, 10:00". Text box 434C may also include more detailed locations of Itinerary 1. For example, text box 434C may display "202", which indicates that the more detailed location of Itinerary 1 is "Company A 202". Location image 434D is an exterior image of the location for Trip 1. Route information 434E should include: the mode of transportation used to get from the location of the previous trip to the location of Trip 1, the distance from the location of the previous trip to the location of Trip 1, and the time taken to get from the location of the previous trip to the location of Trip 1. Number 434F is used to indicate that Trip 1 is the first trip in the trip category "All Trips". For example, number 434F displays the text "1". Since Trip 1 is the first trip in the trip category "All Trips", there is no previous trip for Trip 1. Therefore, route information 434E includes: the mode of transportation used to get from the current location of the electronic device to the location of Trip 1, the distance from the current location of the electronic device to the location of Trip 1, and the time taken to get from the current location of the electronic device to the location of Trip 1. For example, route information 434E displays "Driving", "Approximately 3 kilometers from current location to Company A", and "Estimated 14 minutes".
[0175] In another possible implementation, when trip 1 has no preceding trip, the route information 434E may further include: the mode of transportation used to get from the preset location to the location of trip 1, the distance from the preset location to the location of trip 1, and the time taken to get from the preset location to the location of trip 1. The preset location may include: the user's current location, the user's usual residence, or other locations set by the user.
[0176] Similarly, area 435 displays trip information for trip 2, and area 436 displays trip information for trip 3. Trip 1 is the previous trip for trip 2, and trip 2 is the previous trip for trip 3. The content displayed in areas 435 and 436 is similar to that displayed in area 434 above, and will not be described again here.
[0177] The electronic device can also view more trip information belonging to the trip category indicated by the tab selected by the electronic device. For example, the electronic device can display more trip information in response to a swipe operation from bottom to top within the user interface 480.
[0178] In this way, electronic devices can display trip information through a user interface that shows trip details in a list format. Users can see the time, location, and activities for each trip. Furthermore, they can view images of the trip locations to help them identify them.
[0179] Figure 7C An example user interface for displaying trip information in map form is shown.
[0180] Electronic devices can respond to actions Figure 7B The click operation of the switching control 431 in the middle displays Figure 7C The user interface shown is 490.
[0181] refer to Figure 7C The user interface 490 may include a map. In this embodiment, the electronic device can obtain the map displayed in the user interface 490 through an application with map functionality. The electronic device can also adjust the size of the map displayed in the user interface 490. For example, the electronic device can shrink the map displayed in the user interface 490 in response to a swipe operation of two fingers approaching each other on the user interface 490. The electronic device can enlarge the map displayed in the user interface 490 in response to a swipe operation of two fingers moving away from each other on the user interface 490.
[0182] The user interface 490 may further include: a toggle control 441, a label control 442, and a label control 443. The toggle control 441 is used to switch the display format of the trip information. For example, the electronic device can respond to a click operation on the toggle control 441 to switch the display format of the trip information from a map to a list format, displaying, for example... Figure 7B The user interface 480 is shown. When the user interface 490 displays the trip information in map format, the toggle control 441 displays the text "Toggle List". For details on the label controls 442 and 443, please refer to the detailed descriptions of label controls 432 and 433 above, which will not be repeated here.
[0183] The map on user interface 490 can display trip information for multiple trips. The map can display: the location marker for this trip, the time for this trip, the location for this trip, and the events for this trip. The location marker is located on the map to indicate the location of this trip. The number displayed in the location marker indicates which trip it is within the trip category indicated by the tag selected by the electronic device. The time and events for this trip are displayed near the location marker for this trip. Since there are no area divisions on the map, this trip can also refer to a specific trip within the trip category indicated by the tag selected by the electronic device.
[0184] The map can also display: the route between the location of the previous trip and the location of the current trip. The map can also display: the mode of transportation for the route, the time taken to use the route, the cost of using the route, traffic light information along the route, traffic congestion conditions along the route, etc.
[0185] For example, the user interface 490 may include: location marker 444A, text box 444B, location marker 445A, text box 445B, location marker 446A, and text box 446B.
[0186] Location marker 444A is located on the map to indicate the location of Itinerary 1. The number displayed in location marker 444A, such as "1", indicates that Itinerary 1 is the first itinerary in the itinerary category "All Itineraries". Text box 444B displays the time, location, and details of Itinerary 1. For example, text box 444B displays "Company A 202 Meeting 2 March 6th 10:00".
[0187] Location marker 445A is located on the map to indicate the location of Itinerary 2. The number displayed in Location Marker 445A, such as "2", indicates that Itinerary 2 is the second itinerary in the Itinerary category "All Itineraries". Text box 445B displays the time, location, and details of Itinerary 2. For example, text box 445B displays "M Conference Center Meeting 3 March 7, 15:00".
[0188] Location marker 446A is located on the map to indicate the location of Itinerary 3. The number displayed in Location Marker 446A, such as "3", indicates that Itinerary 3 is the third itinerary in the Itinerary category "All Itineraries". Text box 446B displays the time, location, and details of Itinerary 3. For example, text box 445B displays "Check-in at Hotel Z on March 7th".
[0189] User interface 490 may also include: route 445C, route 445D, and route 446C. Route 445C and route 445D refer to the routes between the locations representing the points in trip 1 and trip 2. Route 445C is a solid line, and route 445D is a dashed line. Route 445C is a darker color than route 445D, and the line of route 445C is thicker than that of route 445D. This indicates that the electronic device anticipates that route 445C better meets user expectations than route 445D.
[0190] Near route 445C, the text "1. March 7th, 14:00, estimated driving time: 45 minutes" is displayed. This means that if a user drives from location marker 444A to location marker 445A using route 445C at 14:00 on March 7th, the estimated travel time is 45 minutes. Near route 445D, the text "2. March 7th, 13:20, estimated walking + subway time: 1 hour 20 minutes" is displayed. This means that if a user walks and takes the subway from location marker 444A to location marker 445A using route 445D at 13:20 on March 7th, the estimated travel time is 1 hour 45 minutes. Not limited to these two routes, electronic devices can recommend more or fewer routes between locations representing trip 1 and locations representing trip 2.
[0191] Route 446C refers to the route between the location representing trip 2 and the location representing trip 3. The information related to Route 446C is similar to that of Route 445C mentioned above, and will not be repeated here.
[0192] The user interface 490 may further include an add trip control 447 and an edit trip control 448. The add trip control 447 is used to add new trip information. For example, the electronic device can display a user interface for adding new trip information in response to a click operation on the add trip control 447. The electronic device can receive and save the new trip information input by the user in this user interface. The edit trip control 448 is used to modify the acquired trip information. For example, the electronic device can display a user interface for modifying trip information in response to a click operation on the edit trip control. The electronic device can receive and save the modified trip information input by the user in this user interface.
[0193] Optionally, the user interface 490 may further include a route from the current location or a preset location of the electronic device to the location representing the first trip. The electronic device may obtain the preset location by means of user-added information or through location services. For example, the preset location may include: the user's current location, the user's residence, the user's workplace, or locations the user frequently visits. For example, the user interface 490 may also include a route from the current location or a preset location of the electronic device to the location representing trip 1.
[0194] Furthermore, the user can also determine whether to display a route from the current or preset location of the electronic device to the location representing the first trip.
[0195] In this way, the electronic device can display the route to the first destination based on the user's actual needs, resulting in a better user experience. If the electronic device still displays the location of the last destination of the previous day pointing to the location of the current first destination, it does not take the user's actual situation into account and may not meet the user's needs.
[0196] In this way, electronic devices can display trip information in map format. Users can see the time, location, and activities for each trip. Furthermore, they can observe the location of each trip's destination on the map. Users can also see the route between two trips, making it easier for them to plan their trips.
[0197] Figure 7D An example is shown of another user interface for displaying trip information in map form.
[0198] refer to Figure 7D The user interface 620 includes not only the above... Figure 7C The user interface 490 includes all content, and the user interface 620 may also include various types of cards. Specifically, a type one card may include some or all of the trip information acquired by the electronic device. For example, if a type one card includes all trip information, the electronic device can view all trip information in response to an upward swipe operation on a type one card. As another example, if a type one card includes trip information belonging to a certain trip category, the electronic device can view trip information belonging to that specific trip category in response to an upward swipe operation on a type one card.
[0199] Type 2 cards can be used to remind users that the time difference between the current time and the time of a certain trip is less than or equal to a first threshold (e.g., one hour). That is, when a trip is approaching, a Type 2 card can include: the specific trip, route A, the time spent using route A, the amount spent using route A, controls for navigating using route A, and controls for hailing a ride using route A. When the approaching trip is the first trip, route A represents the route from the current location of the electronic device to the location of the approaching trip. When the approaching trip is not the first trip, route A represents the route from the location of the previous trip to the location of the approaching trip.
[0200] Type 3 cards can be used to provide entry points for services related to travel information displayed on the map in user interface 620. For example, Type 3 cards can provide one or more of the following functions: booking tickets, purchasing train tickets, and booking hotels. Not limited to the types of cards mentioned above, electronic devices can also display other types of cards in user interface 620.
[0201] For example, the user interface 620 may include: card 621, card 622, and card 623.
[0202] Card 621 is a Type 1 card. Card 621 displays itinerary information belonging to the itinerary category "March 7th". For example, card 621 displays the text "Tomorrow, Tuesday, March 7th", "Meeting at M Conference Center at 3 PM", and "Check-in at Z Hotel". When there are only two itineraries belonging to the itinerary category "March 7th", card 621 can also display the text "No other itineraries today".
[0203] Card 622 is a type two card. As can be seen from user interface 620, the current time is 9:00 AM, and Trip 1 is the first trip, starting at 10:00 AM. There is a one-hour interval between the current time and the start time of Trip 1. Therefore, Trip 1 is an upcoming trip. Card 622 can be used to remind you that Trip 1 is approaching. Card 622 can display: proximity information, such as "YOYO reminds you that you have a meeting at 10:00 AM"; the amount of the trip, such as "Your current location --- a taxi to Company A costs approximately 20 yuan"; and the estimated travel time, such as "Estimated arrival time is 20 minutes". Card 622 may also include: controls for navigating from the current location to Company A, and controls for hailing a taxi from the current location to Company A.
[0204] Card 623 is a type three card. As can be seen from user interface 620, the electronic device has obtained the itinerary information for Itinerary 3. However, the electronic device did not obtain the booking information for the stay at Hotel Z on March 7th from the SMS application or a third-party hotel booking application. Therefore, the electronic device can provide card 623. The electronic device can respond to a click operation on card 623 to enter the hotel booking user interface.
[0205] In this way, electronic devices can display various types of cards within a user interface that shows itinerary information in map form. Users can also quickly view itinerary information through these cards, know if there are any upcoming trips, and make timely reservations for tickets, transportation, or hotels related to the itinerary information without having already booked them.
[0206] Figure 7E An example is shown of a user interface that displays trip information when the tab "Business Trip 1" is selected on an electronic device.
[0207] like Figure 7E As shown, the user interface 500 includes label controls 442 and 443. Label control 442 indicates the trip category "All Trips," and label control 443 indicates the trip category "Business Trip 1." In the user interface 500, when the electronic device selects label control 443 (for example, label control 443 is filled with black, while the other label controls are unfilled), the electronic device displays trip information for trips belonging to the trip category "Business Trip 1" indicated by label control 443 in the user interface 500. Furthermore, the route displayed in the user interface 500 remains the route between the location representing the previous trip and the location representing the current trip.
[0208] For example, based on the acquired details of each trip, the electronic device determines that trip 1, trip 2, and trip 3 all belong to the trip category "Business Trip 1". That is, trip 1, trip 2, and trip 3 simultaneously belong to both the trip category "All Trips" and the trip category "Business Trip 1". Furthermore, among the multiple trips belonging to the trip category "Business Trip 1", trip 1 is the first trip, trip 2 is the second trip, and trip 3 is the third trip. Since, among the multiple trips belonging to the trip category "All Trips", trip 1 is also the first trip, trip 2 is also the second trip, and trip 3 is also the third trip, the trip information displayed on the user interface 500 can be consistent with the trip information displayed on the user interface 490.
[0209] Figure 7F An example is shown of a user interface that displays travel information when the tab “March 7” is selected on an electronic device.
[0210] like Figure 7FAs shown, the user interface 510 includes: label controls 512, 513, and 514. Label control 512 indicates the trip category "All Trips," label control 513 indicates the trip category "March 6th," and label control 514 indicates the trip category "March 7th." In the user interface 510, when the electronic device selects label control 514 (for example, label control 514 is filled with black, while the other label controls are unfilled), the electronic device displays trip information for trips belonging to the trip category "March 7th" indicated by label control 514 in the user interface 510. Furthermore, the route displayed in the user interface 510 remains the route between the location of the previous trip and the location of the current trip.
[0211] For example, based on the acquired times of each trip, the electronic device determines that trip 1 belongs to the trip category "March 6th", and trips 2 and 3 belong to the trip category "March 7th". Furthermore, among the multiple trips belonging to the trip category "March 7th", trip 2 is the first trip and trip 3 is the second trip.
[0212] Therefore, the user interface 510 includes: location marker 515A, text box 515B, location marker 516A, and text box 517B.
[0213] Location marker 515A is located on the map to indicate the location of Itinerary 2. The number displayed in Location Marker 515A, such as "1", indicates that Itinerary 2 is the first itinerary in the itinerary category "March 7". Text box 515B displays the time, location, and details of Itinerary 2. For example, text box 515B displays "M Conference Center Meeting 3 March 7, 15:00".
[0214] Location marker 516A is located on the map to indicate the location of Itinerary 3. The number displayed in location marker 516A, such as "2", indicates that Itinerary 3 is the second itinerary in the itinerary category "March 7". Text box 517B displays the time, location, and details of Itinerary 3. For example, text box 517B displays "Check-in at Hotel Z on March 7".
[0215] User interface 510 also includes route 515C. Route 515C refers to the route between the location representing trip 2 and the location representing trip 3. Near route 515C, the text "March 7th, 18:00, estimated driving time 18 minutes" is displayed, indicating that if a user drives from location marker 515A to location marker 516A using route 515C at 18:00 on March 7th, the estimated driving time is 18 minutes.
[0216] In this way, electronic devices can display corresponding trip information according to different user needs, and users can understand the trip information belonging to the same trip group, avoiding interference from other information affecting the user's viewing of trip information.
[0217] Optionally, the labels displayed on the user interface by the electronic device can be obtained by overlaying multiple dimensions. That is, labels based on multi-dimensional overlay classification can be classified based on two or more of the four dimensions of the aforementioned labels. For example, the electronic device can determine, based on the time and events of each acquired trip, that trip 1 belongs to the trip category "March 6th Business Trip 1", and trips 2 and 3 belong to the trip category "March 7th Business Trip 1". When the electronic device selects the label control indicating the trip category "March 6th Business Trip 1", the user interface displays the trip information of the trips that belong to both the trip category "March 6th" and the trip category "Business Trip". In one possible implementation, the online trips acquired by the electronic device may not include locations. The trip information of online trips without locations cannot be displayed on a map like the trip information of trip 1 mentioned above. Therefore, when displaying trip information in map form, the electronic device can display the online trip information in the user interface in the form of pop-ups or cards.
[0218] Figure 7G An example is shown of a user interface that displays information for a single trip (such as trip 1).
[0219] Electronic devices can select a single trip from a user interface displaying multiple trip information entries to access the user interface displaying that single trip information entry. The user interface for displaying a single trip information entry may include: a map, the time of the single trip information entry, the items listed in the single trip information entry, and the address corresponding to the location in the single trip information entry. The map also displays location markers indicating the location of the location within the single trip information entry.
[0220] For example, location marker 444A and text box 444B indicate the trip information for trip 1. The electronic device can respond to actions... Figure 7C Clicking on location marker 444A or text box 444B displays a user interface 520 for showing trip information for trip 1. (See reference) Figure 7G The user interface 520 may include: a map 452, time and events 453, and an address 455. The map 452 displays location markers 452A. The area represented by the map 452 is larger than the area described above. Figure 7CThe map represents a smaller area. Time and event 453 indicates the time and event of Itinerary 1. For example, Time and event 453 shows "Meeting 2 March 6th, 10:00". Address 455 indicates the location of Itinerary 1. Specifically, Address 455 indicates the location of Itinerary 1 with a detailed address down to the house number. Location marker 452A is located on map 452 to indicate the location of Itinerary 1. The numbers displayed in Location marker 452A are... Figure 7C The numbers shown in location marker 444A are consistent and are also used to indicate that trip 1 is the first trip in the trip category "All Trips".
[0221] User interface 520 may further include: a text box 451, a sharing control 454, and a navigation control 456. The text box 451 displays trip information for a portion of the trips belonging to the trip category corresponding to the tag selected in the previous user interface before entering user interface 520. For example, text box 451 displays "All trips total 6 locations Meeting 2 March 6th 10:00… Meeting 7 March 20th 14:00". The electronic device can also expand text box 451 in response to an area acting on an ellipsis (e.g., "…"), allowing text box 451 to display trip information for all trips belonging to the trip category corresponding to the tag selected in the previous user interface before entering user interface 520. The sharing control 454 is used to share the single trip information displayed on user interface 520. The electronic device can share trip 1 to other friends in a social application in response to a click on the sharing control 454. The electronic device can navigate to a navigation application and display navigation information from the user's current location to the location indicated by location 445A in response to a click on the navigation control 456. Navigation information includes controls for various modes of transportation (e.g., driving, taxi, public transport, cycling, walking), the selected default mode of transportation (e.g., driving), multiple routes corresponding to the default mode of transportation, and the travel time for each route. This allows the electronic device to display detailed information about each individual trip. Furthermore, the device offers trip sharing functionality, making it easier for users to share their trips with others. The device also provides navigation functionality without requiring users to manually input destinations, further enhancing user convenience.
[0222] In another possible implementation, the electronic device can respond to an action. Figure 7A Clicking on a particular trip information displayed in card 411 of b will enter the user interface for displaying that single trip information, which can refer to the user interface 520 described above.
[0223] Figures 8A-8C An example is shown of an electronic device that alerts the user to a trip conflict after displaying trip information.
[0224] like Figure 8A As shown, after the electronic device acquires the travel information for travel 4, it can do so through the above... Figure 7A The user interface receives the request and displays the itinerary information. The electronic device then responds to the user's action and displays a map-style user interface 530 showing the itinerary information. The user interface 530 may include itinerary information for Itinerary 1, Itinerary 2, Itinerary 3, and Itinerary 4. The itinerary information for Itinerary 4 is: "Attend meeting 4 at Company A, Room 1205, March 7th, 15:00".
[0225] After acquiring trip information, the electronic device determines whether there is a conflict between the current trip and historical trip information, based on previously acquired trip information and the currently acquired trip information. If a trip conflict is determined, the electronic device can prompt the user with the specific trip involved in the conflict in the user interface that displays the trip information.
[0226] For example, after obtaining the trip information for trip 4, the electronic device determines that trips 2 and 4 have a time conflict. Then, a prompt control 511 can be displayed in the user interface 530. The prompt control 511 is used to inform the user that the trip information obtained by the electronic device has a conflict and the specific trips involved. For example, the prompt control 511 includes "Meetings 3 & 4: Time Overlap." This indicates that trips 2 and 4 have a time conflict.
[0227] The electronic device can also modify conflicting trip information. For example, the electronic device can display [the relevant information] in response to a click on the prompt control 511. Figure 8B The user interface shown is 540.
[0228] refer to Figure 8B The user interface 540 may include, but is not limited to: prompt message 521, option 522, option 523, and option 524. For details regarding prompt message 521, option 522, option 523, and option 524, please refer to the above descriptions. Figure 6B The detailed descriptions of prompts 491, 492, 493, and 494 are not elaborated here.
[0229] For example, the electronic device can respond to a click operation on option 492, determine the trip information for modifying trip 2, and enter the user interface 550 for modifying the time of trip 2.
[0230] like Figure 8CAs shown, the user interface 550 includes editable text 531. The editable text 531 displays trip information for trip 2. The electronic device can edit the time of trip 2 by modifying the content in the editable text 531, thereby eliminating the conflict between trip 2 and trip 4.
[0231] Electronic devices can not only alert users to trip conflicts as soon as they receive a single trip notification, but also remind them again when multiple trips are displayed. This allows for a second notification if the user ignores the first. Furthermore, the electronic device can respond to user actions by modifying the time of the conflicting trip, thereby eliminating the conflict between trips.
[0232] It should be noted that users can also view the above-mentioned way of displaying trip information in the calendar application.
[0233] Figure 9 An example is shown of an electronic device displaying a user interface that prompts the user that a trip is approaching.
[0234] Electronic devices can alert users when a scheduled event is approaching. An approaching event is referred to as an upcoming event. The time difference between the current time and the time of the upcoming event is less than or equal to a first threshold (e.g., one hour).
[0235] like Figure 9 As shown, the user interface 560 can be the desktop of an electronic device. The user interface 560 can include a card for reminding users of an upcoming trip. This card is displayed when the time difference between a given trip and the current time is equal to or less than a first threshold. The card can include: the specific upcoming trip, route A, the time spent using route A, the amount spent using route A, controls for navigating using route A, and controls for hailing a ride using route A. When the upcoming trip is the first trip, route A represents the route from the current location of the electronic device to the location of the upcoming trip. When the upcoming trip is not the first trip, route A represents the route from the location of the previous trip to the location of the upcoming trip.
[0236] For example, user interface 560 may include card 541. Card 541 is used to indicate that trip 1 is approaching. Card 541 may be displayed in user interface 560 starting at 9:00, one hour before the time of trip 1, 10:00.
[0237] Card 541 may include: a prompt message 541A, a text box 541B, a control 541C, and a control 541D. As can be seen from the user interface 540, the current time is 9:00 AM on March 6th, and there is one hour left until event 1. The electronic device can display card 541 to alert the user that event 1 is approaching. The prompt message 541A indicates which event is approaching. For example, prompt message 541A displays the text "YOYO reminds you of a meeting at 10:00 AM in room 202 of Company A". The text box 541B indicates route A, the time taken using route A, and the cost of using route A. For example, text box 541B may display "Your current location---Company A", "Ride fare approximately 12 yuan", "Estimated arrival time 14 minutes". The electronic device can respond to a click on control 541C, navigating to a navigation application and displaying navigation information from the current location to Company A. The navigation information includes the route between the current location and the location representing Company A. While the user is driving, navigation information can be used to provide real-time reminders of the vehicle's direction of travel and road conditions. The electronic device can respond to clicks on control 541D, redirecting to a ride-hailing app and displaying ride information from the current location to Company A. This ride information may include: pick-up and drop-off points, estimated fare, vehicle type, etc. Beyond the recommended modes of transportation mentioned above, the electronic device can also recommend other options, such as public transportation like buses and subways.
[0238] In this embodiment, the above-described method of notifying the user of an approaching trip is merely illustrative, and other methods may also be included. When the time difference between a certain trip's time and the current time is equal to or less than a first threshold, the electronic device may display a floating icon of the assistant application on the desktop. The electronic device may respond to a click operation on the floating icon of the assistant application and display information to remind the user of an approaching trip. The electronic device may also display notification options of the assistant application in the notification bar. The electronic device may respond to a click operation on the notification options of the assistant application and display information to remind the user of an approaching trip.
[0239] In this way, as the time for a certain trip approaches, the electronic device can alert the user. Furthermore, it can recommend transportation options from the user's current location to that trip's destination. This serves two purposes: it provides advance notice, giving the user time to prepare and avoid missing their trip; and it recommends transportation options, saving the user time from manually searching for them.
[0240] Based on the user interface described above, the method for displaying travel information provided in the embodiments of this application is described below.
[0241] Figure 10An exemplary flowchart of a method for displaying travel information according to an embodiment of this application is shown. The method includes: S1001. The electronic device acquires first trip information and second trip information. The first trip information includes: first time, first location, and first event. The second trip information includes: second time, second location, and second event.
[0242] The first trip information may specifically include: the first time of the first trip, the first location of the first trip, and the first activity included in the first trip. The second trip information may include: the second time of the second trip, the second location of the second trip, and the second activity included in the second trip. The first time indicates the time when the user executes the first trip, and specifically, the first time may include one or more of the following: the date of execution, start time, end time, and duration. The first location indicates the location where the user executes the first trip, and the first activity indicates the specific activity performed by the user in the first trip. The second time indicates the time when the user executes the second trip. Specifically, the second time may include one or more of the following: the date of execution, start time, end time, and duration. The second location indicates the location where the user executes the second trip, and the second activity indicates the specific activity performed by the user in the first trip.
[0243] Electronic devices can acquire trip information in two ways. First, with user permission, the electronic device can automatically retrieve trip information from other applications via an assistant app. Second, the electronic device can acquire trip information via an assistant app upon user triggering. Specifically, the electronic device can acquire trip information through one or more of the following: recognizing text converted from spoken input, recognizing input text, recognizing text in screenshots, recognizing text in photographs, and recognizing copied text. For example, the second method of acquiring trip information can be found in the section on... Figures 1A-4K The relevant descriptions will not be repeated here.
[0244] In some implementations, the electronic device can obtain first trip information from a first application. The electronic device can obtain second trip information from a second application. That is, the electronic device can obtain trip information from various applications installed on the device. Here, the first and second applications can refer to various applications installed on the electronic device. The first and second applications can include: SMS applications, email applications, telephone applications, calendar applications, ticketing applications, video applications, etc.
[0245] For example, an electronic device can obtain first trip information from the first application and second trip information from the second application through an assistant application.
[0246] In some implementations, the electronic device can obtain first trip information through an assistant application when the first application displays a first user interface. The first user interface displays first controls. For example, when the first user interface is... Figure 3B When the user interface 290 is shown, the first control can refer to option 283. The electronic device can also obtain second trip information via an assistant application when the second application displays the second user interface, which displays the second control. For example, when the second user interface is... Figure 4H When the user interface 580 is shown, the second control can refer to option 581. The assistant application can be referred to as the third application.
[0247] In some implementations, after acquiring trip information, the electronic device can add tags to the trip indicated by that trip information. The dimensions for tag classification and the methods for adding tags are described above and will not be repeated here.
[0248] Because electronic devices obtain travel information in various ways, incomplete information is inevitable. Below, using offline travel as an example, we will introduce several scenarios where incomplete travel information is obtained: In some implementations, the electronic device may only acquire one piece of information from the trip details. For example, the electronic device may only acquire the location, such as partial information like "going to location A"; the electronic device may only acquire the time, such as partial information like "something to do at 5 pm today"; the electronic device may only acquire the event, such as partial information like "I want to take my children and elders on a two-day trip to City A, any recommendations?".
[0249] In some implementations, the electronic device may also only obtain two items of the trip information. For example, the electronic device may obtain the location and time, such as obtaining partial information "going to location A at 5 pm today"; the electronic device may obtain the location and event, such as obtaining partial information "booking a flight to city B"; the electronic device may obtain the time and event, such as obtaining partial information "meeting at 5 pm today".
[0250] Once the electronic device determines that it has only acquired partial trip information, i.e., incomplete trip information, it can display a first prompt message. This first prompt message is used to ask the user to provide additional information.
[0251] The aforementioned first prompt can be divided into two types: recommendation and direct inquiry.
[0252] The recommended first prompt may include: partial trip information not yet obtained by the recommended electronic device. The unobtained trip information may be obtained based on one or more of the following: the aforementioned partially obtained trip information, previously added trip information, user habits, and common knowledge. For example, the recommended first prompt may refer to... Figure 5A The text content in text box 462 Figure 5B The text content in text box 472 Figure 5C The text content in text box 612.
[0253] This allows users to make choices even when they are unsure of the complete itinerary information beyond the aforementioned details, resulting in a better user experience.
[0254] For example, when an electronic device obtains "booked flight to City B", it can recommend some travel information that the electronic device has not obtained, such as the time "flight to City B" based on the obtained partial travel information, such as "attending meeting 5 at the City B Conference Center on the afternoon of March 12", and user habits such as "the user often flies with Airline A".
[0255] For another example, when an electronic device receives the message "I want to take my children and elders on a two-day trip to City A, any recommendations?", the device can recommend additional travel information, i.e., locations, based on some of the acquired itinerary information such as "two-day trip to City A," "recommendations," and general knowledge such as "the travel needs of children and elders can include historical sites and famous universities." These locations can be referenced as described above. Figure 5B The two map routes in text box 472.
[0256] The direct inquiry-based first prompt message can include directly indicating the trip information that the electronic device has not acquired and then asking the user for details. Generally, when the electronic device cannot recommend trip information that it has not acquired based on the aforementioned recommendation-based first prompt message, or when the range of information recommended based on the aforementioned recommendation-based first prompt message is too broad, it can directly ask the user for details. For example, the direct inquiry-based first prompt message can refer to... Figure 5B The text content of text box 474. In this way, the electronic device can obtain more accurate and complete trip information.
[0257] For example, when the electronic device determines the location of the trip information as Figure 5BWhen the electronic device displays the two map routes in text box 472, it determines that the time information for the itinerary has not yet been acquired. The electronic device can directly determine what the missing time information is by displaying the text box "What are the specific dates of the above two-day itinerary?"
[0258] After displaying the first prompt, the electronic device can receive user input to obtain the remaining trip information. Combined with the previously obtained partial trip information, the electronic device can obtain complete trip information.
[0259] Specifically, when the first prompt is a recommended prompt, the aforementioned user action can refer to accepting the recommended information in the first prompt. For example, the user action can be referenced in the above... Figure 5A The user inputs the text "Okay, I'll book this trip." The electronic device can then use the recommended information to determine the remaining trip details, thus obtaining the complete itinerary information.
[0260] When the first prompt is a direct query, the aforementioned user operation can refer to the operation of inputting the remaining trip information. For example, the user operation can be referenced in the above... Figure 5B The user inputs the text "March 28th to March 29th". The electronic device can then determine the remaining travel information based on the user's input, thus obtaining the complete travel information.
[0261] In one possible implementation, the electronic device may acquire a first portion of information from the first trip information, the first portion including one or two of: a first time, a first location, and a first event. The electronic device displays a first prompt message to prompt the user to provide additional information. The electronic device then acquires a second portion of information, which is information from the first trip information other than the first portion.
[0262] In this way, electronic devices can remind users that incomplete trip information has been obtained, preventing the display of incomplete trip details. Electronic devices can also use simple question-and-answer formats to remind users to complete incomplete trip information, making the process easier for users.
[0263] S1002, The electronic device acquires third trip information. The third trip information includes: the third time of the third trip and the third location of the third trip.
[0264] In some implementations, the third trip information may further include items of the third trip. The first time is prior to the second time, and the second time is prior to the third time. Specifically, the start time of the first trip is prior to the start time of the second trip, and the start time of the second trip is prior to the start time of the third trip. This means that the first trip is the trip preceding the second trip, and the second trip is the trip preceding the third trip. For a detailed description of obtaining trip information, please refer to the above-described S1001, which will not be repeated here.
[0265] S1003. The electronic device displays a sixth user interface, which includes a first area and a second area. The first area is used to display first travel information, and the second area is used to display second travel information.
[0266] In some implementations, the sixth user interface is a user interface provided by an assistant application that displays trip information in a list format. Electronic devices can access the sixth user interface through multiple entry points. For example, the entry points for accessing the sixth user interface can be referred to the above. Figure 7A The user interface shown in a and b.
[0267] In some implementations, electronic devices can display multiple trip information entries in a list format. The list format is more organized, allowing trip information to be displayed in chronological order on the user interface.
[0268] The first area can display: first time, first location, first event; the second area can include: second time, second location, second event; the first time is placed before the second time; and the first area can be displayed above the second area.
[0269] In some implementations, the first area may also display a first number, and the second area may also display a second number, wherein the first number is less than the second number. This indicates that the first travel is the preceding travel of the second travel.
[0270] When the first time is the earliest among all times displayed in the sixth user interface, the first area may also display: an image of the first location, the attributes of the first location, the distance between the current location of the electronic device and the first location, and the time taken to travel from the current location of the electronic device to the first location. The second area may also display: an image of the second location, the attributes of the second location, the distance between the first location and the second location, and the time taken to travel from the first location to the second location.
[0271] For example, the fourth user interface can refer to the above. Figure 7B The user interface shown is 480.
[0272] The location attribute indicates the category of the location. These categories can include, but are not limited to: natural landscapes, urban attractions, cultural attractions, entertainment venues, sports venues, academic institutions, commercial facilities, transportation facilities, rural attractions, special locations, etc. For example, commercial facilities can be further categorized as: companies and enterprises, clubs and convention centers. Entertainment venues can be categorized as: star-rated hotels.
[0273] The time taken to travel from one location to another varies depending on the mode of transportation. Therefore, the time taken to travel from a first location to a second location can be multiple depending on the mode of transportation. For example, a second area may include: the time taken to travel from the first location to the second location using the first mode of transportation, and the time taken to travel from the first location to the second location using the second mode of transportation.
[0274] In some implementations, a selected first label may also be displayed in the fourth user interface, and the trips corresponding to the trip information displayed in the fourth user interface all belong to the trip category indicated by the first label.
[0275] The electronic device receives a response from a third control displayed on a fourth user interface and executes step S1004. For example, the third control may refer to... Figure 7B The switching control 431 in the middle.
[0276] S1004. The electronic device displays a first map, which shows: a first location marker, a first time, a first location, a first event, a second location marker, a second time, a second location, and a second event.
[0277] In some implementations, electronic devices can also display multiple trips in map format. This makes the map trips more intuitive, allowing users to not only view the trip information for each individual trip but also clearly understand the routes between them.
[0278] In some implementations, the electronic device can display on a map: location markers for the trip, the time of the trip, the location of the trip, and the items in the trip. The location markers are located on the map to represent the locations of the trip. For example, a first location marker is located on a first map to represent a first location, a second location marker is located on the first map to represent a second location, and among all location markers on the first map, a first time and a first item are closest to the first location marker, and a second time and a second item are closest to the second location marker. The displayed content can be shown to the user so that the user understands the trip information obtained by the electronic device.
[0279] In some implementations, the electronic device may also display on a map one or more routes from the location of the previous trip to the location of the current trip. These routes may include: a preferred route with the shortest travel time, a preferred route with the fewest traffic lights, a preferred route with no traffic congestion, and so on.
[0280] The electronic device can also display one or more of the following on the map: the mode of transportation corresponding to the route, the time taken to use the route, the cost of using the route, traffic light information along the route, and congestion conditions along the route. Since travel time may vary at different times and under different road conditions, the time taken to use the route may refer to the time predicted by the electronic device when displaying the first map using a certain mode of transportation; or it may refer to the time predicted by the electronic device when using a certain mode of transportation before the start time of the second trip.
[0281] The modes of transportation may include, but are not limited to: walking, bicycle, bus, subway, light rail, taxi, timestamp, motorcycle, train, airplane, boat, etc.
[0282] In some implementations, the mode of transportation can be an item within a trip acquired by the electronic device, or it can be a transfer method between trips. That is, the mode of transportation can refer to a trip or a transfer method between trips.
[0283] Electronic devices can also indicate the preferred route among multiple routes. Specifically, electronic devices can indicate the preferred route through the solidity or lightness of the lines, the thickness of the lines, and the depth of the lines' color.
[0284] For example, the first route and the second route can refer to the route from the location representing the first location to the location representing the second location. The third route can refer to the route from the location representing the second location to the location representing the third location.
[0285] In this scenario, the first route is a solid line, and the second route is a dashed line; or the first route is thicker than the second route; or the first route is darker than the second route. The first route is the preferred route compared to the second route.
[0286] Electronic devices can also indicate the sequential relationship of trips indicated by location markers on a map using numbers included in the location markers. For example, a first location marker includes a first number, a second location marker includes a second number, and the first number is less than the second number. This indicates that the first time occurred before the second time. In other words, the first trip is the trip preceding the second trip.
[0287] The electronic device can also display a route on the map from the electronic device's current location or a preset location to the location of the first trip. For example, when the first time is the earliest of all times displayed on the first map, the first map also displays a fourth route from the electronic device's current location or preset location to the location representing the first location.
[0288] For example, in S1004, the first map mentioned by the aforementioned electronic device may refer to the above-mentioned... Figure 7C User interface 490.
[0289] Electronic devices can also display selected tags on a map. For example, a first map also displays a selected first tag, and all trips corresponding to the trip information displayed on the first map belong to the trip category indicated by the first tag. Trip categories are classified based on one or more of the following dimensions: trip time, trip location, and the type of activities included in the trip. For information on how tags are classified, please refer to the above. Figure 7E The user interface 500 shown and Figure 7F The user interface shown is 510.
[0290] In one possible implementation, if an electronic device, after acquiring trip information, determines that the trip conflicts with a previously acquired trip, it can display information on a map to indicate the conflict. For example, a second notification may also be displayed on the first map, indicating a conflict between the first and second trips.
[0291] Figure 11 An exemplary diagram comparing conflict-free and conflicting trips is shown.
[0292] The itinerary is as follows: Itinerary a1 includes attending a meeting in location A; Itinerary b1 includes traveling from location A to location B; Itinerary c1 includes attending a meeting in location B; Itinerary d1 includes attending a meeting in location B. Itinerary a2 includes attending a meeting in location A; Itinerary b2 includes attending a meeting in location A; Itinerary c2 includes attending a meeting in location B; Itinerary d2 includes attending a meeting in location B. All of the above itineraries are offline itineraries and include specific times, but are not listed in the online format. Figure 11 The specific details are marked in the text; please refer to them. Figure 11 The timeline in the diagram roughly determines the time for each stage of the journey.
[0293] refer to Figure 11In a conflict-free itinerary, itinerary b1 is the next itinerary after itinerary a1. The time difference between the start time of itinerary b1 and the end time of itinerary a1 is greater than the time difference between traveling from the location of itinerary a1 to the location of itinerary b1. Therefore, there is no conflict between itinerary a1 and itinerary b1. The length of a hotel booking indicates the duration of the user's hotel stay. The hotel booking does not conflict with itinerary c1. Similarly, itinerary d1 is the next itinerary after itinerary c1. The time difference between the start time of itinerary d1 and the end time of itinerary c1 is greater than the time difference between traveling from the location of itinerary c1 to the location of itinerary d1. Therefore, there is no conflict between itinerary c1 and itinerary d1.
[0294] In a conflicting itinerary, itinerary a2 is followed by itinerary b2, and the end time of itinerary a2 is later than the start time of itinerary b2. Therefore, itinerary a2 and itinerary b2 conflict, for example, a time conflict. Itinerary b2 is followed by itinerary c2, where location A is located and location B is located. Furthermore, the electronic device has not received a travel order or ticket purchase for the journey from location A to location B. Therefore, itinerary b2 and itinerary c2 conflict, for example, a location conflict. Itinerary c2 is followed by itinerary d2, where the time difference between the start time and end time of itinerary d2 is less than the time difference between the location of itinerary c1 and the location of itinerary d2. Therefore, itinerary c2 and itinerary d2 conflict, meaning they cannot make it on time.
[0295] Based on the above regarding Figure 11 The introduction states that electronic devices can determine whether a conflict has occurred each time they receive new trip information. If a conflict is confirmed, it can alert the user. Specifically, trip conflicts can be categorized as follows: 1. Time Conflict. If the start time of trip m is the same as the start time of trip n, or the end time of trip m is later than the start time of trip n, then trip m and trip n have a time conflict. This indicates that the user needs to perform two tasks at different locations at a certain time, which is obviously impossible, and the user needs to be informed of the above situation.
[0296] 2. Time constraints. If the start time of trip n is later than the end time of trip m, and the time difference between the start time of trip n and the end time of trip m is less than the travel time from the location of trip m to the location of trip n, then trip m and trip n will not be able to make up the time. This indicates that trip n cannot start on time after the actions of trip m are completed, and the user should be informed of this situation.
[0297] 3. Location Conflict. If the location of trip m and the location of trip n are in different cities, and the electronic device has not obtained ticket purchase information or travel order from the city where trip m is located to the city where trip n is located, then a location conflict occurs between trip m and trip n. This indicates that the user may have forgotten to book tickets or other inconveniences, and the user needs to be informed of this situation.
[0298] Here, trip m is the previous trip of trip n, and the location of trip m is different from the location of trip n.
[0299] In one possible implementation, the electronic device can ask the user whether the online trip requires a fixed location when acquiring the online trip. For online trips without a fixed location, only the first type of conflict mentioned above needs to be determined, and online trips without a fixed location can also overlap with non-flight travel orders. Online trips with a fixed location need to determine whether the first type of conflict mentioned above occurs. After acquiring a hotel order (i.e., trip: hotel check-in), the electronic device only needs to determine whether the location of the hotel order is reasonable with the destination of the travel order (i.e., trip: transportation), and whether the check-in and check-out times are reasonable; it does not need to determine whether the hotel order involves the first three types of conflict.
[0300]
[0301] Table 1 Table 1 provides examples of various types of conflicts that need to be determined between specific itineraries. In Table 1, ① represents type 1 conflict, i.e., time conflict. ② represents type 2 conflict, i.e., time conflict. ③ represents type 3 conflict, i.e., location conflict. Online meetings in Table 1 refer to meetings without a fixed location.
[0302] The following examples illustrate the conflict types that electronic devices need to consider between different trips in Table 1. For example, conflicts of the above three categories need to be considered between offline meetings and offline meetings. Conflicts of the first category above need to be considered between offline meetings and online meetings. Conflicts of the above three categories need to be considered between offline meetings and travel bookings (e.g., car, train, ferry). Conflicts of the above three categories need to be considered between offline meetings and travel bookings (e.g., flights). No conflict needs to be considered between offline meetings and hotel bookings. No conflict needs to be considered between offline meetings and social gatherings. No conflict needs to be considered between offline meetings and sleep. Conflicts of the first category above need to be considered between online meetings and online meetings. No conflict needs to be considered between online meetings and travel bookings (e.g., car, train, ferry). No conflict needs to be considered between offline meetings and travel bookings (e.g., flights). No conflict needs to be considered between hotel bookings and online meetings. No conflict needs to be considered between online meetings and social gatherings. No conflict needs to be considered between online meetings and sleep. Conflicts between travel bookings (e.g., car, train, ferry) and other travel bookings (e.g., flights) need to be considered, as do the three types of conflicts mentioned above. A reasonable assessment is needed to determine if there is a conflict between travel bookings (e.g., car, train, ferry) and hotel bookings. Conflicts between travel bookings (e.g., car, train, ferry) and social gatherings / dining events need to be considered, as do the three types of conflicts mentioned above. Conflicts between travel bookings (e.g., car, train, ferry) and sleep / restaurants need to be considered, as do the three types of conflicts mentioned above. Conflicts between travel bookings (e.g., flights) and other travel bookings (e.g., flights) need to be considered, as do the three types of conflicts mentioned above. A reasonable assessment is needed to determine if there is a conflict between travel bookings (e.g., flights) and hotel bookings. Conflicts between travel bookings (e.g., flights) and social gatherings / dining events need to be considered, as do the three types of conflicts mentioned above. Conflicts between travel bookings (e.g., flights) and sleep / restaurants need to be considered, as do the three types of conflicts mentioned above. Conflicts between hotel bookings need to be considered, as do the first type of conflict mentioned above. No conflict needs to be considered between hotel bookings and social gatherings / dining events. There is no conflict between hotel bookings and sleeping. Conflicts between different social gatherings need to be considered, as described in the three categories above. Conflicts between social gatherings and sleeping also need to be considered, as described in the three categories above. In this embodiment, the conflict types between different schedules that the electronic device needs to consider, as shown in Table 1, are merely illustrative examples. The electronic device can also consider more types of conflicts between different schedules based on the user's actual needs.
[0303] In some implementations, the electronic device can display a second prompt message immediately after acquiring information about a trip that conflicts with another trip. For example, the above description can be used as a reference. Figure 6A The user interface 420 is shown. The electronic device can also display a second prompt message on the first map. For example, the above can be referred to at this time. Figure 8AThe user interface 530 shown. A second prompt message can be used to indicate a conflict between one trip and another.
[0304] The second notification message indicates the specific two or more trips involved in the conflict. The content of the second notification message differs depending on the type of conflict. For example, the content of the second notification message can be categorized as follows: 1. When the conflict is of type 1 or type 3 above, the content displayed in the second prompt message may include: an option to modify the time of the conflicting trip, and an option to mark the importance of the conflicting trip.
[0305] 2. When the conflict is of type 2 above, the content displayed in the second prompt message may include: options for purchasing tickets and options for adding a mode of transportation such as driving.
[0306] Optionally, when an electronic device acquires an online trip, it can also display a prompt asking whether the online trip needs to have a fixed location added. For example, the prompt may include: an option indicating that a fixed location is not needed, an option indicating that the current location should be added as a fixed location, or an option indicating that a custom fixed location should be added.
[0307] In some implementations, after displaying the second prompt, the electronic device responds to user input and avoids conflicts between trips. For example, the electronic device can modify the time of trip m such that the modified time of trip m does not meet the aforementioned reasons for conflict with the time of trip n. Alternatively, the electronic device can modify the time of trip n such that the time of trip m does not meet the aforementioned reasons for conflict with the modified time of trip n. The electronic device can also choose not to modify the times of trip m and trip n, but only mark the importance of the first and fourth trips. In this way, the user can know how to decide how to execute trip m and trip n based on their importance.
[0308] For example, the map mentioned above that displays the second prompt information can be referred to the above. Figure 8A The user interface shown is 530 to Figure 8C The user interface shown is 550.
[0309] In another possible implementation, the electronic device can also display various types of cards on the map. For a detailed introduction to the cards displayed on the map, please refer to the section on various card types above.
[0310] For example, the first map may also display a first card, a second card, and a third card. The first card refers to the card of type one described above. The first card may include some or all of the trip information acquired by the electronic device. The second card refers to the card of type two described above. The second card includes one or more of the following: a first route, the time spent using the first route, the amount consumed using the first route, a control for navigating using the first route, and a control for hailing a taxi using the first route, wherein the time between the current time and a second time is less than a first threshold. The third card refers to the card of type three described above. The third card is used to provide an entry point for services related to the trip information displayed on the first map, such as booking a hotel like Hotel Z.
[0311] For example, the map mentioned above that displays multiple types of cards can be referenced from the above. Figure 7D The user interface 620 shown is shown.
[0312] In this way, users can briefly view trip information through cards, know if there are any upcoming trips, and make timely reservations for tickets, train tickets, or hotels related to the trip information through cards.
[0313] In some implementations, the electronic device can also display controls on the map for adding new trip information. For example, the electronic device can receive user input acting on a third control displayed on the first map. The electronic device then displays a fourth user interface for adding new trip information. The electronic device retrieves the new trip information in the fourth user interface; for example, a user can enter text containing the trip information in the fourth user interface. For example, the third control may refer to… Figure 7C Adding a travel control 447 in the middle.
[0314] In some implementations, the electronic device may also display controls on the map for modifying trip information. For example, the electronic device may receive user actions applied to a fourth control displayed on the first map. The electronic device then displays a fifth user interface for modifying the trip information. In this fifth user interface, the electronic device receives user actions to modify the trip information; for example, the user may input text containing the trip information. For example, the fourth control may refer to… Figure 7C The edit process control 448 in the middle.
[0315] In some implementations, the electronic device can update the trip information displayed on the first map after adding, modifying, or deleting trip information.
[0316] In some implementations, the electronic device can also zoom in or out of the map. For example, in a first map, the electronic device responds to a user action by displaying a zoomed-in first map. This user action may include a two-finger swipe away. The zoomed-in first map may display travel information for locations belonging to the area represented by the zoomed-in first map.
[0317] For example, in the first map, the electronic device responds to a user operation and displays a zoomed-out version of the first map. This user operation may include a two-finger swipe. The zoomed-out first map displays a third prompt message indicating to the user that the location of the trip information obtained by the electronic device belongs to the first city. For example, the third prompt message includes the text "Trip to the first city". In the zoomed-out first map, the electronic device receives a user operation acting on the third prompt message and displays a zoomed-in version of the first map. The zoomed-in first map displays trip information including locations belonging to the first city.
[0318] S1005. The electronic device receives user operations applied to the area where the first time or first event occurs and displays a third user interface.
[0319] After acquiring multiple trip information entries, the electronic device can display a user interface for both multiple trip entries and a user interface for a single trip entry. This user interface for a single trip entry can include: a map, the time of the single trip, the details of the single trip, and the address corresponding to the location of the single trip. The map displays location markers to indicate the location of the single trip. Furthermore, the area represented by this map is smaller than the area represented by the map in the user interface displaying multiple trip entries.
[0320] For example, an electronic device receives a user operation applied to the area where a first time, first event, or first location marker is located, and displays a third user interface. The third user interface includes: a second map, the address corresponding to the first time, first event, and first location, the second map displaying the first location marker, and the area represented by the second map being smaller than the area represented by the first map.
[0321] When a single trip is the first trip displayed on the user interface showing multiple trip information, the electronic device can also display a route from the electronic device's current location or a preset location to the location of that single trip on the map displayed on the user interface showing the single trip information. For example, when the first time is the earliest of all times displayed on the first map, the second map also displays a route from the electronic device's current location or preset location to the location representing the first location.
[0322] The map mentioned above that displays individual trip information can be found in the above description. Figure 7G The user interface shown is 520.
[0323] S1006. At the fourth time, the electronic device displays a fourth prompt message, which is used to indicate that the second trip is approaching and that the time difference between the fourth time and the second time is less than or equal to the first threshold.
[0324] In some implementations, the content displayed in the fourth prompt can refer to the content displayed in the card of type two described above. In the embodiments of this application, the fourth prompt can be displayed not only in the form of a card in the user interface, but also in other forms. For example, at the fourth time, a floating window of the assistant application pops up in the user interface displayed by the electronic device. The electronic device can respond to the click operation on the floating window of the assistant application to view the fourth prompt.
[0325] For example, the user interface displaying the fourth prompt information can refer to the above. Figure 9 The user interface 560.
[0326] In some implementations, when the adjacent trip is the first trip, the time difference between the fourth time and the time of the adjacent trip should be greater than the time taken to travel from the current location to the location of the adjacent trip. When the adjacent trip is not the first trip, the time difference between the fourth time and the time of the adjacent trip should be greater than the time taken to travel from the location of the previous trip of the adjacent trip to the location of the adjacent trip. For example, if the adjacent trip is the second trip, the time difference between the fourth time and the second time should be greater than the time taken to travel from the first location to the second location.
[0327] In one possible implementation, the electronic device can display various other prompts after acquiring the travel information. For example, if the destination is not in the city where the residence is located, it can prompt whether to book a hotel near the destination.
[0328] In one possible implementation, the electronic device can alert the user to an impending emergency as a trip approaches. For example, when a trip is imminent, the electronic device, based on information provided by a third-party map application, detects an emergency on the route to the destination of the upcoming trip. The electronic device can then alert the user to the location of the emergency and provide alternative routes to the destination that are not affected by the emergency.
[0329] By implementing the above methods, electronic devices can not only more conveniently acquire trip information but also display it more intuitively. This makes the trip information clearer for users. Furthermore, electronic devices can guide users to complete the trip information when incomplete information is obtained. They can also determine if there are conflicts between trips and provide methods to avoid them. Electronic devices can also remind users when a trip is approaching. This helps users avoid delays and improves the user experience.
[0330] Figure 12 An exemplary schematic diagram of the hardware structure of electronic device 100 is shown.
[0331] Electronic device 100 can be a portable terminal device running iOS®, Android®, Microsoft®, Harmony®, or other operating systems. Electronic device 100 can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle, in-vehicle device, smart home device, and / or smart city device. It is not limited to these; electronic device 100 can also include non-portable terminal devices such as laptops and desktop computers with touch-sensitive surfaces or touch panels. This application does not impose any special limitations on the specific type of electronic device.
[0332] Electronic device 100 may include a processor 101, a memory 102, a wireless communication module 103, a mobile communication module 104, an antenna 103A, an antenna 104A, a power switch 105, a sensor module 106, a focusing motor 107, a camera 108, a display screen 109, etc. The sensor module 106 may include a gyroscope sensor 106A, an accelerometer sensor 106B, an ambient light sensor 106C, an image sensor 106D, a proximity sensor 106E, etc. The wireless communication module 103 may include a WLAN communication module, a Bluetooth communication module, etc. All of the above components can transmit data via a bus.
[0333] Processor 101 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0334] In this embodiment, the processor 101 can be used to acquire first trip information, second trip information, and third trip information through the aforementioned methods. The processor 101 can also be used to determine whether the acquired trip information is complete. The processor 101 can also be used to determine the route between recommended locations based on the acquired trip information. The processor 101 can be used to generate a first map based on the acquired trip information. The processor 101 can also be used to determine whether conflicts occur between trips.
[0335] Memory 102 can be used to store computer programs. Processor 101 executes various functional applications and data processing of electronic device 100 by running the computer programs stored in memory 102. Memory 102 may include a program storage area and a data storage area. For example, memory 102 can be used to store acquired trip information. In a specific implementation, memory 902 may include high-speed random access memory and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
[0336] The wireless communication function of the electronic device 100 can be implemented through antenna 103A, antenna 104A, mobile communication module 104, wireless communication module 103, modem processor, and baseband processor.
[0337] Antennas 103A and 104A can be used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0338] The mobile communication module 104 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.
[0339] The wireless communication module 103 can provide solutions for wireless communication applications on electronic devices 100, including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR).
[0340] The power switch 105 can be used to control the power supply to the electronic device 100.
[0341] Electronic device 100 can perform shooting functions through ISP, camera 108, video codec, GPU, display screen 109 and application processor.
[0342] Electronic device 100 can implement display functions through a GPU, display screen 109, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 109 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 101 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0343] The display screen 109 is used to display images, videos, etc. The display screen 109 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N displays 109, where N is a positive integer greater than 1.
[0344] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0345] In this embodiment of the application, the display screen 109 is used to display the various user interfaces mentioned above.
[0346] For example, display screen 109 can be used to display a fourth user interface that displays multiple trip information in a list format. Display screen 109 can also be used to display a first map that displays multiple trip information in a map format. Display screen 109 can also be used to display the first map. Display screen 109 can be used for multiple user interfaces containing icons, floating windows, and cards for assistant applications. Display screen 109 can also display a first prompt message to prompt the user to supplement trip information. Display screen 109 can also be used to display a second prompt message indicating a trip conflict. Display screen 109 can also be used to display various types of cards in the first map. Display screen 109 can also be used for trip information for a single trip. Display screen 109 can also be used to display a fourth prompt message indicating an approaching trip when a trip is nearing its end.
[0347] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.
[0348] Figure 13 This is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0349] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0350] The application layer can include a series of application packages.
[0351] like Figure 13 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0352] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0353] like Figure 13 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0354] The window manager is used to manage window programs.
[0355] Content providers are used to store and retrieve data, and make that data accessible to applications.
[0356] A view system includes visual controls, such as controls that display text and controls that display images.
[0357] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0358] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0359] The notification manager allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short time without user interaction.
[0360] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0361] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0362] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0363] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0364] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0365] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0366] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0367] A 2D graphics engine is a graphics engine for 2D drawing.
[0368] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0369] Figure 14 This is a schematic diagram of the structure of a chip provided in an embodiment of this application.
[0370] like Figure 14 As shown, chip 1400 includes one or more processors 1401, communication lines 1402 and communication interfaces 1403. Optionally, chip 1400 also includes memory 1404.
[0371] In some implementations, memory 1404 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.
[0372] The methods described in the embodiments of this application can be applied to processor 1401, or implemented by processor 1401. Processor 1401 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit in the hardware of processor 1401 or by instructions in software form. The processor 1401 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. Processor 1201 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0373] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 1404, and processor 1401 reads information from memory 1404 and, in conjunction with its hardware, completes the steps of the above method.
[0374] The processor 1401, memory 1404 and communication interface 1403 can communicate with each other via communication line 1402.
[0375] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.
[0376] This application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the above-described method for displaying travel information.
[0377] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program that, when executed by a processor, implements the above-described method for displaying travel information.
[0378] This application also provides a computer program product. The computer program product includes computer instructions that, when executed by a processor, implement a method for displaying process information. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can store, or a data storage device such as a server or data center that integrates one or more available media. For example, available media can include magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media (e.g., digital versatile discs (DVDs)), or semiconductor media (e.g., solid-state drives (SSDs)).
[0379] The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted on a computer-readable medium. A computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. A storage medium can be any target medium accessible by a computer.
[0380] As one possible design, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; computer-readable media may include disk storage or other disk storage devices. Furthermore, any connecting cable may also be appropriately referred to as computer-readable media. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. As used herein, disks and optical discs include optical discs (CD), laser discs, optical discs, DVDs, floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0381] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.
[0382] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0383] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0384] In summary, the above description is merely an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made according to the disclosure of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for displaying travel information, characterized in that, The method includes: The electronic device displays the first user interface of the first application; The electronic device runs a third application and displays a first control provided by the third application; The electronic device responds to user operations applied to the first control and displays first travel information of the first travel in the first user interface. The electronic device displays a second user interface for the second application; The electronic device runs the third application and displays the second control provided by the third application; The electronic device responds to user operations applied to the second control and displays second travel information of the second travel in the second user interface. In response to the first operation, the electronic device displays a user interface provided by the third application containing a first map, the first map including the first trip information and the second trip information, wherein the first method and the second method are different.
2. The method according to claim 1, characterized in that, Before displaying the first trip information of the first trip in the first user interface, the method further includes: Obtain the first trip information of the first trip in the first user interface in a first manner; Before displaying the second trip information of the second trip in the second user interface, the method further includes: The second trip information of the second trip in the second user interface is obtained in a second manner; The first method and the second method are one of the following: taking a screenshot of the first user interface and extracting the first trip information included in the first user interface, taking a picture and obtaining the first trip information included in the picture, or copying the first trip information included in the first user interface.
3. The method according to claim 2, characterized in that, The first application is a camera application, the first user interface includes a shooting preview interface, and the first method is to take a picture and obtain the first trip information included in the picture.
4. The method according to any one of claims 1-3, characterized in that, The third application is either a system assistant application or a calendar application.
5. The method according to any one of claims 1-4, characterized in that, The first itinerary information includes: the first time of the first itinerary, the first location of the first itinerary, and the first item included in the first itinerary; the second itinerary information includes: the second time of the second itinerary, the second location of the second itinerary, and the second item included in the second itinerary. The first map displays: a first location marker, a first time, a first location, a first event, a second location marker, a second time, a second location, and a second event. The first location marker is located at the position representing the first location on the first map, and the second location marker is located at the position representing the second location on the first map.
6. The method according to claim 5, characterized in that, The first map also shows a first route from the location of the first location to the location of the second location.
7. The method according to claim 6, characterized in that, The first map also displays one or more of the following: the mode of transportation corresponding to the first route, the time spent using the first route, the amount spent using the first route, traffic light information on the first route, and congestion conditions on the first route.
8. The method according to claim 6 or 7, characterized in that, The first map also shows a second route from the location of the first location to the location of the second location.
9. The method according to claim 8, characterized in that, The first route is a solid line, and the second route is a dashed line; Or the lines of the first route are thicker than the lines of the second route; Or the color of the first route is darker than the color of the second route.
10. The method according to any one of claims 5-9, characterized in that, The first time is prior to the second time, the first location marker includes a first number, the second location marker includes a second number, and the first number is less than the second number.
11. The method according to any one of claims 5-10, characterized in that, Before the electronic device displays a user interface containing the first map, the method further includes: The electronic device acquires third trip information, which includes: the third time of the third trip and the third location of the third trip, wherein the first time is before the second time and the second time is before the third time; The first map also displays: a first route from the location of the first location to the location of the second location, and a third route from the location of the second location to the location of the third location.
12. The method according to any one of claims 5-11, characterized in that, The first time is the earliest of all times displayed on the first map, which also displays a fourth route from the current or preset location of the electronic device to the location representing the first location.
13. The method according to any one of claims 5-12, characterized in that, The first map also displays a selected first label, and the trips corresponding to the trip information displayed on the first map all belong to the trip category indicated by the first label.
14. The method according to claim 13, characterized in that, The trip categories are classified based on one or more of the following dimensions: trip time, trip location, and the type of activities included in the trip.
15. The method according to any one of claims 5-14, characterized in that, After the electronic device displays a user interface containing the first map, the method further includes: The electronic device receives user operations applied to the area where the first time, the first event, or the first location marker is located, and displays a third user interface. The third user interface includes: a second map, the first time, the first event, and the address corresponding to the first location. The second map displays the first location marker, and the area represented by the second map is smaller than the area represented by the first map.
16. The method according to any one of claims 5-15, characterized in that, The electronic device acquires the first travel information specifically including: The electronic device acquires a first portion of information from the first trip information, the first portion of information including: the first time, the first location, and one or more of the first items; The electronic device displays a first prompt message, which is used to prompt the user to provide additional information. The electronic device acquires a second part of information, which is information in the first trip information other than the first part of information.
17. The method according to claim 16, characterized in that, The electronic device obtains the first part of the information through one of the following methods: It can recognize text converted from spoken input, text input, text in screenshots, text in photos taken by camera, and text obtained by copying.
18. The method according to claim 16 or 17, characterized in that, The first prompt information includes: information recommended based on one or more of the first part of information, user habits, and public knowledge; The electronic device acquires the second part of the information, specifically including: The electronic device receives an operation from the user to accept the recommended information and determines the recommended information as the second part of the information.
19. The method according to claim 16 or 17, characterized in that, The first prompt message is used to prompt the user to supplement the first trip information with information other than the first part of the information; The electronic device acquires the second part of the information, specifically including: The electronic device acquires the second part of the information input by the user.
20. The method according to any one of claims 5-19, characterized in that, The first map also displays a second prompt message, which indicates that the first trip and the second trip conflict.
21. The method according to claim 20, characterized in that, The first time includes the start and end times of the first trip, and the second time includes the start and end times of the second trip. The first location and the second location are different. The start time of the first trip is the same as the start time of the second trip; Or the start time of the second trip is later than the end time of the first trip, and the time difference between the start time of the second trip and the end time of the first trip is less than the time taken from the first location to the second location; Or the end time of the first trip is later than the start time of the second trip; Alternatively, the first location and the second location may be in different cities, and the electronic device may not have obtained ticket purchase information for traveling from the city where the first location is located to the city where the second location is located.
22. The method according to any one of claims 5-21, characterized in that, The first map also displays one or more of the following: The first card includes: some or all of the travel information acquired by the electronic device; The second card includes one or more of the following: a first route, time spent using the first route, amount spent using the first route, a control for navigating using the first route, and a control for hailing a taxi using the first route. The first route is a route from the location representing the first location to the location representing the second location, and the duration between the current time and the second time is less than a first threshold. The third card provides an entry point for services related to the itinerary information displayed on the first map.
23. The method according to any one of claims 5-22, characterized in that, After the electronic device displays the first map, the method further includes: The electronic device receives user operations that are applied to a third control displayed on the first map; The electronic device displays a fourth user interface for adding new trip information; The electronic device obtains new trip information from the fourth user interface.
24. The method according to any one of claims 5-23, characterized in that, After the electronic device displays a user interface containing the first map, the method further includes: The electronic device receives user operations that are applied to a fourth control displayed on the first map; The electronic device displays a fifth user interface for modifying trip information; The electronic device receives user input to modify trip information in the fifth user interface.
25. The method according to any one of claims 5-24, characterized in that, The method further includes: The electronic device displays a sixth user interface, which includes a first area, a second area, and a fifth control. The first area displays the first time, the first location, and the first event. The second area includes the second time, the second location, and the second event. The first time is located before the second time, and the first area is displayed above the second area. The electronic device, in response to an operation on the fifth control, displays the user interface containing the first map.
26. The method according to claim 25, characterized in that, The first area also displays a first number, and the second area also displays a second number, wherein the first number is smaller than the second number.
27. The method according to claim 25 or 26, characterized in that, The first area also displays: an image of the first location, attributes of the first location, the distance between the current location of the electronic device and the first location, and the time taken to travel from the current location of the electronic device to the first location, wherein the first time is the earliest of all times displayed in the sixth user interface. The second area also displays: an image of the second location, attributes of the second location, the distance between the first location and the second location, and the time taken to travel from the first location to the second location, the attributes being used to indicate the category of the location.
28. The method according to any one of claims 25-27, characterized in that, The first map also displays a second card, which includes one or more of the following: a first route, the time spent using the first route, the amount spent using the first route, a control for navigating using the first route, and a control for hailing a taxi using the first route. The first route is a route from the location representing the first location to the location representing the second location, and the duration between the current time and the second time is less than a first threshold. Before the electronic device displays the sixth user interface, the method further includes: The electronic device displays a seventh user interface, which includes a first option for displaying the trip information acquired by the electronic device. The electronic device receives a user operation applied to the first option; Alternatively, the electronic device may display an eighth user interface, which includes the second card, in which the travel information acquired by the electronic device is displayed; The electronic device receives user operations applied to the second card.
29. The method according to any one of claims 5-28, characterized in that, After the electronic device displays a user interface containing the first map, the method further includes: The electronic device responds to the user's operation and displays a zoomed-out version of the first map. The zoomed-out first map displays a third prompt message, which is used to prompt the user that the location of the trip information obtained by the electronic device belongs to the first city. The electronic device receives a user operation applied to the third prompt information and displays a magnified version of the first map. The magnified first map displays travel information including locations belonging to the first city.
30. An electronic device, characterized in that, The electronic device includes a memory, a processor, and a computer program stored in the memory, the processor executing the computer program to implement the method of any one of claims 1-29.
31. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1-29.
32. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed by a processor, implement the method of any one of claims 1-29.