Traffic information display method, device and system, electronic equipment and storage medium
By using animations to display traffic conditions on the map page, the problem of limitations in traditional colors is solved, and the user experience is improved, which is particularly suitable for the acquisition of traffic information for the elderly and children.
Patent Information
- Application Number
- CN202411111227.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-26
AI Technical Summary
Traditional map applications are limited in traffic information display, poor user experience, and it is difficult to distinguish complex traffic conditions through colors, especially for elderly people and children with limited text recognition.
The traffic conditions of the target road section are displayed through animation on the map page, and the vehicle model animation is used to reflect the congestion, water accumulation, construction and other conditions, so as to improve the richness and vividness of information.
The animation display method makes traffic information more vivid and rich, and improves the user experience, especially suitable for users with limited knowledge of text to easily understand traffic conditions.
Smart Images

Figure CN119022912A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of dynamic traffic technology, and in particular to a method, device, system, electronic device and storage medium for displaying traffic information. Background Art
[0002] As an important part of modern navigation technology, traffic information provides users with real-time key data such as road conditions, traffic flow, congestion, construction conditions, etc., which can help users make more informed travel decisions. However, in traditional map application services, the display of traffic information on the map page usually uses different colors to distinguish the traffic conditions of the road, such as red for congestion, green for smooth traffic, and yellow for between congestion and smooth traffic. This way of displaying traffic information is very limited, and the user experience needs to be improved urgently. Summary of the invention
[0003] In view of this, the present application provides a method, device, system, electronic device and storage medium for displaying traffic information, so as to improve the richness of traffic information display and enhance user experience.
[0004] This application provides the following solutions:
[0005] According to a first aspect, a method for displaying traffic information is provided, the method comprising:
[0006] Display map data on the map page;
[0007] In response to an operation event corresponding to a traffic condition viewing intention, determining a target road section among the road sections displayed on the map page;
[0008] An animation is displayed for the target road section on the map page, wherein the animation reflects the current traffic condition of the target road section.
[0009] According to a second aspect, a method for displaying traffic information is provided, which is applied to a system including a user terminal and a server, and the method includes:
[0010] The user terminal displays the map data on the map page;
[0011] The user terminal determines a target road segment among the road segments displayed on the map page in response to an operation event corresponding to a road condition viewing intention;
[0012] The user terminal requests and obtains the current traffic condition of the target road section from the server terminal; or obtains the current traffic condition of the target road section from the map data, and the map data is sent from the server to the user terminal;
[0013] The user terminal displays an animation for the target road section on the map page, where the animation reflects the current traffic condition of the target road section.
[0014] According to a third aspect, a traffic information display device is provided, the device comprising:
[0015] A page display unit, configured to display map data on a map page;
[0016] a target determination unit, configured to determine a target road segment among the road segments displayed on the map page in response to an operation event corresponding to a road condition viewing intention;
[0017] The page display unit is further configured to display an animation for the target road section on the map page, wherein the animation reflects the current traffic condition of the target road section.
[0018] According to a fourth aspect, a traffic information display system is provided, the system comprising a user terminal and a server;
[0019] The user terminal is configured to display map data on a map page; determine a target road section among the road sections displayed on the map page in response to an operation event corresponding to a traffic condition viewing intention; and display an animation for the target road section on the map page, wherein the animation reflects the current traffic condition of the target road section;
[0020] The server is configured to send traffic condition information of at least the target road section among the road sections displayed on the map page to the user terminal.
[0021] According to a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0022] According to a sixth aspect, there is provided an electronic device, comprising:
[0023] one or more processors; and
[0024] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of the first aspects above.
[0025] According to a seventh aspect, a computer program product is provided, comprising a computer program, wherein a processor executes the steps of any one of the methods described in the first aspect.
[0026] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0027] This application can determine the target road section in the road sections displayed on the map page when the user performs the operation of checking the traffic conditions, and use animation on the map page to reflect the traffic conditions of the target road section. Compared with simply using colors to distinguish different traffic conditions, animation can more richly and vividly reflect traffic information, thereby improving the user experience.
[0028] In addition, the traffic conditions of the target road section are presented through animation, so that even the elderly and children with limited text recognition can easily understand the traffic conditions of the target road section. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0030] Figure 1 is a system architecture diagram applicable to the embodiments of the present application;
[0031] Figure 2 A flow chart of a method for displaying traffic information provided in an embodiment of the present application;
[0032] Figure 3a A schematic diagram of an initially displayed map page provided in an embodiment of the present application;
[0033] Figure 3b A schematic diagram of a map page after the scale is enlarged provided in an embodiment of the present application;
[0034] Figure 4a A schematic diagram showing the degree of congestion through animation provided in an embodiment of the present application;
[0035] Figure 4b A schematic diagram showing waterlogging on a road section through animation provided in an embodiment of the present application;
[0036] Figure 4c A schematic diagram of road construction embodied by animation provided in an embodiment of the present application;
[0037] Figure 4d A schematic diagram of a traffic accident embodied by animation provided in an embodiment of the present application;
[0038] Figure 4e A schematic diagram of triggering an interactive component provided in an embodiment of the present application to display information describing traffic conditions;
[0039] Figure 5One of the interactive flow charts provided in the embodiment of the present application;
[0040] Figure 6 Another interactive flow chart provided for an embodiment of the present application;
[0041] Figure 7 A schematic block diagram of a display device for traffic information provided in an embodiment of the present application;
[0042] Figure 8 A schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0044] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0045] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0046] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0047] In order to facilitate the understanding of the present application, the system architecture on which the present application is based is first described. Figure 1 An exemplary system architecture to which the embodiments of the present application can be applied is shown. Figure 1 As shown in , the system architecture may include: a user terminal and a server running on a user terminal.
[0048] The server provides map services to users, such as providing map data to the user terminal in response to service requests from the user terminal, providing navigation services, traffic information (including traffic conditions of road sections), etc. to the user terminal.
[0049] The user end can request map-related services from the server end based on the user's operation events, receive map data, navigation data, traffic information, etc. returned by the server end, and display them to the user through a map page. As one of the achievable methods, the user end can display traffic information on a map page using the method provided in the embodiment of the present application, which will be described in detail in subsequent embodiments.
[0050] The user end may be a client running on a user terminal, a small program, or a Web application running through a browser.
[0051] User terminals may include, but are not limited to, smart mobile terminals, wearable devices, PCs (Personal Computers), etc. Smart mobile devices may include mobile phones, tablet computers, PDAs (Personal Digital Assistants), Internet car terminals, etc. Wearable devices may include smart watches, smart glasses, smart bracelets, VR (Virtual Reality) devices, AR (Augmented Reality), mixed reality devices (i.e., devices that can support both virtual reality and augmented reality), etc.
[0052] The server can be an independent server, a server group, or a cloud server. A cloud server, also known as a cloud computing server or cloud host, is a host product in the cloud computing service system to solve the defects of difficult management and weak service scalability in traditional physical hosts and virtual private servers (VPS) services.
[0053] It should be understood that Figure 1 The number of servers, clients and user terminals in the embodiment is only for illustration. Any number of servers, clients and user terminals may be provided according to implementation requirements.
[0054] Figure 2 A flow chart of a method for displaying traffic information provided in an embodiment of the present application. The method flow can be Figure 1 The user side of the system shown is executed. Figure 2 As shown in , the method may include the following steps:
[0055] Step 201: Display map data on a map page.
[0056] Step 203: In response to an operation event corresponding to the intention to check the traffic conditions, determine a target road segment among the road segments displayed on the map page.
[0057] Step 205: Display an animation for the target road section on the map page, where the animation reflects the current traffic condition of the target road section.
[0058] From the above process, it can be seen that when the user performs the operation of checking the traffic conditions, the application can determine the target road section in the road sections displayed on the map page, and use animation to reflect the traffic conditions of the target road section on the map page. Compared with simply using colors to distinguish different traffic conditions, animation can more richly and vividly reflect traffic information, thereby improving the user experience.
[0059] The following is a detailed description of each step in the above process and the effects that can be further produced in conjunction with the embodiments. It should be noted that the "first" and "second" limitations involved in the present disclosure do not have limitations in terms of size, order, and quantity, and are only used to distinguish them in name, for example, "first preset duration" and "second preset duration" are used to distinguish two preset durations.
[0060] First, the above step 201, namely "displaying map data on a map page", is described in detail in conjunction with the embodiment.
[0061] The "map page" involved in the embodiments of the present application refers to the page displayed when the user end (such as a map client, a small program, a Web application running on a browser, etc.) on the user terminal requests a map service, which may also be called a "map interface". The specific content displayed on the map page may present different content at different stages. It can be a web page (Web Page) written based on HyperText Markup Language (HTML), that is, an HTML page, or it can also be a web page written based on HTML and Java language, that is, a Java Server Page (Java Server Page, JSP), or it can also be a web page written in other languages, which is not particularly limited in this embodiment.
[0062] In this application, the map page can display map data in various scenarios:
[0063] For example, the map data displayed to the user by default after the user opens the client of the map application on the user terminal or requests the map application through the browser. The map data displayed to the user by default may be the map data stored locally on the user terminal, or may be the map data obtained from the server in real time. In addition, the map data displayed to the user by default may be a regional map displayed based on the region where the user is located, or may be map data of a specific scale centered on the user's location displayed based on the specific location where the user is located, and so on.
[0064] For another example, after a user searches for a location on a map page displayed by a client or a browser, the server returns map data of a specific scale centered on the searched location to the client or the browser.
[0065] For another example, it may be map data displayed to the user in a specific mode, such as map data including a planned route displayed in a driving mode.
[0066] For another example, the map data of a corresponding area (such as a screen area) may be determined by the user by dragging, clicking a control, or the like.
[0067] The scenarios for displaying map data on a map page are not listed here one by one. The map data displayed on a map page can be in the form of a two-dimensional image or a three-dimensional image, or in the form of VR or AR.
[0068] In addition, it should be noted that in this step, the map data may include graphic data composed of geographic entities, POI (Point Of Interest) data, etc., wherein the geographic entities may include buildings, roads, rivers, mountains, forests, transportation facilities, etc. In addition, the map data displayed on the map page may also include the current traffic conditions of the road section displayed on the map page, and the traffic conditions are sent by the server.
[0069] A road segment is a part of a road, which can be continuous or discontinuous. In traffic planning and map applications, road segments are usually used as a basic unit for road management and planning.
[0070] Furthermore, in this step, when displaying map data on a map page, different colors can be used to indicate whether each road section included in the map page is congested in the manner of the prior art, for example, green, red, and yellow can be used to indicate unobstructed, congested, and somewhere between congested and unobstructed, respectively.
[0071] The above step 203, namely "determining a target road section among the road sections displayed on the map page in response to an operation event corresponding to the intention to check the road conditions", is described in detail below in conjunction with an embodiment.
[0072] After or during the display of map data on the map page, if the user performs an operation event corresponding to the intention to view traffic conditions, it means that the user has the intention to view the traffic conditions of a specific road section. In the embodiment of the present application, the specific road section is referred to as the target road section.
[0073] As one of the achievable ways, if the user adjusts the scale of the map page to be greater than or equal to a preset scale threshold during the use of a map application, that is, the scale of the map page is enlarged so that the scale is greater than or equal to the preset scale threshold, then it can be considered that the user has the intention to view the traffic conditions. The user can adjust the scale of the map data by, for example, using a two-finger zoom gesture, adjusting a scale component on the map page, or inputting a specific scale on the map page.
[0074] For example, suppose a user is using a map application and the initial map page is as follows: Figure 3a As shown in , the scale of the map data is enlarged by the two-finger zoom gesture, and the following is obtained: Figure 3b For the map page corresponding to the scale shown, if the enlarged scale is greater than or equal to a preset scale threshold, it is considered that the user has the intention to check the road conditions.
[0075] As another feasible method, a traffic condition viewing component may be set on the map page. If the user triggers the traffic condition viewing component on the map page through operations such as clicking or double-clicking while using a map application, it is considered that the user has the intention to check the traffic conditions.
[0076] The above two methods can more directly determine whether the user's operation event corresponds to the intention to check the traffic conditions, so as to respond quickly and improve the user experience. In addition to the above two methods, other methods can also be used to determine whether an operation event corresponding to the intention to check the traffic conditions has occurred. For example, the user selects one of the sections on the map page by clicking, double-clicking, long pressing, etc., indicating that the user has the intention to check the traffic conditions for this section. For another example, detecting a voice command for traffic condition query issued by the user indicates that the user has the intention to check the traffic conditions.
[0077] After an operation event corresponding to the intention to check the traffic conditions occurs, in response to the operation event, it is necessary to determine the road section where the user wants to check the traffic conditions, i.e., the target road section. As one of the feasible methods, the traffic conditions of the road section displayed on the map page can be first determined. The traffic conditions can be requested and obtained by the user end in real time from the server end, or can be obtained from the map data sent by the server end in step 201. Then, from the road sections whose traffic conditions meet the preset traffic condition type, at least one road section is selected as the target road section, so as to help the user quickly locate the road section of the preset traffic condition type and obtain its traffic condition through the animation displayed in the subsequent steps. It can be understood that all the road sections that meet the preset traffic condition type in the road sections displayed on the map page can also be determined as target roads.
[0078] As another achievable method, at least one road section may be first selected from the road sections displayed on the map page as a candidate target road section; and then, from the candidate target road sections, a road section whose traffic condition meets a preset traffic condition type may be determined as a target road section.
[0079] Among them, the preset traffic condition types may include but are not limited to: congestion, water accumulation, snow accumulation, road construction or accidents, etc. These traffic condition types are usually traffic conditions that have a greater impact on travel. Users are more willing to check the traffic conditions on sections with such traffic conditions, thereby helping users make more informed travel decisions.
[0080] When selecting at least one road section as a target road section from the road sections whose traffic conditions meet the preset traffic condition type, or when selecting at least one road section as a candidate target road section from the road sections displayed on the map page, at least one road section can be selected as a target road section or a candidate target road section based on at least one of the distance between the road section and the observation target point, the distance from the geographical location of the user terminal, the distance from the center of the map page, and the user's selection of the road section. This method can "guess" the target road section that the user wants to view as accurately as possible, thereby improving the user experience.
[0081] For example, the road section closest to the observation target point can be determined as the target road section or candidate target road section from the road sections whose traffic conditions meet the preset traffic condition type. Since the map page is actually rendered based on the pre-established map model, the rendering process is essentially a simulation of the camera's imaging process, and the user's viewpoint is simulated as the camera position, and is projected to the plane where the map page is located according to a certain viewing angle to obtain the map page. The observation target point is the intersection of the map page from the user's viewpoint along the current viewing angle of the map page. Then the road section closest to the observation target point is actually the road section that is easiest to see in the user's field of view. For example, if the preset traffic condition type is congestion, the congested road section that is easiest to see in the user's field of view is actually selected.
[0082] For another example, the road section closest to the user terminal's geographical location can be determined as the target road section or candidate target road section from the road sections whose traffic conditions meet the preset traffic condition type. In this case, it is essentially considered that the user may want to check the traffic conditions of the road section closest to him.
[0083] For another example, the road segment closest to the center of the map page can be determined as the target road segment or candidate target road segment from the road segments whose traffic conditions meet the preset traffic condition types. Usually, when using map applications, users usually drag the area of their interest to the vicinity of the center of the map page, so it can be assumed that the user may want to view the traffic conditions of the road segment closest to the center of the map page.
[0084] For another example, a road section selected by the user from the road sections whose traffic conditions meet the preset traffic condition type can be used as a target road section or a candidate target road section. For example, among the road sections displayed on the map page, the user selects a road section from the congested road sections by clicking, double-clicking, or long pressing, and then the road section can be determined as a target road section or a candidate target road section.
[0085] In addition to the above examples, the target segment or candidate target segment may be selected by comprehensively considering the distance between the segment and the observation target point, the geographical location of the user terminal, the distance to the center of the map page, and the user's selection of the segment.
[0086] The above step 205, namely "displaying an animation for the target road section on the map page, wherein the animation reflects the current traffic conditions of the target road section", is described in detail below in conjunction with an embodiment.
[0087] In the embodiment of the present application, animation is used in a more vivid, rich and flexible way to reflect the current traffic conditions of the target road section, so that users can understand the current traffic conditions of the target road section clearly and interestingly. In addition, the traffic conditions of the target road section are reflected in the form of animation, so that even the elderly and children with limited knowledge of text can easily understand the traffic conditions of the target road section.
[0088] When displaying the animation, the animation may be displayed for the target road section in a specific area on the map page. However, in order to be more targeted and more vivid, as one of the preferred methods, the animation may be displayed in the area of the target road section on the map page, and the animation may include at least one traffic participant model on the target road section, and the animation vividly displays at least one traffic participant moving on the target road section. The movement state of the at least one traffic participant model corresponds to the traffic condition of the target road section.
[0089] Since under normal circumstances, users riding in or driving a vehicle have a greater need to check the road conditions, as one of the feasible ways, the above-mentioned traffic participant model can be a vehicle model, so that the animation effect of the vehicle model can be presented to the users riding in or driving the vehicle in a more vivid and figurative manner, helping the users to quickly understand the current vehicle driving conditions on the target road section.
[0090] However, in addition to users riding or driving vehicles, users in some specific modes may also have the need to check the road conditions, such as users in riding mode, so as another feasible way, the above-mentioned traffic participant model can also be a bicycle model. In addition, other types of traffic participant models can also be used.
[0091] Here, we take the vehicle model as an example to list several scenarios that reflect traffic conditions:
[0092] Example 1: Figure 4a As shown in , an animation containing multiple vehicle models can be displayed in the area of the target road section on the map page, and the current congestion level of the target road section can be reflected by the moving speed and / or the distance between vehicles of the vehicle models. For example, if the traffic condition of the target road section is light congestion, the animation can be: the vehicle models are all driving at a low speed, the following distance is close, but they do not stop. If the traffic condition of the target road section is moderate congestion, the animation can be: the vehicle models are all driving at a low speed, the following distance is close, and they stop and go. If the traffic condition of the target road section is severe congestion, the animation can be: the vehicle model does not move or drives at a lower speed, and the road is blocked. It can be understood that the driving speeds of vehicle models corresponding to different congestion levels can be different or the same, and the driving speeds of multiple vehicle models corresponding to the same congestion level can be different or the same. Obviously, the method provided by this example enables users to understand the current congestion level of the target road section vividly and quickly through the moving speed and / or the distance between vehicles of the vehicle models in the animation, so as to make better travel decisions.
[0093] Example 2: Figure 4b As shown in , the target road section area display on the map page may include at least one vehicle model. Taking a vehicle model as an example, the current water or snow accumulation on the target road section is reflected through the moving posture of the vehicle model and the road environment. For example, the current water accumulation on the target road section is reflected through the slow movement of the vehicle model and the splashing of water.
[0094] Example 3: Figure 4c As shown in , the area display of the target road section on the map page may include at least one vehicle model. Taking one vehicle model as an example, the road construction is reflected by the vehicle model bypassing the construction facilities or construction signs.
[0095] Example 4: Figure 4dAs shown in , the area of the target road section on the map page can display more than two vehicle models. Taking two vehicle models as an example, the collision of the vehicle models is used to reflect the accident on the target road section. Different types of accidents can also be reflected through different animations.
[0096] In order to avoid unnecessary troubles to users caused by long-term animation display, as one of the achievable methods, in response to the display duration of the animation reaching a first preset duration, such as 8 seconds, the display of the above animation is terminated. In addition, the display of the animation can also be terminated in response to the user's operation event of stopping the display of the animation, such as the user clicking on the component that stops the display of the animation.
[0097] It should be noted that the above animations can be pre-stored locally in the user terminal, that is, animations corresponding to various types of traffic conditions are pre-stored locally in the user terminal. After the user terminal determines the current traffic conditions of the target section, the animation corresponding to the traffic conditions stored locally is obtained and displayed on the map page. Alternatively, the above animations can also be sent from the server to the user terminal. The timing of sending is relatively flexible. The animations corresponding to various types of traffic conditions can be sent to the user terminal in response to an operation event corresponding to the intention to view the road conditions. After the user terminal determines the target section, the server can respond to the user terminal's request and send the animation corresponding to the current traffic conditions of the target section to the user terminal, and so on.
[0098] In addition to the above animation, more detailed information can be further displayed on the map page, that is, information describing the current traffic conditions of the target road section, which can include but is not limited to at least one of the duration of the traffic conditions, the passing time of the target road section, and trend information of the traffic conditions. The trend information can be information such as the upcoming relief, relief time, and increased congestion. By displaying this information, the traffic conditions that cannot be reflected in the animation can be supplemented, thereby helping users to understand the traffic conditions of the target road section more comprehensively and clearly.
[0099] Furthermore, in response to the display time of the explanation information reaching a second preset time, such as 5 seconds, the display of the explanation information is terminated. The first preset time and the second preset time may be the same or different. In addition, the display of the explanation information may also be terminated in response to an operation event of the user stopping the display of the explanation information. This method can avoid the long-term display of the explanation information causing trouble to the user, such as affecting the user's viewing of other map data.
[0100] As one possible implementation, the information about the current traffic conditions of the target road section can be displayed in text form while displaying an animation for the target road section on the map page. Figure 4aAs shown in , while the animation is being displayed, the text "Relieve in 10 minutes" is displayed to reflect the trend information of congestion, and the text disappears after being displayed for 5 seconds.
[0101] As another achievable method, an interactive component may be displayed on a map page for a target road segment and / or a non-target road segment. In response to an event in which the interactive component is triggered, explanatory information on the current traffic conditions of the target road segment and / or the non-target road segment may be displayed in text form on the map page for the target road segment and / or the non-target road segment.
[0102] like Figure 4e As shown in the middle left figure, after the animation is displayed, the interactive component can be displayed on the target road section. The interactive component is represented by a circular logo "congested", and can also be represented in other forms. This application does not limit this. When the user triggers the interactive component by clicking, double-clicking, etc., as shown in the right figure, the text "Relieved in 10 minutes" is displayed to reflect the trend information of congestion. The text disappears after 5 seconds. In addition, in addition to displaying the interactive component on the target road section, the interactive component can also be displayed on non-target roads with similarly congested traffic conditions. When the user triggers the interactive component, information describing the current traffic conditions is displayed for the non-target road section.
[0103] Apart from Figure 4a and Figure 4e In addition to the display forms of the explanatory information shown in , other forms may also be used, such as popping up a text box to display the explanatory information of the traffic conditions, popping up a small range mask to display the explanatory information of the traffic conditions, etc., which are not listed here one by one.
[0104] Furthermore, after the above animation is displayed, if the user performs a drag operation on the map page, and the drag operation is usually kept below the current scale, the user terminal can re-execute the above step 203 to determine the target road section in the road section displayed on the map page in response to the drag operation event on the map page, and display the animation for the re-determined target road section. In this way, the user can view the animation of different road sections by dragging to understand their traffic conditions.
[0105] Figure 5 One of the interactive flow charts provided in the embodiment of the present application is as follows: Figure 5 As shown in , the interaction process may include the following steps:
[0106] In step 501, the user terminal displays map data on a map page.
[0107] The map data may be map data stored locally in the user terminal, or may be map data acquired from a server in real time.
[0108] In step 502, the user terminal determines a target road segment among the road segments displayed on the map page in response to an operation event corresponding to the intention to view road conditions.
[0109] For the processing performed by the user end in this interactive process, reference can be made to the relevant records in the previous embodiments, and no further details will be given here.
[0110] In step 503, the user terminal requests and obtains the current traffic condition of the target road section from the server terminal.
[0111] After determining the target road section, the user terminal can request the current traffic conditions of the target road section from the server in real time.
[0112] In step 504, the user terminal displays an animation for the target road section on the map page, and the animation reflects the current traffic conditions of the target road section.
[0113] The above animations can be pre-stored locally in the user terminal, that is, the animations corresponding to various types of traffic conditions are pre-stored locally in the user terminal. After the user terminal determines the current traffic conditions of the target section, the animation corresponding to the traffic conditions stored locally is obtained and displayed on the map page. Alternatively, the above animations can also be sent to the user terminal by the server. For example, the animations corresponding to various types of traffic conditions can be sent to the user terminal in response to an operation event corresponding to the intention to view the traffic conditions. After the user terminal determines the target section, the server can respond to the user terminal's request and send the animation corresponding to the current traffic conditions of the target section to the user terminal, and so on.
[0114] Figure 6 Another interactive flow chart provided in the embodiment of the present application is as follows: Figure 6 As shown in , the interaction process may include the following steps:
[0115] In step 601, the user terminal requests and obtains map data from the server terminal, and the map data includes the traffic conditions of each road section.
[0116] In this interactive process, the server can include the traffic conditions of each road section in the map data when sending the map data to the user terminal. The map data can be a regional map based on the area where the user terminal is located, or map data of a specific scale based on the specific location of the user terminal (for example, centered on the user's location), etc.
[0117] In step 602, the user terminal displays map data on a map page.
[0118] For the processing performed by the user end in this interactive process, reference can be made to the relevant records in the previous embodiments, and no further details will be given here.
[0119] In step 603, the user terminal determines a target road segment among the road segments displayed on the map page in response to an operation event corresponding to the intention to view road conditions.
[0120] In step 604, the user terminal obtains the current traffic condition of the target road segment from the map data.
[0121] Since the map data acquired in step 601 already includes the traffic conditions of each road section, the user terminal can acquire the current traffic conditions of the target road section from the map data in this step.
[0122] In step 605, the user terminal displays an animation for the target road section on the map page, and the animation reflects the current traffic condition of the target road section.
[0123] Similarly, the above animations can be pre-stored locally in the user terminal, that is, the animations corresponding to various types of traffic conditions are pre-stored locally in the user terminal. After the user terminal determines the current traffic conditions of the target section, the animation corresponding to the traffic conditions stored locally is obtained and displayed on the map page. Alternatively, the above animations can also be sent to the user terminal by the server. For example, the animations corresponding to various types of traffic conditions can be sent to the user terminal in response to an operation event corresponding to the intention to view the traffic conditions. After the user terminal determines the target section, the server can respond to the user terminal's request and send the animation corresponding to the current traffic conditions of the target section to the user terminal, and so on.
[0124] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0125] According to an embodiment of another aspect, a device for displaying traffic information is provided. Figure 7 A schematic block diagram of a traffic information display device provided in an embodiment of the present application, wherein the device is arranged at Figure 1 The user side of the architecture shown. Figure 7 As shown, the device 700 may include: a page display unit 701 and a target determination unit 702. The main functions of each component unit are as follows:
[0126] The page display unit 701 is configured to display map data on a map page.
[0127] The target determination unit 702 is configured to determine a target road segment among the road segments displayed on the map page in response to an operation event corresponding to a road condition viewing intention.
[0128] The page display unit 701 is further configured to display an animation for the target road section on the map page, where the animation reflects the current traffic conditions of the target road section.
[0129] Among them, the above-mentioned operation events corresponding to the intention of viewing traffic conditions may include: an event of adjusting the scale of the map page to be greater than or equal to a preset scale threshold; or an event of triggering a traffic condition viewing component on the map page.
[0130] As one of the achievable methods, when determining the target road section among the road sections displayed on the map page, the target determination unit 702 may determine the traffic condition of the road section displayed on the map page; and determine the target road section from the road sections whose traffic conditions meet the preset traffic condition type.
[0131] As another achievable method, when determining the target section among the sections displayed on the map page, the target determination unit 702 can select at least one section from the sections displayed on the map page as a candidate target section; and from the candidate target sections, determine a section whose traffic conditions meet a preset traffic condition type as the target section.
[0132] As one of the feasible ways, when selecting at least one road section, the target determination unit 702 may select at least one road section based on at least one of the distance between the road section and the observation target point, the geographical location of the user terminal, the distance from the center of the map page, and the user's selection of the road section; wherein the observation target point is the intersection of the map page from the user's viewpoint along the current viewing angle of the map page.
[0133] For example, the target determination unit 702 may determine the road section closest to the observed target point, the road section closest to the geographical location of the user terminal, the road section closest to the center of the map page, or the road section selected by the user as the target road section.
[0134] The preset traffic condition types include at least one of congestion, water accumulation, snow accumulation, road construction or an accident.
[0135] As one of the possible implementation methods, if the preset traffic condition type is congestion, the animation reflects the congestion level of the target road section.
[0136] As one of the feasible methods, when the page display unit 701 displays an animation for a target road section on a map page, the animation can be displayed in an area of the target road section on the map page, wherein the animation includes at least one traffic participant model on the target road section, and the moving state of the at least one traffic participant model corresponds to the traffic condition of the target road section.
[0137] Among them, the traffic participant model includes the vehicle model.
[0138] As one achievable manner, there are multiple vehicle models, and the traffic condition is a congestion degree; the above-mentioned moving state includes the moving speed and / or the vehicle distance between the vehicle models.
[0139] Furthermore, the page display unit 701 may also be configured to: in response to the display duration of the animation reaching a first preset duration, end the display of the animation.
[0140] As one of the achievable methods, the page display unit 701 may also be configured to: display an animation for the target road section on the map page while displaying text for the target road section on the map page, the text including information describing the current traffic conditions of the target road section.
[0141] As another achievable method, the page display unit 701 can also be configured to: display an interactive component for the target road section and / or non-target road section on the map page; in response to an event in which the interactive component is triggered, display text for the target road section and / or non-target road section on the map page, the text including explanatory information on the current traffic conditions of the target road section and / or non-target road section.
[0142] The above-mentioned description information may include at least one of the duration of the traffic condition, the passing time of the target road section and the trend information of the traffic condition.
[0143] Furthermore, the page display unit 701 may also be configured to: in response to the display duration of the description information reaching a second preset duration, end the display of the description information.
[0144] Furthermore, the target determination unit 702 can also be configured to: respond to a drag operation event on the map page, re-execute the determination of the target section among the sections displayed on the map page; the page display unit 701 displays an animation on the map page for the re-determined target section, and the animation reflects the current traffic condition of the target section.
[0145] It should be noted that the user terminal has a unit for interacting with the server (the unit is not shown in the figure), which is used to obtain map data, traffic conditions of the target road section, animations corresponding to the traffic conditions of the target road section, etc. from the server, and provide them to the page display unit 701 or the target determination unit 702 in the above-mentioned traffic information display device.
[0146] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0147] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0148] In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods in the aforementioned method embodiments are implemented.
[0149] And an electronic device, comprising:
[0150] one or more processors; and
[0151] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of the aforementioned method embodiments.
[0152] The present application also provides a computer program product, including a computer program, which implements the steps of any one of the methods in the aforementioned method embodiments when executed by a processor.
[0153] in, Figure 8The architecture of the electronic device is shown exemplarily, and may specifically include a processor 810, a video display adapter 811, a disk drive 812, an input / output interface 813, a network interface 814, and a memory 820. The processor 810, the video display adapter 811, the disk drive 812, the input / output interface 813, the network interface 814, and the memory 820 may be communicatively connected via a communication bus 830.
[0154] Among them, the processor 810 can be implemented by a general-purpose CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., to execute relevant programs to implement the technical solution provided in this application.
[0155] The memory 820 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 820 can store an operating system 821 for controlling the operation of the electronic device 800, and a basic input and output system (BIOS) 822 for controlling the low-level operation of the electronic device 800. In addition, a web browser 823, a data storage management system 824, and a display device 825 for traffic information, etc. can also be stored. The above-mentioned display device 825 for traffic information can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 820 and is called and executed by the processor 810.
[0156] The input / output interface 813 is used to connect the input / output module to realize information input and output. The input / output module can be configured as a component in the device (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0157] The network interface 814 is used to connect to a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0158] The bus 830 comprises a pathway for transmitting information between the various components of the device (eg, the processor 810, the video display adapter 811, the disk drive 812, the input / output interface 813, the network interface 814, and the memory 820).
[0159] It should be noted that, although the above device only shows a processor 810, a video display adapter 811, a disk drive 812, an input / output interface 813, a network interface 814, a memory 820, a bus 830, etc., in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include components necessary for implementing the solution of the present application, and does not necessarily include all the components shown in the figure.
[0160] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a computer program product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0161] The technical solution provided by the present application is described in detail above. The principle and implementation method of the present application are described in detail using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A method for displaying traffic information, characterized in that: The method comprises: Display map data on the map page; In response to an operation event corresponding to a traffic condition viewing intention, determining a target road section among the road sections displayed on the map page; An animation is displayed for the target road section on the map page, wherein the animation reflects the current traffic condition of the target road section.
2. The method according to claim 1, characterized in that The operation events corresponding to the traffic condition checking intention include: An event in which the scale of the map page is adjusted to be greater than or equal to a preset scale threshold; or, An event that triggers the traffic viewing component on the map page.
3. The method according to claim 1, characterized in that Determining the target road section among the road sections displayed on the map page includes: Determining the traffic conditions of the road section displayed on the map page; At least one road section is selected from the road sections whose traffic conditions conform to the preset traffic condition type as the target road section.
4. The method according to claim 1, characterized in that Determining the target road section among the road sections displayed on the map page includes: Selecting at least one road segment from the road segments displayed on the map page as a candidate target road segment; From the candidate target road sections, a road section whose traffic condition meets a preset traffic condition type is determined as the target road section.
5. The method according to claim 3 or 4, characterized in that: The selecting at least one road segment comprises: Selecting at least one road segment according to at least one of a distance between the road segment and an observation target point, a distance from a geographical location of a user terminal, a distance from a center of the map page, and a user's selection of the road segment; The observation target point is an intersection point of the map page from the user's viewpoint along the current viewing angle of the map page.
6. The method according to claim 5, characterized in that Selecting at least one road segment according to at least one of a distance between the road segment and the observation target point, a distance from the geographical location of the user terminal, a distance from the center of the map page, and a user's selection of the road segment comprises: Select the road section closest to the observation target point, the road section closest to the geographical location of the user terminal, the road section closest to the center of the map page, or the road section selected by the user.
7. The method according to claim 3 or 4, characterized in that: The preset traffic condition type includes: at least one of congestion, water accumulation, snow accumulation, road construction or accident.
8. The method according to claim 7, characterized in that If the preset traffic condition type is congestion, the animation reflects the congestion level of the target road section.
9. The method according to any one of claims 1 to 4, characterized in that Displaying the animation for the target road section on the map page includes: An animation is displayed in the area of the target road section on the map page, wherein the animation includes at least one traffic participant model on the target road section, and the movement state of the at least one traffic participant model corresponds to the traffic condition of the target road section.
10. The method according to claim 9, characterized in that The traffic participant model includes a vehicle model.
11. The method according to claim 10, characterized in that The vehicle models are multiple, and the traffic condition is a congestion degree; The movement state includes the movement speed and / or the vehicle distance between the vehicle models.
12. The method according to any one of claims 1 to 4, characterized in that The method further comprises: In response to the display duration of the animation reaching a first preset duration, the display of the animation is ended.
13. The method according to any one of claims 1 to 4, characterized in that The method further comprises: While displaying the animation for the target road section on the map page, displaying text for the target road section on the map page, the text including explanatory information for the current traffic conditions of the target road section; or, An interactive component is displayed on the map page for the target road segment and / or non-target road segment. In response to an event in which the interactive component is triggered, text is displayed on the map page for the target road segment and / or non-target road segment, wherein the text includes explanatory information about the current traffic conditions of the target road segment and / or non-target road segment.
14. The method according to claim 13, characterized in that The description information includes at least one of the duration of the traffic condition, the time it takes to pass a road section, and trend information of the traffic condition.
15. The method according to claim 13, characterized in that The method further comprises: In response to the display time of the description information reaching a second preset time, the display of the description information is ended.
16. The method according to any one of claims 1 to 4, characterized in that After displaying the animation for the target road segment on the map page, the method further includes: In response to the drag operation event on the map page, the process returns to determining a target road segment among the road segments displayed on the map page.
17. A method for displaying traffic information, applied to a system including a user terminal and a server, characterized in that: The method comprises: The user terminal displays the map data on the map page; The user terminal determines a target road segment among the road segments displayed on the map page in response to an operation event corresponding to a road condition viewing intention; The user terminal requests and obtains the current traffic condition of the target road section from the server terminal; or obtains the current traffic condition of the target road section from the map data, and the map data is sent from the server to the user terminal; The user terminal displays an animation for the target road section on the map page, where the animation reflects the current traffic condition of the target road section.
18. A traffic information display device, characterized in that: The device comprises: A page display unit, configured to display map data on a map page; a target determination unit, configured to determine a target road section among the road sections displayed on the map page in response to an operation event corresponding to a road condition viewing intention; The page display unit is further configured to display an animation for the target road section on the map page, wherein the animation reflects the current traffic condition of the target road section.
19. A traffic information display system, characterized in that: The system includes a client and a server; The user terminal is configured to display map data on a map page; In response to an operation event corresponding to a traffic condition viewing intention, determining a target road section among the road sections displayed on the map page; Displaying an animation for the target road section on the map page, wherein the animation reflects the current traffic conditions of the target road section; The server is configured to send traffic condition information of at least the target road section among the road sections displayed on the map page to the user terminal.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.
21. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of claims 1 to 16.
22. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.
