Weather information display method and device, electronic equipment and storage medium
By acquiring and displaying location information for upcoming trips within a weather app, the problem of low efficiency in viewing weather information in multi-city travel scenarios is solved. This allows for the direct display of weather information for both the destination and transit points, thus improving the user experience.
Patent Information
- Application Number
- CN202511715917.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-02-17
AI Technical Summary
In multi-city travel scenarios, users need to repeatedly perform the operation of checking weather information, resulting in low efficiency in checking weather information.
By obtaining location information corresponding to the travel itinerary, including the destination and transit points, the weather information for these locations can be directly displayed on the application interface of the weather app, simplifying the user's input process.
It improves the efficiency of viewing weather information, eliminating the need for users to manually enter location information for their travel itinerary in the weather app; it directly displays weather information for the destination and transit points.
Smart Images

Figure CN121542330A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of electronic devices, and particularly relates to a weather information display method and device, an electronic device, and a storage medium. BACKGROUND
[0002] Currently, a weather application in a smart electronic device has become an important tool for a user to obtain weather information. The user only needs to open the weather application, and the weather application directly displays the weather condition of a city and a region where the user is currently located on a main interface of the weather application. If the user has a demand to view the weather of other cities, the user can view detailed weather information of a new city in the next few days by clicking to add a new city, searching for a target city name, and adding the city to a weather board. In this way, the user is provided with convenience to view daily weather information.
[0003] However, especially in the case of a multi-city travel scenario of the user, the user needs to repeatedly perform the above operation process of viewing the weather. Such an operation is tedious, and leads to low efficiency of viewing weather information. SUMMARY
[0004] Embodiments of the present application provide a weather information display method, device, electronic device, and storage medium, which can improve the efficiency of viewing weather information.
[0005] In a first aspect, embodiments of the present application provide a weather information display method, which includes: obtaining location information corresponding to a to-be-traveled itinerary; the location information corresponding to the to-be-traveled itinerary includes at least one of the following: a destination and a passing place; displaying weather information of the location information corresponding to the to-be-traveled itinerary on an application interface of a weather application. In a second aspect, embodiments of the present application provide a weather information display device, which includes: an obtaining module configured to obtain location information corresponding to a to-be-traveled itinerary; the location information corresponding to the to-be-traveled itinerary includes at least one of the following: a destination and a passing place; a display module configured to display weather information of the location information corresponding to the to-be-traveled itinerary on an application interface of a weather application.
[0006] In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the programs or instructions are executed by the processor, the method in the first aspect is implemented.
[0007] In a fourth aspect, embodiments of the present application provide a readable storage medium, which stores programs or instructions. When the programs or instructions are executed by a processor, the method in the first aspect is implemented.
[0008] In a fifth aspect, an embodiment of the present application provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, and the processor is configured to run programs or instructions to implement the method in the first aspect.
[0009] In a sixth aspect, an embodiment of the present application provides a computer program product stored in a storage medium, which is executed by at least one processor to implement the method in the first aspect.
[0010] In the embodiment of the present application, the weather information of the place information corresponding to the to-be-traveled trip is displayed on the application interface of the weather application, so that the weather information of the destination and / or the passing place in the to-be-traveled trip of the user can be directly displayed without the user manually inputting the passing place and the destination of the to-be-traveled trip in the weather application, and the viewing efficiency of the weather information is improved. BRIEF DESCRIPTION OF DRAWINGS
[0011] Figure 1 FIG. 1 is a flowchart of a weather information display method provided by some embodiments of the present application; Figure 2 FIG. 2 is a display diagram of weather information of place information corresponding to a to-be-traveled trip provided by some embodiments of the present application; Figure 3 FIG. 3 is a display diagram of weather information of place information corresponding to a to-be-traveled trip provided by some embodiments of the present application; Figure 4 FIG. 4 is a display diagram of weather information of place information corresponding to a to-be-traveled trip provided by some embodiments of the present application; Figure 5 FIG. 5 is a structural diagram of a weather information display device provided by some embodiments of the present application; Figure 6 FIG. 6 is a structural diagram of an electronic device provided by some embodiments of the present application; Figure 7 FIG. 7 is a hardware structural diagram of an electronic device provided by some embodiments of the present application. DETAILED DESCRIPTION
[0012] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the present application.
[0013] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a class, not limited to the number of objects, for example, the first object can be one or N. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in a "or" relationship.
[0014] The terms related to the embodiments of the present application are explained below.
[0015] Waypoint: refers to the place that the user will pass through in the entire journey from the starting point to the destination.
[0016] Icon: is a highly simplified, abstract, stylized, easily recognizable graphical symbol used to efficiently convey information, identify functions or represent entities in digital interfaces or physical environments. It conveys specific information, concepts, functions, brands or objects through simple graphics or images, mainly used for interface interaction, navigation and information identification.
[0017] Interface: refers to the graphical interaction layer seen by the user through the screen of the electronic device. That is, the "user interface (UI)", is the medium interface for interaction and information exchange between the application or operating system and the user, which realizes the conversion between the internal form of information and the form that the user can accept. The user interface is the source code written in specific computer languages such as Java, XML, etc. The interface source code is parsed and rendered on the electronic device, and finally presented as content that the user can recognize. The commonly used form of user interface is the graphical user interface (GUI), which refers to the user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icon, button, menu, tab, text box, dialog box, status bar, navigation bar, widget (Web widget, Widget) displayed in the display screen of the electronic device.
[0018] Application: refers to a computer program developed to complete one or more specific tasks and run on the operating system. The application runs in user mode and can interact with the user, with a visual user interface.
[0019] Weather application: refers to an application installed on a smart electronic device for providing weather information query, display and related services.
[0020] The technical solutions of this application embodiment can be applied to scenarios where users need to query weather information for multiple cities. For example, if the current system time is September 21, 2025, and the user has booked flight CZ3911 from Beijing to Wuhan at 8:00 AM on September 22, 2025, arriving in Wuhan at 9:20 AM on the same day, the user wants to know the weather information for both Beijing and Wuhan. As another example, if the current system time is September 21, 2025, and the user has been buying bus tickets every Saturday morning for the past six months to travel from Beijing to Langfang to visit their parents, arriving in Langfang at 11:00 AM, the user wants to know the weather information for both Beijing and Langfang. Yet another example, if the current system time is September 21, 2025, and the user mentioned in an instant messaging application on September 20, 2025, that they would be traveling together from Beijing to Chengdu to see a concert at 9:00 AM the following weekend.
[0021] The weather information viewing method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0022] Figure 1 This is a flowchart illustrating a weather information display method provided in an embodiment of this application. The subject executing the weather information display method can be an electronic device, which can be, but is not limited to, a personal computer (PC), a smartphone, a tablet computer, or a personal digital assistant (PDA).
[0023] like Figure 1 As shown, the weather information display method provided in this application embodiment may include steps 110-120.
[0024] Step 110: Obtain the location information corresponding to the trip to be taken.
[0025] The "to-travel itinerary" can be a trip that the user plans to take. For example, in the example above, the user booked flight CZ3911 from Beijing to Wuhan at 8:00 AM on September 22, 2025. This trip is the user's "to-travel itinerary".
[0026] For example, in the example above, the user has been going to the station every Saturday morning for the past six months to buy a bus ticket for 9:00 AM to visit his parents in Langfang. He arrives in Langfang at 11:00 AM. Thus, we know that the user will also depart from Beijing to Langfang this Saturday, September 27, 2025. Therefore, this trip can also be considered the user's planned trip.
[0027] For example, in the example above, if a user mentions to friend A in an instant messaging application on September 20, 2025, that they will travel from Beijing to Chengdu to see a concert together at 9:00 AM next weekend, then the user may also travel from Beijing to Chengdu to see a concert on the morning of September 28, 2025. This trip can also be considered the user's planned trip.
[0028] The location information corresponding to the aforementioned travel itinerary may include at least one of the following: destination and transit points. The destination may be the final stop of the travel itinerary. For example, in the example above, the user booked flight CZ3911 from Beijing to Wuhan at 8:00 AM on September 22, 2025, with Wuhan as the destination. Another example is that the user might depart from Beijing to Langfang on the morning of September 27, 2025, in which case Langfang would be the destination. Yet another example is that the user might depart from Beijing to Chengdu to attend a concert on the morning of September 28, 2025, in which case Chengdu would be the destination.
[0029] The transit points mentioned above can be places that the trip will pass through. For example, in the example above, the user booked a flight from Beijing to Wuhan on flight CZ3911 at 8:00 AM on September 22, 2025. The flight will pass through Shanghai, so the transit point for this trip is Shanghai.
[0030] It should be noted that the location information mentioned above can be a city (city) among at least one of the transit points and the destination, or a prefecture-level district within a city (city) among at least one of the transit points and the destination. When determining the prefecture-level district, it can be determined based on at least one of the transit points and the destination. For example, in a travel itinerary where the user has booked flight CZ3911 from Beijing to Wuhan at 8:00 AM on September 22, 2025, the flight lands at Wuhan Tianhe Airport, which is located in Huangpi District of Wuhan City. Therefore, the destination could be either Wuhan City or Huangpi District of Wuhan City. Whether the location information is a city or a prefecture-level district within a city can be selected according to the user's needs and is not limited in this embodiment.
[0031] In some embodiments of this application, in order to improve the efficiency of obtaining location information corresponding to the trip to be traveled, and thus improve the display efficiency of the location information corresponding to the trip to be traveled, step 110 may specifically include: Receive a second input from the user regarding the weather app's icon or interface; In response to the second input, obtain the location information corresponding to the trip to be taken.
[0032] The weather app icon can be the icon of an application used to display weather information. The aforementioned application interface can be the interface of a weather app, such as its main screen.
[0033] The second input can be user input to the weather app's icon or interface. This second input is used to obtain location information corresponding to the planned trip. The second input can be a second operation. For example, the second input includes, but is not limited to: user touch input to the weather app's icon or interface using a finger or stylus, user-inputted voice commands, user-inputted specific gestures, or other feasible inputs, which can be determined according to actual usage needs. This embodiment of the invention does not limit the specific gestures. In this application embodiment, the specific gesture can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture. The click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the second input can be user touch input to the weather app's icon or interface, such as clicking the weather app's icon or interface.
[0034] In some embodiments of this application, location information corresponding to the travel itinerary can be obtained by responding to a second input from the user to the application icon or interface of the weather application.
[0035] In the embodiments of this application, by responding to the user's second input to the weather application icon or application interface, the location information corresponding to the trip can be obtained. In this way, the user does not need to check the information such as the SMS and ticketing application corresponding to the trip in turn to obtain the location information corresponding to the trip, thereby improving the efficiency of obtaining the location information corresponding to the trip and thus improving the display efficiency of the location information corresponding to the trip.
[0036] Step 120: Display the weather information for the location corresponding to the trip in the weather app's application interface.
[0037] In some embodiments of this application, the weather information of the location information corresponding to the trip can be the weather information of the location information corresponding to the trip, such as, but not limited to, the temperature, weather conditions and wind force of the location information corresponding to the trip. The weather conditions here can be sunny, rainy, cloudy, etc.
[0038] In some embodiments of this application, to prevent users from experiencing travel delays due to weather conditions at transit points and destinations, the methods described above may further include: Obtain the first time information corresponding to the route and the second time information corresponding to the destination; Step 120 may specifically include: The weather app's interface displays the weather information for the route at the first time and the weather information for the destination at the second time.
[0039] The first time information can be the time when the user arrives at a transit point during the trip. The second time information is the time when the user arrives at the destination during the trip. For example, in the above example, the current system time is September 21, 2025. The user has booked flight CZ3911 from Beijing to Wuhan at 8:00 AM on September 22, 2025. The flight arrives in Wuhan at 9:20 AM on September 22, 2025, and passes through Shanghai at 9:00 AM on September 22, 2025. Therefore, the first time information is 9:00 AM on September 22, 2025, and the second time information is 9:20 AM on September 22, 2025.
[0040] In some embodiments of this application, when displaying weather information for locations corresponding to the travel itinerary, weather information for the transit points at the first time and weather information for the destination at the second time can be displayed simultaneously.
[0041] Continuing with the example above where a user booked flight CZ3911 from Beijing to Wuhan at 8:00 AM on September 22, 2025, after the user clicks the weather app icon, they can... Figure 2 As shown, the application interface 20 displays the weather information for Shanghai at 9:00 AM on September 22, 2025, and the weather information for Wuhan at 9:20 AM on September 22, 2025.
[0042] In the embodiments of this application, by displaying the weather information corresponding to the first time information of the transit points and the weather information corresponding to the second time information of the destination on the application interface of the weather application, users can intuitively view the weather information of the transit points when passing through them and the weather information of the destination when arriving at it. This allows users to arrange specific travel plans based on the weather information of the transit points when passing through them and the weather information of the destination when arriving at it, thus avoiding delays in their trips due to weather conditions when arriving at the transit points and the destination.
[0043] In some embodiments of this application, to improve the efficiency of users viewing weather information corresponding to the route at the first time and the destination at the second time, displaying the weather information corresponding to the route at the first time and the destination at the second time on the application interface of the weather application may specifically include: The weather app displays weather information corresponding to the route at the first time in the first display area of the application interface, and displays weather information corresponding to the destination at the second time in the second display area of the application interface.
[0044] The first display area and the second display area can be two display areas within the application interface of a weather app. For example... Figure 2 Display areas 21 and 22 in the text.
[0045] In some embodiments of this application, when displaying weather information corresponding to the first time information of the route and the second time information of the destination on the application interface of the weather application, the weather information can be displayed in different display areas of the application interface of the weather application.
[0046] Continue to refer to Figure 2 When displaying the weather information of Shanghai at 9:00 AM on September 22, 2025, and the weather information of Wuhan at 9:20 AM on September 22, 2025, on the application interface 20, the weather information of Shanghai at 9:00 AM on September 22, 2025, can be displayed in the display area 21 of the application interface 20, and the weather information of Wuhan at 9:20 AM on September 22, 2025, can be displayed in the display area 22.
[0047] In the embodiments of this application, by displaying the weather information corresponding to the first time information of the route and the weather information corresponding to the second time information of the destination in different display areas of the weather application's application interface, the weather information corresponding to the first time information of the route and the weather information corresponding to the second time information of the destination can be viewed simultaneously on one interface, without the user having to switch back and forth between the weather application's application interface, thus improving the efficiency of the user in viewing the weather information corresponding to the first time information of the route and the weather information corresponding to the second time information of the destination.
[0048] In some embodiments of this application, to improve the efficiency of viewing the trip identifier of a pending trip, when the weather information corresponding to the location information of the pending trip is displayed on the application interface of a weather application, the above-mentioned method may further include: Displays the itinerary identifier corresponding to the trip to be taken.
[0049] The trip identifier corresponding to the trip to be traveled can be a permanent identifier for the trip to be traveled. The trip identifier may include, but is not limited to, the route and destination of the trip to be traveled, the first time information corresponding to the route, the second time information corresponding to the destination, and the means of transportation.
[0050] In some embodiments of this application, when displaying weather information for the location corresponding to the trip to be taken on the application interface of the weather application, the trip identifier corresponding to the trip to be taken can also be displayed.
[0051] Continue to refer to Figure 2 ,exist Figure 2 The system can also display the user's travel itinerary, including the departure point "Beijing", the destination "Wuhan", the departure time for the departure point "Beijing" ("8:00 AM on September 22, 2025"), the second time for the destination "Wuhan" ("9:20 AM on September 22, 2025"), and the user's mode of transportation, flight "CZZ3911".
[0052] In the embodiments of this application, by simultaneously displaying the trip identifier corresponding to the trip to be traveled, users can intuitively view the trip identifier of the trip to be traveled without having to switch to at least one application associated with the trip to view it, thus improving the viewing efficiency of the trip identifier of the trip to be traveled.
[0053] In some embodiments of this application, there may be at least two trips to be taken, and the at least two trips to be taken may include a first trip and a second trip; the first trip and the second trip may be any two of the at least two trips to be taken.
[0054] In one example, if a user arrives in Wuhan at 9:20 AM on September 22, 2025, and then travels from Wuhan to Nanjing for a business trip the following day—that is, the user has booked the G10 high-speed train from Wuhan to Nanjing, departing from Wuhan at 9:00 PM on September 22, 2025, and arriving in Nanjing at 11:00 PM on the same day—then the first itinerary would be the user's booked flight CZ3911 from Beijing to Wuhan at 8:00 AM on September 22, 2025, and the second itinerary would be the user's booked high-speed train G10 from Wuhan to Nanjing at 9:00 PM on September 22, 2025.
[0055] To improve the efficiency of weather information retrieval, step 120 may specifically include: The weather app displays weather information for the location corresponding to the first trip within its application interface. Receive the user's first input; In response to the first input, display the weather information for the location corresponding to the second trip.
[0056] The first input can be input from a user to the application interface of a weather app displaying weather information corresponding to the location information of the first trip. This first input is used to display weather information corresponding to the location information of the second trip, and can be a first operation. For example, the first input includes, but is not limited to: touch input from a user via a finger or stylus to the application interface of a weather app displaying weather information corresponding to the location information of the first trip; voice commands input by the user; specific gestures input by the user; or other feasible inputs, which can be determined according to actual usage needs. This embodiment of the invention does not limit the specific gestures. Specific gestures in this embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-click gesture. Click input in this embodiment can be a single-click input, a double-click input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the first input can be touch input from a user to the application interface of a weather app displaying weather information corresponding to the location information of the first trip.
[0057] In some embodiments of this application, when there are at least two trips to be taken, including a first trip and a second trip, upon receiving a second input from the user to the application icon of the weather application, the weather information of the location information corresponding to the first trip can be displayed on the application interface of the weather application firstly, and then, in response to the user's first input, the weather information of the location information corresponding to the second trip can continue to be displayed.
[0058] Continue to refer to Figure 2 The example shown illustrates this: if a user arrives in Wuhan at 9:20 AM on September 22, 2025, and then travels from Wuhan to Nanjing for a business trip the following day—that is, the user has booked the G10 high-speed train from Wuhan to Nanjing, departing Wuhan at 9:00 PM on September 22, 2025, and arriving in Nanjing at 11:00 PM on the same day—then after the user clicks the weather app icon, the following will be displayed: Figure 2 After viewing the weather app's interface 20 as shown, if the user swipes left on the weather app's interface 20, the following will be displayed: Figure 3 The application interface 30 shown displays weather information for Wuhan and Nanjing. Specifically, display area 31 displays the weather information for Wuhan at 9 PM on September 22, 2025, and display area 32 displays the weather information for Nanjing at 11 PM on September 22, 2025.
[0059] It should be noted that, asFigure 3 As shown, when displaying weather information for Wuhan and Nanjing, the travel route marker 33 from Wuhan to Nanjing will also be displayed.
[0060] It should be noted that when there are at least two pending trips, the time information for both trips must be within a preset time period. This allows the system to display weather information for the corresponding locations sequentially based on the order of the trips' time information upon receiving the user's first input. For example, if the at least two trips are within 7 days of the current system time, the corresponding location information can be displayed sequentially based on the order of the trips' time information. That is, the weather information for the location of the trip closest to the current system time is displayed first, followed by the weather information for the second closest trip, and so on. The preset time period can be 7 days, and the specific value can be set according to user needs; this is not limited in this embodiment.
[0061] In the embodiments of this application, when there are at least two trips to be taken, including a first trip and a second trip, the weather information of the location information corresponding to the first trip can be displayed on the application interface of the weather application first. Then, in response to the user's first input, the weather information of the location information corresponding to the second trip can be displayed. In this way, the weather information of the location information corresponding to at least two trips to be taken can be displayed, eliminating the need for the user to enter the location information corresponding to each trip to be taken to query the weather information, thus improving the efficiency of weather information query.
[0062] In some embodiments of this application, a user's planned travel itinerary may include a pre-booked trip, an itinerary inferred from the user's completed historical travel itinerary, or an itinerary inferred from the user's other social information. For example, in the above example, a user booked flight CZ3911 from Beijing to Wuhan at 8:00 AM on September 22, 2025; this trip is a pre-booked trip. Similarly, a user might travel from Beijing to Langfang on the morning of September 27, 2025; this trip is determined based on the user's completed historical travel itinerary. Furthermore, a user might travel from Beijing to Chengdu to attend a concert on the morning of September 28, 2025; this trip is determined based on the user's other social information.
[0063] When the trip to be taken is a trip that the user has already booked, in order to improve the efficiency of obtaining the location information corresponding to the trip to be taken, step 110 may specifically include: Obtain travel notification information from at least one application associated with the user's travel itinerary; The travel notification information is parsed to obtain the location information corresponding to the travel itinerary.
[0064] The application associated with the user's travel itinerary can be at least one application that can provide information related to the user's travel itinerary, such as, but not limited to, SMS applications, ticketing applications, calendar applications, hotel booking applications, instant messaging applications, social media, etc.
[0065] In some embodiments of this application, the weather application can run a dedicated information monitoring module in the background to monitor various notification information received from at least one application associated with the user's travel itinerary around the clock, and then parse the notification information to obtain the location information corresponding to the travel itinerary.
[0066] Continuing with the example above, the current system time is September 21, 2025. The user has booked flight CZ3911 departing from Beijing at 8:00 AM on September 22, 2025, with Wuhan as the final destination. The flight is scheduled to arrive in Wuhan at 9:20 AM on September 22, 2025. After booking flight CZ3911, the user's SMS application on their electronic device will receive a notification message: "You have purchased flight CZ3911, departing from Beijing to Wuhan at 8:00 AM tomorrow." The system will then parse the notification message "You have purchased flight CZ3911, departing from Beijing to Wuhan at 8:00 AM tomorrow," as well as the flight itinerary information for flight CZ3911 in the booking software application, extracting the destination as Wuhan, the departure point as Beijing, and the transit point as Shanghai.
[0067] It should be noted that the weather app can obtain notification information about the user's travel from at least one application associated with the user's travel itinerary. This requires authorization from at least one application associated with the user's travel itinerary. Specifically, when the weather app is installed or launched for the first time, it may request permissions from at least one application associated with the user's travel itinerary. Upon receiving confirmation of authorization from the user, the weather app can obtain notification information about the user's travel from at least one application associated with the user's travel itinerary.
[0068] It should be noted that when parsing user travel notification information to obtain location information, natural language processing technology can be used to parse the monitored user travel notification information, extract key information, and obtain location information.
[0069] In some embodiments of this application, in addition to extracting location information from the user's travel notification information, the timestamp information of the arrival location information and the mode of transportation used by the user can also be extracted.
[0070] In another embodiment, if the extracted user travel notification information is extracted from a hotel booking application, information such as the name of the hotel booked by the user can also be extracted from the notification information.
[0071] In the embodiments of this application, by parsing the travel notification information in at least one application associated with the user's travel itinerary, the location information corresponding to the travel itinerary can be quickly obtained. In this way, the user's travel information can be automatically obtained from multiple channels without having to switch back and forth between at least one application associated with the user's travel itinerary, thus improving the efficiency of obtaining the location information corresponding to the travel itinerary.
[0072] In some embodiments of this application, when the trip to be taken is inferred based on the user's previous historical travel itineraries, in order to expand the channels for obtaining location information corresponding to the user's trip to be taken and improve the efficiency and accuracy of obtaining location information corresponding to the user's trip to be taken, step 110 may specifically include: Obtain the user's historical travel itinerary; Based on historical travel itineraries, determine the location information corresponding to the upcoming trip.
[0073] Among them, historical travel itineraries can be trips that the user has already taken. For example, in the example above, if the user has been going to the station every Saturday morning for the past six months to buy a 9 am bus ticket to go from Beijing to Langfang to visit his parents, then the user's trips from Beijing to Langfang every Saturday morning before that are the user's historical travel itineraries.
[0074] In some embodiments of this application, a user's historical travel itinerary can be obtained from at least one application associated with the user's travel itinerary, such as a ticketing application, accommodation booking application, SMS application, etc., and the location information corresponding to the upcoming trip can be determined from the historical travel itinerary.
[0075] In the embodiments of this application, by determining the location information corresponding to the trip to be taken from the user's historical travel itinerary, the channels for obtaining the location information corresponding to the user's trip to be taken can be expanded, thereby improving the efficiency and accuracy of obtaining the location information corresponding to the user's trip to be taken.
[0076] If the trip to be taken is inferred based on the user's previous travel history, then... Figure 2As shown in the example, after a user clicks the weather app icon, weather information for the location corresponding to the upcoming trip can also be displayed.
[0077] For example, as mentioned above, a user has been buying a 9 AM bus ticket every Saturday morning for the past six months to travel from Beijing to Langfang to visit their parents. Specifically, the user departs from Qinghe Station in Beijing and arrives at Langfang Station. It can be inferred that the user will again depart from Qinghe Station in Beijing to Langfang at 9 AM on September 27, 2025. During this journey, they will pass through Beijing South Station. Therefore, after the user clicks the weather app icon, it will show... Figure 4 As shown, the weather information for Beijing South Railway Station at 10:00 AM on September 27, 2025 is displayed in display area 41 of the application interface 40 of the weather application, and the weather information for Langfang at 11:00 AM on September 27, 2025 is displayed in display area 42.
[0078] In addition, such as Figure 4 As shown, the user's travel itinerary identifier 43 can also be displayed in the application interface 40. The travel itinerary identifier 43 includes the user's current travel destination: Langfang, trigger point: Beijing Qinghe Station, departure time from Beijing Qinghe Station: 9:00 AM on September 27, 2025, arrival time in Langfang: 11:00 AM on September 27, 2025, and mode of transportation: G20 bus.
[0079] In some embodiments of this application, when the travel itinerary is determined based on other social information of the user, the same approach can be used. Figure 2 As shown, the weather information for the location corresponding to the trip is displayed.
[0080] In the example above, if a user mentions to friend A in an instant messaging application on September 20, 2025, that they will travel together from Beijing to Chengdu to see a concert at 9:00 AM the following weekend, it can be inferred that the user may depart from Beijing to Chengdu at 9:00 AM on September 28, 2025. The journey from Beijing to Chengdu will pass through Shanghai. Therefore, after the user clicks the weather app icon, the app can simultaneously display the weather information for Shanghai upon arrival in Shanghai and the weather information for Chengdu upon arrival in Chengdu. The specific display effect is as follows: Figure 2 , Figure 3 and Figure 4 As shown, it will not be elaborated further here.
[0081] Additionally, it should be noted that when displaying weather information for locations corresponding to the upcoming travel itinerary inferred from the user's other social information, it can also show what information the travel itinerary was inferred from. For example, when displaying the weather information for Shanghai when arriving in Shanghai and the weather information for Chengdu when arriving in Chengdu, it can also indicate the source of the information as "from chat history of friend A", and a corresponding prompt card can pop up: "It has been detected that you may be traveling to Chengdu next weekend. The specific weather conditions are as follows."
[0082] The method provided in this application can be executed by a weather information display device. This application uses a weather information display device executing a weather information display method as an example to illustrate the weather information display device provided in this application.
[0083] Figure 5 This is a schematic diagram illustrating the structure of a weather information display device according to an exemplary embodiment. Figure 5 As shown, the weather information display device 500 may include: The acquisition module 510 is used to acquire location information corresponding to the trip to be traveled; the location information corresponding to the trip to be traveled includes at least one of the following: destination and transit points; Display module 520 is used to display weather information corresponding to the location information of the trip to be taken on the application interface of the weather application.
[0084] In this embodiment of the application, by obtaining the location information corresponding to the trip to be taken, the location information corresponding to the trip to be taken can include at least one of the following: destination and transit points. Then, the weather information of the location information corresponding to the trip to be taken can be displayed on the application interface of the weather application. In this way, without the user having to manually input the transit points and destinations corresponding to the trip to be taken in the weather application, the weather information of the destination and / or transit points in the user's trip to be taken can be directly displayed, which improves the efficiency of viewing weather information.
[0085] In some embodiments of this application, the acquisition module can also be used to acquire first time information corresponding to the route and second time information corresponding to the destination; The display module is specifically used to display the weather information of the route corresponding to the first time information and the weather information of the destination corresponding to the second time information on the application interface of the weather application.
[0086] In some embodiments of this application, the trip to be traveled is at least two, and the at least two trips to be traveled include a first trip and a second trip; The display module is specifically used to display weather information for the location information corresponding to the first trip in the application interface of the weather application. The device further includes: The receiving module is used to receive the user's initial input; The display module is specifically used to respond to the first input and display weather information for the location information corresponding to the second trip.
[0087] In some embodiments of this application, the display module is specifically used to display the weather information of the route corresponding to the first time information in the first display area of the application interface of the weather application, and to display the weather information of the destination corresponding to the second time information in the second display area of the application interface of the weather application.
[0088] In some embodiments of this application, the acquisition module is specifically used to receive a first input from the user regarding the application icon or interface of the weather application; in response to the first input, to acquire the location information corresponding to the trip to be taken.
[0089] In some embodiments of this application, the acquisition module is specifically used to acquire the user's historical travel itinerary; and to determine the location information corresponding to the trip to be taken based on the historical travel itinerary.
[0090] In some embodiments of this application, when the weather information corresponding to the location information of the trip to be traveled is displayed on the application interface of the weather application, the display module is also used to display the trip identifier corresponding to the trip to be traveled.
[0091] The weather information display device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0092] The weather information display device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0093] The weather information display device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0094] Optionally, such as Figure 6 As shown, this application embodiment also provides an electronic device 600, including a processor 601 and a memory 602. The memory 602 stores a program or instructions that can run on the processor 601. When the program or instructions are executed by the processor 601, they implement the various steps of the above-described weather information display method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0095] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0096] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0097] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
[0098] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0099] The processor 710 is used to obtain location information corresponding to the trip to be taken; the location information corresponding to the trip to be taken includes at least one of the following: destination and transit points; Display unit 706 is used to display weather information corresponding to the location information of the trip to be taken on the application interface of the weather application.
[0100] Thus, by obtaining the location information corresponding to the trip to be taken, which may include at least one of the following: destination and transit points, the weather information of the location information corresponding to the trip to be taken can be displayed on the application interface of the weather application. In this way, without the user having to manually enter the transit points and destination of the trip to be taken in the weather application, the weather information of the destination and / or transit points in the user's trip to be taken can be directly displayed, thus improving the efficiency of viewing weather information.
[0101] Optionally, the processor 710 is further configured to acquire first time information corresponding to the route and second time information corresponding to the destination; The display unit 706 is also used to display the weather information of the route corresponding to the first time information and the weather information of the destination corresponding to the second time information on the application interface of the weather application.
[0102] In this way, by displaying the weather information of the transit points at the first time and the weather information of the destination at the second time on the application interface of the weather app, users can intuitively see the weather information of the transit points when they pass through the travel route and the weather information of the destination when they arrive at the destination. This allows users to make specific travel plans based on the weather information of the transit points when they pass through the travel route and the weather information of the destination when they arrive at the destination, so as to avoid delays in their trip due to weather conditions when they arrive at the transit points and the destination.
[0103] Optionally, the trip to be traveled can be at least two, including a first trip and a second trip; the display unit 706 is also used to display weather information of the location information corresponding to the first trip on the application interface of the weather application; User input unit 707 is used to receive the user's first input; The display unit 706 is also configured to respond to the first input by displaying weather information for the location information corresponding to the second trip.
[0104] Thus, when there are at least two travel itineraries, including a first itinerary and a second itinerary, the weather information for the location corresponding to the first itinerary can be displayed on the weather app's interface first. Then, in response to the user's first input, the weather information for the location corresponding to the second itinerary can be displayed. This way, the weather information for the locations corresponding to at least two travel itineraries can be displayed, eliminating the need for the user to input the location information for each travel itinerary sequentially to query the weather information, thereby improving the efficiency of weather information query.
[0105] Optionally, the display unit 706 is further configured to display the weather information of the route corresponding to the first time information in the first display area of the application interface of the weather application, and to display the weather information of the destination corresponding to the second time information in the second display area of the application interface of the weather application.
[0106] In this way, by displaying the weather information corresponding to the first time of the route and the second time of the destination in different display areas of the weather application interface, users can view the weather information corresponding to the first time of the route and the second time of the destination simultaneously on one interface, without having to switch back and forth between the weather application interfaces, thus improving the efficiency of users in viewing the weather information corresponding to the first time of the route and the second time of the destination.
[0107] Optionally, the user input unit 707 is also used to receive the user's first input regarding the application icon or interface of the weather application; The processor 710 is also configured to, in response to the first input, obtain location information corresponding to the trip to be taken.
[0108] In this way, by responding to the user's second input to the weather app icon or the app interface, the location information corresponding to the trip can be obtained. This eliminates the need for the user to check the corresponding SMS messages, ticketing applications, etc., to obtain the location information for the trip, thus improving the efficiency of obtaining the location information and, consequently, the efficiency of displaying the location information for the trip.
[0109] Optionally, the processor 710 is also configured to obtain the user's historical travel itinerary; and determine the location information corresponding to the trip to be taken based on the historical travel itinerary.
[0110] In this way, by determining the location information corresponding to the user's upcoming trip from the user's historical travel itinerary, the channels for obtaining the location information corresponding to the user's upcoming trip can be expanded, thereby improving the efficiency and accuracy of obtaining the location information corresponding to the user's upcoming trip.
[0111] Optionally, when the weather information corresponding to the location information of the trip to be traveled is displayed on the application interface of the weather application, the display unit 706 is also used to display the trip identifier corresponding to the trip to be traveled.
[0112] In this way, by simultaneously displaying the trip identifiers corresponding to the trips to be taken, users can intuitively view the trip identifiers of the trips to be taken without having to switch to at least one application associated with the trip to view them, thus improving the efficiency of viewing the trip identifiers of the trips to be taken.
[0113] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a color camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0114] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0115] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.
[0116] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described weather information display method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0117] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0118] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described weather information display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0119] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0120] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the weather information display method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0121] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0122] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0123] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for displaying weather information, characterized in that, The method includes: Obtain the location information corresponding to the trip to be taken; the location information corresponding to the trip to be taken includes at least one of the following: destination, transit points; The weather application displays weather information for the location corresponding to the trip to be taken.
2. The method according to claim 1, characterized in that, The method further includes: Obtain the first time information corresponding to the route and the second time information corresponding to the destination; The weather information displayed on the application interface of the weather app for the location information corresponding to the trip to be taken includes: The weather application's interface displays the weather information for the route at the first time and the weather information for the destination at the second time.
3. The method according to claim 2, characterized in that, The number of trips to be traveled is at least two, and the at least two trips to be traveled include a first trip and a second trip; The weather information displayed on the application interface of the weather app for the location information corresponding to the trip to be taken includes: The weather information for the location corresponding to the first trip is displayed on the weather app's interface. Receive the user's first input; In response to the first input, weather information for the location corresponding to the second trip is displayed.
4. The method according to claim 2, characterized in that, The display of weather information for the route at the first time and weather information for the destination at the second time on the application interface of the weather application includes: The weather information of the route corresponding to the first time information is displayed in the first display area of the weather application's application interface, and the weather information of the destination corresponding to the second time information is displayed in the second display area of the weather application's application interface.
5. The method according to claim 1, characterized in that, The process of obtaining the location information corresponding to the trip to be taken includes: Receive the user's initial input regarding the weather app's icon or interface; In response to the first input, the location information corresponding to the trip to be taken is obtained.
6. The method according to claim 1, characterized in that, The process of obtaining the location information corresponding to the trip to be taken includes: Obtain the user's historical travel itinerary; Based on the historical travel itinerary, determine the location information corresponding to the upcoming trip.
7. The method according to any one of claims 1-6, characterized in that, When the weather information corresponding to the destination of the planned trip is displayed on the application interface of the weather application, the method further includes: Displays the trip identifier corresponding to the trip to be taken.
8. A weather information display device, characterized in that, The device includes: The acquisition module is used to acquire location information corresponding to the trip to be taken; the location information corresponding to the trip to be taken includes at least one of the following: destination and transit points; The display module is used to display weather information for the location corresponding to the trip to be taken on the application interface of the weather application.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the weather information display method as described in any one of claims 1-8.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the weather information display method as described in any one of claims 1-8.