This application relates to the field of computer and Internet technologies, and in particular, to an information display method and apparatus, a device, a storage medium, and a program product.
Information applications can provide objects with information such as news, updates, and comments.
In related technologies, information applications usually display information in the form of lists. For example, in an interface, information items are displayed one by one in top-down order. A user may slide the interface to select information corresponding to items of interest for viewing.
Embodiments of this application provide an information display method and apparatus, a device, a storage medium, and a program product.
One aspect of the embodiment of this application provides an information display method. The method includes displaying an interface presenting a map of a geographic region; displaying at least one information label related to the geographic region in the interface, and marking a geographic location associated with the information label on the map, each information label corresponding to at least one piece of information; and displaying information corresponding to a target information label in response to an operation on the target information label.
Another aspect of the embodiments of this application provides a computer device. The computer device includes a processor and a memory, the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement the foregoing information display method.
Another aspect of the embodiments of this application provides a non-transitory computer-readable storage medium. The storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by a processor to implement the foregoing information display method.
By combining information and maps, a map of a region and information labels in the region are displayed in the interface, and geographic locations associated with the information labels are marked on the map to achieve associated display of information and geographic locations. The embodiments of this application provide a novel information display method, by which a user can learn a geographic location associated with information more clearly and intuitively, such as learning a location of occurrence of an event contained in the information.
To make the objectives, technical solutions, and advantages of this application clearer, the following further describes implementations of this application in detail with reference to the accompanying drawings.
The terminal device 10 may be an electronic device such as a mobile phone, a tablet computer, a personal computer (PC), a wearable device, a vehicle terminal device, a virtual reality (VR) device, or an augmented reality (AR) device, which not limited by the descriptions of this application. A client running a target application may be installed in terminal device 10. In some embodiments, the target application may be an application with a display function for information. For example, the target application may be an information display application, a browser application, a social application, an instant messaging application, a video playback application, or a map application, which not limited by the descriptions of this application.
The server 20 may be an independent physical server, a server cluster or distributed system including a plurality of physical servers, or a cloud server providing cloud computing services. The server 20 may be a backend server of the foregoing target application for providing backend services for a client of the target application, such as providing news or other information for a client.
In some embodiments, the foregoing target application may be a separately developed independent application (APP), a mini program, or other forms of applications such as a web application, which not limited by the descriptions of this application.
Step 210: Display an interface for displaying information, the interface displaying a map of a target region.
The information has timeliness and regionality, and timely information can be provided for a user of the client. The information may be in the form of text, images, videos, or the like. In some embodiments, the information may alternatively be a combination of the foregoing various forms of information. For example, the information may be an article in a combined form of images and text.
The interface is a human-computer interaction interface provided by the client. The client may display the information in the interface, and correspondingly, a target object may view the information in the interface. In some embodiments, in the interface, the target object may filter the information. After the target object selects a condition corresponding to the information, information of the corresponding condition is displayed in the interface. For example, when the filtering condition selected by the target object to display information is “sports”, the interface displays information related to “sports”.
In this embodiment, the interface displays the map of the target region, where the target region is a geographic location region, and the target region may be one or more countries, one or more provinces, one or more cities, one or more townships, one or more communities, a region(s) where one or more buildings are located, or the like. This application does not define the scope of the target region. The target region may be selected by the target object or by the client, which not limited by the descriptions of this application. The target object may adjust the size of the target region, for example, change a size of the target region from one city to two cities.
For example, as shown in
Step 220: Display, in the interface, at least one information label related to the target region, and mark a geographic location associated with the information label on the map, where each information label corresponds to at least one piece of information.
The information label is a label corresponding to information, and displays an overview information (or brief information). The overview information displayed on the information label may be in a form of text, images, videos, or the like. In addition, the information label may be an operable control, and the target object clicks the information label by means of an operating body such as a finger or a mouse to trigger display of the information corresponding to the information label. The information label briefly displays information in the form of a title or introduction. The title and introduction are used for summarizing content of the information, and the target object may obtain the overview information of the information through the title and introduction. In the interface, the corresponding information is displayed by displaying the information label.
In some embodiments, the information is associated with a geographic location, which may be a geographic location related to an event contained in the information. For example, the geographic location may be a location of occurrence, passage, or end of the event contained in the information. In addition, due to the corresponding relationship between the information and the information labels, the geographic location associated with the information may also be referred to as the geographic location associated with the information label. For example, a geographic location associated with an information label is city A, indicating that a geographic location associated with information corresponding to the information label is city A. For example, information related to an event occurring in city A may be associated with city A.
The information label displayed in the interface is an information label related to the target region, and whether the information label is related to the target region is determined according to the geographic location associated with the information label. For example, if the target region is city A and the geographic location associated with an information label is community A in city A, the information label is related to the target region and will be displayed in the target region of the interface. If the target region is city A and the geographic location associated with an information label is community B in city B, the information label is not related to the target region and will not be displayed in the interface. A plurality of information labels may be displayed in the interface, and a plurality of information labels related to the target region may be displayed in the target region of the interface. In addition, one or more information labels may be related to the target region, and the interface may display all or some of the information labels related to the target region. For example, when a lot of information labels are related to the target region, only a few information labels related to the target region may be selected for display in consideration of the limited size of the interface. In some embodiments, the target object may update, through an update control, the information labels related to the target region displayed in the interface.
In addition, each information label corresponds to at least one piece of information. In a case that an information label corresponds to a piece of information, the target object clicks the information label through an operating body to trigger display of the piece of information corresponding to the information label. In a case that an information label corresponds to a plurality of pieces of information, the target object clicks the information label through an operating body to trigger display of the plurality of pieces of information corresponding to the information label. In some embodiments, in the case that the information label corresponds to the plurality of pieces of information, the plurality of pieces of information may be displayed simultaneously, or only one piece may be displayed and then switched according to an operation of the target object to display information. This application does not limit how to display the plurality of pieces of information.
In this embodiment, the interface displays the map of the target region and at least one information label related to the target region. Moreover, the geographic location associated with an information label is marked on the map, and the target object is enabled to intuitively learn the geographic location associated with the information, such as a location of occurrence of an event contained in the information. For example, as shown in
Step 230: Display, in response to an operation on a target information label in at least one information label, information corresponding to the target information label.
The target information label may be any one or more of the at least one information label displayed in the interface. An information display interface is displayed in response to the operation on the target information label in the at least one information label, and the information corresponding to the target information label is displayed in the information display interface. In the process of displaying the information display interface, the display of the interface for displaying information labels may be canceled or maintained. For example, the information display interface may be a floating window located on an upper layer of the interface for displaying information labels; or the interface for displaying information labels is switched to the information display interface. For example, if the target information label corresponds to one piece of information, the information may be displayed alone through a full screen or half screen. If the target information label corresponds to a plurality of pieces of information, the information being viewed may be displayed alone on a full screen or half screen, and other information may be displayed in the form of floating windows.
The target object may click the information label in the interface to view information. For example, as shown in
According to the technical solution provided in this embodiment, by combining information and maps, a map of a region and information labels in the region are displayed in the interface, and geographic locations associated with the information labels are marked on the map to achieve associated display of information and geographic locations. This embodiment provides a novel information display method, by which a user can learn a geographic location associated with information more clearly and intuitively, such as learning a location of occurrence of an event contained in the information.
The target object performs the region selection operation to determine the selected region on the map of the target region displayed in the interface. The selected region is a region determined by the target object through the region selection operation and desired to obtain information. For example, the target region displayed in the interface is city A, and the information that the target object desires to obtain is information about community A in city A. The target object determines the selected region through the region selection operation, and the selected region is community A in city A. Therefore, an information label of community A in city A is displayed in the interface.
In a possible implementation, step 470 may include steps 471-473 as follows:
For example, as shown in
The location of the selected region is determined through the operation trajectory of the operating body of the target object on the map, and the object is enabled to select a region desired to display information, to obtain the information desired by the object and meet a demand of the object.
In another possible implementation, step 470 may include steps 474-476 as follows:
The location of the selected region is determined through the long-press operation of the object on the map, and the object is enabled to select a region desired to display information, to obtain the information desired by the object and meet a demand of the object.
The above only provides an introduction to two methods for determining the selected region. In the embodiments of this application, other methods may also be used for determining the selected region. For example, the selected region may alternatively be determined through region selection, where the client divides the map corresponding to the target region into a plurality of sub-regions. For example, province A is divided into a plurality of sub-regions such as city A, city B, and city C, and city A is divided into a plurality of sub-regions such as community A, community B, and community C. The selected region is determined according to one or more sub-regions selected by the target object.
By customizing, the object selects information about a desired region, which meets object's filtering requirements for information. Meanwhile, product diversity is improved through different region selection operations.
In this embodiment, the three function points of zoom adjustment on the map of the target region, selection of the target category labels, and selection of the selected region are decoupled and independent of each other, and the three function points may appear alone or simultaneously, which not limited by the descriptions of this application.
In this embodiment, the object selects information about a desired region through the region selection operation, which meets object's filtering requirements for information. Meanwhile, product diversity is improved through different region selection operations.
Second, by canceling the display of all information labels on the map of the target region before the map selection operation, the interface during object's region selection is more concise and clearer, the object can perform the region selection more clearly, and the final region selection result is more accurate.
Further, information is displayed in different map sizes and map display styles through map zooming and switching of the map display styles, to embody many functions of the product, meet the requirements of different objects, and increase object experience.
In some embodiments, as shown in
For an information label corresponding to specific information, a video playback window is displayed in the information label corresponding to the specific information, and video content of the specific information is played in the video playback window. The information label corresponding to the specific information further displays at least one of the following information: occurrence time of the specific information, views of the specific information, and alarm prompt for the specific information.
The specific information refers to information containing a specific display form. In some embodiments, the specific information may be information with a video playback window, and the target object plays video content of the specific information through the video playback window. As shown in
In this embodiment, the content of information is more specific and richer through specific information, namely, information containing video content.
Step 1310: Send an information obtaining request to a server, the information obtaining request being used for obtaining information in a target region.
In some embodiments, the information obtaining request includes indication information of the target region, such as a region name or geographic location coordinates of the target region, to inform the server of which region to obtain information from.
Step 1320: Receive label information and a geographic location, sent by the server, of the information in the target region, where the label information is used for displaying an information label corresponding to the information.
After receiving the label information and geographic location, sent by the server, of the information in the target region, the client may display the information label corresponding to the information according to the label information of the information. In addition, the client may determine a display position of the information label corresponding to the information in a map according to the geographic location of the information.
Moreover, the server may send information while sending the label information and geographic location of the information, or send information corresponding to a target information label after a user selects the target information label, thereby avoiding unnecessary data transmission consumption.
This embodiment only introduces a method that the client obtains the label information and geographic location of information in the target region. Methods of obtaining label information and a geographic location of information in another target region such as an adjusted target region or a selected region are similar, and details will not be repeated.
In some embodiments, the information display method further includes at least one of the following three methods:
The client obtains the geographic location of the target object through a global positioning system (GPS) or other positioning methods, and displays information of the geographic location of the target object in the interface. The client updates the information label of the region where the target object is located in real time according to the set time interval. The set time interval may be the same, such as updating every 5 minutes. The set time interval may alternatively be different, for example, the first time interval is 5 minutes, and the second time interval is 3 minutes, which not limited by the descriptions of this application.
In some embodiments, the information label of the region where the target object is located may be updated in real time according to a moving distance of the target object. For example, the information label corresponding to the region where the target object is located is updated every 5 kilometers that the target object moves.
This embodiment introduces the display of information through many methods. Method A displays information labels in different display formats according to the index information of the information labels, and focuses on the display of information labels of important index information, thereby facilitating object's identification on information, enabling the object to quickly find hot information, and saving object's time. Method B displays information labels according to the conditions set by the object, and provides information labels that meet the object's requirements, thereby saving time for the object to search for information. Method C provides nearby location information for the object according to the location of the object, thereby enabling the object to understand events around in a timely manner.
The following describes apparatus embodiments of this application, which may be used for performing the method embodiments of this application. For details not disclosed in the apparatus embodiments of this application, refer to the method embodiments of this application.
The interface display module 1410 is configured to display an interface for displaying information, the interface displaying a map of a target region.
The label display module 1420 is configured to display, in the interface, at least one information label related to the target region, and mark a geographic location associated with the information label on the map, where each information label corresponding to at least one piece of information.
The information display module 1430 is configured to display, in response to an operation on a target information label in at least one information label, information corresponding to the target information label.
In one embodiment, the label display module 1420 is configured to display the at least one information label in the interface, and display a marking point corresponding to each information label on the map. The information label and the marking point corresponding to the information label are associatively displayed, and a display position of the marking point corresponding to the information label on the map corresponds to a geographic location associated with the information label.
In one embodiment, as shown in
The map adjustment module 1440 is configured to display a map of the adjusted target region in the interface in response to a zoom operation on the map.
The label display module 1420 is further configured to display, in the interface, at least one information label related to the adjusted target region, and mark a geographic location associated with the information label on the map.
In one embodiment, the map adjustment module 1440 is configured to display, in a two-dimensional plane style, the map of the adjusted target region in the interface in a case that a zoom ratio of the map satisfies a first condition; or display, in a three-dimensional style, the map of the adjusted target region in the interface in a case that a zoom ratio of the map satisfies a second condition.
In one embodiment, as shown in
The region selection module 1450 is configured to display, in the interface, a map of a selected region in the target region in response to a region selection operation.
The label display module 1420 is further configured to display, in the interface, at least one information label related to the selected region, and mark a geographic location associated with the information label on the map.
In one embodiment, the region selection module 1420 is configured to obtain an operation trajectory corresponding to the region selection operation in response to the region selection operation; determine the selected region from the target region based on the operation trajectory; and display the map of the selected region in the interface.
In one embodiment, the region selection module 1420 is configured to obtain an operation position and operation duration corresponding to the region selection operation in response to the region selection operation; determine the selected region from the target region based on the operation position and operation duration; and display the map of the selected region in the interface.
In one embodiment, as shown in
The label cancellation module 1460 is configured to cancel the display of the information labels displayed in the interface in response to an operation on a target control displayed in the interface.
In one embodiment, the interface further displays at least one category label, and different category labels correspond to information labels belonging to different information categories. The label display module 1420 is further configured to display, in response to an operation on a target category label in the at least one category label, at least one information label corresponding to the target category label in the interface, and mark a geographic location associated with the information label on the map.
In one embodiment, the at least one category label includes at least one of the following: a category label selected or set by the target object, a category label determined based on a historical preference of the target object, and a category label determined based on an attribute feature of the target object. In one embodiment, the label display module 1420 is further configured to, for an information label corresponding to specific information, display a video playback window in the information label corresponding to the specific information, and play video content of the specific information in the video playback window.
In one embodiment, the information label corresponding to the specific information further displays at least one of the following information: occurrence time of the specific information, views of the specific information, and alarm prompt for the specific information.
In one embodiment, the label display module 1420 is further configured to send an information obtaining request to a server, the information obtaining request being used for obtaining information content; and receive the information content from the server, the information content including the information and the geographic location associated with the information.
In one embodiment, the label display module 1420 is further configured to display each information label in a different display style based on index information corresponding to each information label, where the index information includes at least one of the following: hot, views, occurrence time, and likes.
In one embodiment, the interface display module 1410 is further configured to display a map of an initial region in the interface in a case of initial display of the interface, where the initial region includes any one of the following: a current region of the target object, a set region of the target object, a historical focus region of the target object, and a preference focus region of the target object.
The label display module 1420 is further configured to display at least one information label related to the initial region in the interface, and mark a geographic location associated with the information label on the map.
In one embodiment, the interface display module 1410 is further configured to obtain a real-time region of the target object at a set time interval; and display a map of the real-time region in the interface.
The label display module 1420 is further configured to display at least one information label related to the real-time region in the interface, and mark a geographic location associated with the information label on the map.
In this embodiment, by combining information and maps, a map of a region and information labels in the region are displayed in the interface, and geographic locations associated with the information labels are marked on the map to achieve associated display of information and geographic locations. This embodiment provides a novel information display method, by which a user can learn a geographic location associated with information more clearly and intuitively, such as learning a location of occurrence of an event contained in the information.
terminal device 1600 includes: a processor 1601 and a memory 1602.
The processor 1601 may include one or more processing cores, for example, a 4-core processor or an 8-core processor. The processor 1601 may be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), or a programmable logic array (PLA). The processor 1601 may alternatively include a main processor and a coprocessor. The main processor is a processor configured to process data in an awake state, and is also referred to as a central processing unit (CPU). The coprocessor is a low power consumption processor configured to process data in a standby state. In some embodiments, the processor 1601 may be integrated with a graphics processing unit (GPU). The GPU is configured to render and draw content to be displayed on a display screen. In some embodiments, the processor 1601 may further include an artificial intelligence (AI) processor. The AI processor is configured to process computing operations related to machine learning.
Memory 1602 may include one or more computer-readable storage media. The computer-readable storage medium may be non-transient. Memory 1602 may further include a high-speed random access memory and a nonvolatile memory, for example, one or more disk storage devices or flash storage devices. The memory 1602 stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor 1601 to implement the foregoing information display method.
In some embodiments, the terminal device 1600 may alternatively include: a peripheral device interface 1603 and at least one peripheral device. The processor 1601, the memory 1602, and the peripheral device interface 1603 may be connected through a bus or a signal cable. Each peripheral device may be connected to peripheral device interface 1603 through a bus, a signal cable, or a circuit board. Specifically, the peripheral device may include at least one of a display screen 1604, an audio circuit 1605, a communication interface 1606, and a power supply 1607.
A person skilled in the art may understand that the structure shown in
In one embodiment, a computer-readable storage medium is further provided, the storage medium storing at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor of the terminal device to implement the foregoing information display method.
In some embodiments of this application, the computer-readable storage medium may include: a read-only memory (ROM), a random-access memory (RAM), a solid-state drive (SSD), an optical disc, or the like. The RAM may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM).
In one embodiment, a computer program product or computer program is further provided, the computer program product or computer program including computer instructions, and the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, and the computer device is enabled to perform the foregoing information display method.
It is to be understood that the term “plurality” mentioned in the specification means two or more. The term “and/or” describes an association relationship between associated objects and represents three relationships. For example, A and/or B may represent the following three cases: only A exists, both A and B exist, and only B exists. The character “/” generally indicates an “or” relationship between successive associated objects. In addition, the step numbers described in this specification merely illustrate a possible execution sequence of the steps. In some other embodiments, the steps may not be performed according to the number sequence. For example, two steps with different numbers may be performed simultaneously, or two steps with different numbers may be performed according to a sequence contrary to the sequence shown in the figure. This is not limited to the embodiments of this application.
Technical features of the foregoing embodiments may be randomly combined. To make description concise, not all possible combinations of the technical features in the foregoing embodiments are described. However, the combinations of these technical features shall be considered as falling within the scope recorded by this specification provided that no conflict exists.
The foregoing descriptions are merely exemplary embodiments of this application, but are not intended to limit this application. Any modification, equivalent replacement, or improvement made within the spirit and principle of this application shall fall within the protection scope of this application.
Number | Date | Country | Kind |
---|---|---|---|
202210096106.0 | Jan 2022 | CN | national |
This application is a continuation of PCT Application No. PCT/CN2022/136876, filed on Dec. 6, 2022, which claims priority to Chinese Patent Application No. 202210096106.0, entitled “INFORMATION DISPLAY METHOD AND APPARATUS, DEVICE, STORAGE MEDIUM, AND PROGRAM PRODUCT” filed with the China National Intellectual Property Administration on Jan. 26, 2022. The two applications are incorporated by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/136876 | Dec 2022 | US |
Child | 18457976 | US |