CN110874951B - Road condition rendering method, device, equipment and medium - Google Patents

Road condition rendering method, device, equipment and medium Download PDF

Info

Publication number
CN110874951B
CN110874951B CN201811015611.8A CN201811015611A CN110874951B CN 110874951 B CN110874951 B CN 110874951B CN 201811015611 A CN201811015611 A CN 201811015611A CN 110874951 B CN110874951 B CN 110874951B
Authority
CN
China
Prior art keywords
base map
road condition
client
latest
rendering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811015611.8A
Other languages
Chinese (zh)
Other versions
CN110874951A (en
Inventor
侯凤明
秦雪健
唐婧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201811015611.8A priority Critical patent/CN110874951B/en
Publication of CN110874951A publication Critical patent/CN110874951A/en
Application granted granted Critical
Publication of CN110874951B publication Critical patent/CN110874951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/09Arrangements for giving variable traffic instructions
    • G08G1/0962Arrangements for giving variable traffic instructions having an indicator mounted inside the vehicle, e.g. giving voice messages
    • G08G1/0968Systems involving transmission of navigation instructions to the vehicle
    • G08G1/0969Systems involving transmission of navigation instructions to the vehicle having a display in the form of a map

Abstract

A road condition rendering method, device, equipment and medium. The method comprises the following steps: receiving a road condition request sent by a client; and sending the road condition information for describing the road condition to the client side so that the client side renders the road condition information based on the shape data of the base map. By adopting the embodiment of the invention, the matching degree of the road condition and the road can be improved.

Description

Road condition rendering method, device, equipment and medium
Technical Field
The present invention relates to the field of geographic information, and in particular, to a method, an apparatus, a device, and a computer storage medium for rendering road conditions.
Background
An electronic map, i.e., a digital map, is a map that is digitally stored and referred to using computer technology. At present, a user can look up road conditions through an electronic map, besides basic functions of searching a target place, navigating and the like.
In order to enable the road condition to be accurately rendered on the corresponding road in the electronic map, the real-time traffic server not only issues the traffic state of the road but also issues the shape data of the road when issuing the road condition data of the road, and the corresponding road can be matched in the electronic map through the shape data of the road. And then, rendering the traffic state of the road on the matched road in the electronic map for the user to browse.
Referring to fig. 1, fig. 1 is a schematic view of a road condition of a road a in an electronic map. Due to the fact that the data accuracy of the electronic map and the road shape of the road condition is different, the dark line, indicated by the arrow 1, for displaying the road condition of the road A is not matched with the light line, indicated by the arrow 2, of the boundary of the road A.
Disclosure of Invention
The embodiment of the invention provides a road condition rendering method, a road condition rendering device, equipment and a medium, which can improve the matching degree of road conditions and roads.
A method for rendering road conditions comprises the following steps:
receiving a road condition request sent by a client;
and sending the road condition information for describing the road condition to the client side so that the client side renders the road condition information based on the shape data of the base map.
The sending the traffic information for describing the road condition to the client, so that the client renders the traffic information based on the shape data of the base map, includes:
and sending the latest base map and the road condition information to the client side so that the client side renders the road condition information based on the shape data of the latest base map.
Before sending the latest base map and the traffic information to the client, the method further includes:
and determining that the current base map of the client needs to be updated according to the base map identifier of the current base map of the client, which is included in the road condition request.
The step of sending the latest base map to the client side comprises the step of sending all data of the latest base map to the client side, or sending different data between the latest base map and the current base map of the client side to the client side.
The base map comprises a mapping relation, and the mapping relation is used for describing the road condition displayed by the road in the current base map from which base map level;
the sending the latest base map and the traffic information to the client, so that the client renders the traffic information based on the shape data of the latest base map, includes:
and sending the latest base map and the road condition information to the client side so that the client side renders the road condition information based on the mapping relation in the latest base map and the shape data of the base map.
Before sending the latest base map and the traffic information to the client, the method further includes:
determining the mapping relation of the latest base map according to the latest base map;
the sending the latest base map and the traffic information to the client, so that the client renders the traffic information based on the shape data of the latest base map, includes:
and sending the latest base map, the mapping relation and the road condition information to the client so that the client renders the road condition information based on the mapping relation of the latest base map and the shape data of the latest base map.
The road condition request comprises: the client side caches the identification of the road condition information currently;
before sending the traffic information for describing the road condition to the client, so that the client renders the traffic information based on the shape data of the base map, the method further includes:
and determining that the current cached traffic information of the client needs to be updated according to the identifier of the current cached traffic information of the client.
The road condition request includes: the identification of the road condition information currently cached by the client;
the method further comprises the following steps:
determining that the current cached road condition information of the client does not need to be updated according to the identifier of the current cached road condition information of the client;
and informing the client that the current cached road condition information is unchanged so that the client renders the current cached road condition information based on the shape data of the base map.
A method for rendering road conditions comprises the following steps:
sending a road condition request; receiving road condition information used for describing road conditions;
and rendering the road condition information based on the shape data of the base map.
Further comprising receiving the latest base map;
rendering the road condition information based on the shape data of the base map comprises the following steps:
rendering the road condition information based on the shape data of the latest base map.
The road condition request includes a base map identifier of the current base map, so as to be used for judging whether the current base map needs to be updated.
The receiving of the latest base map comprises: receiving all data of the latest base map, or receiving different data between the latest base map and the current base map.
The base map comprises a mapping relation, and the mapping relation is used for describing the road condition displayed by the road in the current base map from which base map level;
the rendering the road condition information based on the shape data of the latest base map comprises:
and rendering the road condition information based on the mapping relation in the latest base map and the shape data of the base map.
Receiving the mapping relation of the latest base map;
rendering the road condition information based on the shape data of the latest base map, including:
and rendering the road condition information based on the mapping relation in the latest base map and the shape data of the base map.
The traffic request includes an identifier of the current cached traffic information, so as to be used for judging whether the current cached traffic information needs to be updated.
Rendering the road condition information based on the shape data of the base map comprises the following steps:
and when the road condition information used for describing the road condition is not received, rendering the current cached road condition information based on the shape data of the base map.
A road condition rendering device comprises:
the receiving module is used for receiving a road condition request sent by a client;
and the sending module is used for sending the road condition information for describing the road condition to the client so that the client renders the road condition information based on the shape data of the base map.
A road condition rendering device comprises:
the sending module is used for sending the road condition request;
the receiving module is used for receiving road condition information used for describing road conditions;
and the rendering module is used for rendering the road condition information based on the shape data of the base map.
An apparatus for rendering a road condition is provided,
a memory for storing a program;
and the processor is used for operating the program stored in the memory so as to execute the road condition rendering method.
A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method of road condition rendering as described above.
According to the technical scheme, the server receives the road condition request sent by the client; then, the traffic information for describing the road condition of the road is sent to the client, so that the client renders the traffic information based on the shape data of the base map. Because the rendering of the road condition is based on the shape data in the base map, and the base map and the road condition share the same shape data, the matching degree of the road condition and the road can be improved.
Drawings
The present invention may be better understood from the following description of specific embodiments of the invention taken in conjunction with the accompanying drawings, in which like or similar reference numerals identify like or similar features.
FIG. 1 is a schematic view of a road A on an electronic map;
FIG. 2 is a schematic diagram of a client obtaining an electronic map from a server;
FIG. 3 is a schematic flow chart illustrating a road condition rendering method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a road condition rendering method according to another embodiment of the present invention;
FIG. 5 is a flow chart of a road condition rendering method according to another embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a road condition rendering device according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a road condition rendering apparatus according to another embodiment of the present invention;
fig. 8 is a structural diagram of an exemplary hardware architecture of a computing device of the road condition rendering method and apparatus according to the embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
The electronic map is a comprehensive technology integrating multiple modern technologies such as a geographic information system, digital mapping, a multimedia technology, virtual reality and the like, and is a display taking a visual digital map as a background and multimedia such as texts, photos, graphs, sounds, animations, videos and the like as expression means.
The bottom map is placed at the bottommost part of the layers and forms a basic frame of the electronic map. After the base map is determined, the related elements, namely the data sets, can be orderly superposed on the base map in the form of map layers.
When a user views an electronic map by using a client, the user often needs to view road conditions at the same time, for example, when the user is ready to drive to a destination, the user wants to view the road conditions to select a proper route, avoid congested and very unsmooth roads, and select an unimpeded road to reach the destination.
Referring to fig. 2, fig. 2 is a schematic diagram of a client obtaining an electronic map from a server. And the user interacts with the server through the client so as to obtain the electronic map, wherein the electronic map comprises the road condition information. In the actual use process, it can be found that the lines displaying the road condition are often not matched with the lines displaying the road, and are not aligned. The applicant found that this is because the traffic data includes shape data of the traffic and traffic information describing the traffic of the road, and the shape data of the traffic and the shape data of the base map are two independent shape point data, which will be described in detail below.
The base map may include the width of the roadway. The road width is determined by the style of the client. In the embodiment of the present invention, the client may include, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like. The style of the client may include a scale of a map, a two-dimensional map, or a three-dimensional map and/or a display style of a map.
The width of the road condition is generally determined by the server according to the grade of the road. As one example, the primary road is ranked higher than the secondary road, and thus the width of the primary road is greater than the width of the secondary road.
It can be seen that the data accuracy of the base map and the road condition is different, which results in the mismatch between the base map and the road condition.
The technical solution in the embodiment of the present invention is described below by taking an example in which a client sends a road condition request to a server.
Referring to fig. 3, fig. 3 is a schematic flow chart of a road condition rendering method according to an embodiment of the present invention, which specifically includes:
s301, the client sends a road condition request.
And the client sends a road condition request to the server. The purpose of the client side sending the road condition request is to acquire the latest road condition information.
In an embodiment of the present invention, the traffic status request sent by the client to the server may further include an identifier of the traffic status information currently cached by the client. That is, the client has cached the traffic information. The purpose of the client side sending the road condition request to the server is to acquire the latest road condition information.
Considering that the correlation between the traffic information and the time is relatively large, the identifier of the traffic signal may include the time corresponding to the traffic information. As an example, the identification of the traffic information may be a timestamp of the generation of the traffic information.
In an embodiment of the present invention, the road condition request sent by the client to the server may further include a base map identifier of the current base map. The current base map is the base map stored by the client. The base map is updated as the actual road changes. As an example, the update period of the base map is 30 days, i.e., the map is updated every 30 days. To distinguish between different versions of the base map, the base map may be labeled with a base map label. Such as: the bottom panel designations are V1.0, V2.3, respectively.
The client sends a road condition request comprising a base map identifier of a current base map to the server, and the aim is as follows: the server may know whether the base map stored by the client is the most up-to-date base map.
S302, the server receives the road condition request.
After receiving the road condition request sent by the client, the server can acquire that the road condition information needs to be sent to the client. The traffic information is information for describing traffic conditions of a road.
In an embodiment of the present invention, the traffic status request sent by the client to the server includes an identifier of the traffic status information currently cached by the client. The server can obtain the identifier of the road condition information currently cached by the client from the road condition request. Therefore, the server judges whether the current cached road condition information of the client is the latest road condition information or not based on the identifier of the current cached road condition information of the client.
As an example, the identifier of the traffic information currently cached by the client is t2000.1.20.1740, that is, the traffic information currently cached by the client is the traffic information generated at 17: 40 in 1/20/2000. The identifier of the latest traffic information in the server is t2000.1.20.1750. As can be seen, if the identifier of the current cached traffic information of the client is different from the identifier of the latest traffic information, the server needs to send the latest traffic information to the client.
As another example, the identification of the road condition information currently cached by the client is t2000.1.20.1740. The identification of the latest traffic information in the server is t2000.1.20.1740. As can be seen, the identifier of the current cached traffic information at the client is the same as the identifier of the latest traffic information, and the server does not need to send the latest traffic information to the client.
In an embodiment of the present invention, the road condition request sent by the client to the server includes a base map identifier of the current base map. The server can obtain the base map identifier of the current base map from the road condition request. According to the acquired base map identification, the server can acquire the version of the base map stored by the client.
It should be noted that, after knowing the version of the base map stored by the client, the server can compare the version with the latest base map of the server. Specifically, the server compares the base map identification stored by the client with the latest base map identification of the server. If the base map identification stored by the client is different from the latest base map identification of the client, the client needs to update the base map; if the base map identifier stored by the client is the same as the identifier of the latest base map, the client does not need to update the base map.
And S303, the server sends the road condition information.
And the server sends the road condition information to the client based on the received road condition request so that the client can obtain the latest road condition information.
In an embodiment of the present invention, the traffic status request sent by the client to the server includes an identifier of the traffic status information currently cached by the client. The identifier of the current cached traffic information of the client is different from the identifier of the latest traffic information in the server, which indicates that the current cached traffic information of the client is not the latest traffic information, so the server needs to send the latest traffic information to the client.
In an embodiment of the present invention, the server may also directly send the latest traffic request to the client when receiving the traffic request sent by the client, in other words, in this embodiment, the server does not need to determine whether the traffic information is currently cached by the client and whether the cached traffic information is the latest traffic information, and accordingly, the traffic request sent by the client to the server may not include an identifier of the traffic information currently cached by the client.
In an embodiment of the present invention, the road condition request sent by the client to the server includes a base map identifier of the current base map. And if the base map identifier stored by the client is the same as the latest base map identifier of the client, the client does not need to update the base map. Then, the server needs to send traffic information to the client. If the base map identifier stored in the client is different from the latest base map identifier of the client, the client needs to update the base map, and the server needs to send the latest base map and road condition information to the client.
In the case that the client needs to update the base map, the latest base map is sent to the client in the following two ways.
The method I comprises the following steps of complete updating: the server sends all the data of the latest base map to the client. As one example, the data volume of the entire data of the latest base map is 10 megabits (M), and the server may send the entire 10M data of the latest base map to the client.
Mode two, incremental updating: and the server sends different data of the latest base map and the current base map of the client to the client. As an example, the data volume of all data of the latest base map is 10M, and the data volume of all data of the current base map of the client is 8M. The latest base map has 8M of the same data as the client's current base map. That is, the data amount of the different data between the latest base map and the current base map of the client is 2M. In order to reduce the data traffic consumed by the client, different data of the latest base map and the current base map of the client can be sent to the client. Therefore, the client can update by using the different data on the basis of the current base map, and the client obtains the latest base map.
In an embodiment of the present invention, the server may further directly send the latest base map to the client when receiving the road condition request sent by the client, in other words, in this embodiment, the server does not need to determine whether the base map is currently cached by the client and whether the cached base map is the latest base map, and accordingly, the road condition request sent by the client to the server may not include the identifier of the currently cached base map by the client. The road condition information can be displayed in a display screen of the client. Since the display screen of the client differs from client to client. The base map can be enlarged or reduced with instructions. The base map includes levels of the base map. As one example, the levels of the base map may be divided into levels 1 to 20, for a total of 20 levels. The level of each base map corresponds to a different scale. Such as: level 3, distance on the electronic map: 1.94 cm, actual distance: 2000 km, scale bar: 1 hundred million: 1. level 13, distance on electronic map: 2.01 cm, actual distance: 2 km, scale bar: 10 ten thousand: 1. the scale scales are gradually reduced as the level of the base map increases.
It is considered that in the case where the level of the base map is low, the reference value to the user is not great even if the road condition is displayed. As an example, in the case where the level of the base map is level 3, it is difficult to clearly display the road condition within several kilometers in the length of the centimeter level. And the road condition within thousands of kilometers hardly has any practical effect on users.
Generally, different road sections on a road can correspond to different road conditions. As the level of the base map increases, the road condition of the corresponding road section may be displayed. In other words, the lower the level of the base map, i.e., the larger the scale of the electronic map, the road condition of a specific road section does not need to be displayed; the higher the level of the base map is, the smaller the scale of the electronic map is, and the road condition of a specific road section needs to be displayed.
In an embodiment of the present invention, a mapping relationship may be preset, and the mapping relationship may include a correspondence between a level of the base map and a road condition. For example, the mapping relationship is used to describe the road condition from which the road in the current base map is displayed at the base map level.
In one embodiment of the invention, the base map includes a mapping relationship that changes as the base map changes. Specifically, the data of the base map includes information of a mapping relationship of the base map, and the mapping relationship of the base map is used for describing the road condition of the road in the base map from which base map level the road starts to be displayed; it should be noted that the base map and the mapping relationship included in the base map are related, for example, it is not assumed that there are two base maps with different identifiers, taking the identifier as an example, and the base maps with different identifiers are the base map of version V1 and the base map of version V2, respectively, then the mapping relationship of the base map of version V1 is used to describe the base map of version V1 but not the base map of other versions, and the mapping relationship of the base map of version V2 is used to describe the base map of version V2 but not the base map of other versions.
The server sends the base map to the client, and also sends the mapping relation contained in the base map. It is understood that, in the case of sending the latest base map to the client, the server also sends the latest mapping relationship to the client.
While the above is an example in which the base map itself includes the mapping relationships, in another embodiment of the present invention, the base map itself may not include the mapping relationships, and the base map and the mapping relationships may be two associated pieces of data, which are in one-to-one correspondence. That is, the server needs to send the mapping relationship to the client. The corresponding mapping relation is different for different base maps. Therefore, the server needs to determine the mapping relationship of the latest base map according to the latest base map, and then send the latest base map and the mapping relationship of the latest base map to the client together.
S304, the client receives the road condition information.
The client receives the traffic information sent by the server, so that the client can render the received traffic information based on the shape data of the base map.
In an embodiment of the present invention, the server directly sends the latest traffic information to the client in response to the traffic request after receiving the traffic request sent by the client to the server. After the client receives the latest traffic information, the client can render and receive the latest traffic information based on the shape data of the base map.
In an embodiment of the present invention, the traffic status request sent by the client to the server includes an identifier of the traffic status information currently cached by the client. And under the condition that the identification of the current cached road condition information of the client is different from the identification of the latest road condition information, the client receives the latest road condition information. Then, the client can receive the latest traffic information based on the shape data rendering of the base map.
In an embodiment of the present invention, the traffic status request sent by the client to the server includes an identifier of the traffic status information currently cached by the client. Under the condition that the identification of the current cached traffic information of the client is the same as the identification of the latest traffic information, the latest traffic information is cached by the client. Then, the client may render its cached traffic information based on the shape data of the base map, or the client may render the traffic information before and may not render it repeatedly.
In an embodiment of the present invention, the server, after receiving the traffic request sent by the client to the server, responds to the traffic request and directly sends the latest base map to the client. After the client receives the latest base map, the client can render the latest traffic information based on the shape data of the latest base map.
In an embodiment of the present invention, the road condition request sent by the client to the server includes a base map identifier of the current base map. Under the condition that the base map identification stored by the client is different from the latest base map identification of the client, the client needs to update the base map. And the client receives the latest base map and road condition information.
Then, the client can render the road condition information based on the latest shape data of the base map.
In addition, the latest base map received by the client includes two cases. One case is to receive all the data of the latest base map. Another case is that different data between the latest base map and the client's current base map is received.
In an embodiment of the present invention, the road condition request sent by the client to the server includes an identifier of a currently cached base map of the client. In the case that the identification of the currently cached base map of the client is the same as the identification of the latest base map, the client caches the latest base map. Then, the client can render the latest traffic information based on the cached shape data of the base map. In one embodiment of the invention, the base graph includes a mapping relationship. And the server sends the mapping relation while sending the base map to the client. And the client receives the latest base map and the road condition information, and renders the road condition information based on the mapping relation in the latest base map and the shape data of the base map.
In an embodiment of the invention, the client receives the mapping relationship of the latest base map, the latest base map and the traffic information sent by the server. The client can render the road condition information based on the latest mapping relation in the base map and the shape data of the base map.
In one embodiment of the present invention, the rendering of road conditions combines road condition information with road shape. The road condition rendering can be performed by utilizing the road edge tracing according to the shape of the road and combining the road condition information. As an example, the road shape includes a road boundary, and the shortest distance between two road boundaries is the road width. Road delineation is that road condition information is added within the range of road width based on road boundaries. Such as: the traffic information may include: unblocking; slowing down; and (4) congestion. Green represents unblocked; slow walking is represented by yellow; congestion is represented in red. The road condition information is as follows: and if the road is smooth, green can be added in the range of the road width.
The following is a detailed description with reference to specific examples.
S1, a client sends a road condition request to a server.
The display screen of the client displays a base map, and the identifier of the base map is D2000.1.
And S2, the server sends the road condition information to the client.
The traffic information may include the latest base map and traffic information.
And S3, rendering the road condition by the client.
The client can render the road condition by using the road edge tracing according to the road shape of the latest base map and combining the road condition information. Therefore, the road condition is attached to the edge of the base map, namely the road condition is attached to the road, and the matching degree of the road condition and the road is improved.
Based on the above process, the method for rendering road conditions provided by the embodiment of the present invention can be summarized as the steps shown in fig. 4. Referring to fig. 4, fig. 4 is a flow chart illustrating a road condition rendering method according to another embodiment of the present invention, and an execution subject of each step in fig. 4 may be a server. It may include:
s401, receiving a road condition request sent by a client.
The server receives a road condition request sent by the client, and the purpose of the road condition request sent by the client is to acquire road condition information.
In one embodiment of the present invention, the road condition request may include the base map identifier. The base map identification is the identification corresponding to the client storage base map. In this way, the server can learn the version of the base map stored by the client. Based on the version of the client base map, it can be determined whether the client base map is the most up-to-date base map. If the base map of the client is not the latest base map, the latest base map can be sent to the client.
S402, sending the road condition information for describing the road condition to the client, so that the client renders the road condition information based on the shape data of the base map.
The server may send the traffic information to the client, where the traffic information is information for describing road conditions. Therefore, the client can render the road condition information obtained from the server according to the shape data of the base map.
In the embodiment of the invention, the server sends the road condition information for describing the road condition to the client based on the received road condition request of the client. Therefore, the client can render the road condition based on the shape data in the base map, and the base map and the road condition share the same shape data, namely the road shape, so that the matching degree of the road condition and the road can be improved.
In an embodiment of the present invention, the server may send the latest base map to the client while sending the traffic information to the client. That is, the server may send the latest base map and traffic information to the client. After receiving the latest base map and the road condition information sent by the server, the client can render the road condition information based on the shape data of the latest base map.
In the technical scheme, the road condition information is rendered on the latest base map, and the latest base map comprises the latest shape data, so that the accuracy of the road condition information is improved.
In an embodiment of the present invention, the road condition request sent by the client further includes a base map identifier of a current base map in the client. The base map identifier is a mark for determining the base map, and the version of the base map can be known from the base map identifier. And the server determines that the base map corresponding to the base map identifier of the current base map of the client is not the latest base map according to the base map identifier of the current base map of the client in the road condition request, and determines that the current base map of the client needs to be updated.
In the technical scheme, the latest base map is determined to be sent to the client based on the base map identification of the current base map of the client, so that the accuracy of displaying the road condition information by the client is improved.
In one embodiment of the present invention, there are two ways for the server to send the latest base map to the client, one way is: the latest base map sent by the server to the client includes all the data of the latest base map. The other mode is as follows: the latest base map sent by the server to the client comprises different data between the latest base map and the current base map of the client.
In an embodiment of the present invention, the latest base map includes a mapping relationship, and the mapping relationship includes a correspondence between a level of the base map and traffic information.
Therefore, the client can determine the shape data needing to be rendered based on the mapping relation and the latest shape data of the base map, and then render the road condition information by using the shape data needing to be rendered.
In the technical scheme, the rendering is performed based on the mapping relation, so that the rendering of the road condition information is more targeted.
In one embodiment of the invention, the server may determine the mapping relationship of the latest base map according to the latest base map. Then, the server can send the latest base map, mapping relationship and traffic information to the client, so that the client determines the shape data to be rendered based on the mapping relationship and the latest shape data of the base map, and further renders the traffic information by using the shape data to be rendered.
In the technical scheme, the server needs to determine the mapping relation based on the latest base map and then render based on the mapping relation, so that rendering the road condition information is more targeted.
In an embodiment of the present invention, the traffic status request sent by the client further includes an identifier of the traffic status information currently cached by the client. And after receiving the identifier of the current cached road condition information of the client, the server judges whether the current cached road condition information of the client needs to be updated.
Specifically, if the identifier of the traffic information currently cached by the client is the same as the identifier of the traffic information of the server, it means that the traffic information currently cached by the client does not need to be updated. Then, the server may notify the client that the currently cached traffic information is not changed, so that the client may render the currently cached traffic information based on the shape data of the base map.
If the identifier of the road condition information currently cached by the client is different from the identifier of the road condition information of the server, it indicates that the road condition information currently cached by the client needs to be updated. Then, the server may send the traffic information describing the road conditions to the client, so that the client may render the latest traffic information based on the shape data of the base map.
According to the technical scheme, the road condition information is selectively sent to the client, so that the flow consumed by the client is reduced, and resource waste is avoided.
Referring to fig. 5, fig. 5 is a flow chart illustrating a road condition rendering method according to another embodiment of the present invention, and an execution subject of each step in fig. 5 may be a client. As one example, the client may be a cell phone. It may include:
and S501, sending a road condition request.
The client sends a road condition request to the server, and the user acquires road condition information.
And S502, receiving road condition information used for describing road conditions.
The client receives the road condition information sent by the server, wherein the road condition information is information for describing road conditions.
And S503, rendering the road condition information based on the shape data of the base map.
After receiving the road condition information, the client can render the road condition information according to the shape of the base map stored by the client.
Therefore, the base map and the road condition share the same shape data, namely the road shape, so that the matching degree of the road condition and the road can be improved.
In an embodiment of the present invention, after receiving the latest base map, the client can render the traffic information based on the shape data of the latest base map.
In one embodiment of the present invention, the road condition request includes a base map identifier of the current base map. That is to say, the client sends the base map identifier of the current base map stored in the client to the server, so that the server determines whether to send the latest base map to the client according to the received base map identifier, that is, whether the current base map needs to be updated.
In one embodiment of the invention, receiving the latest base map comprises: receiving all data of the latest base map or receiving different data between the latest base map and the current base map of the client.
In one embodiment of the present invention, the base map includes a mapping relationship, and the mapping relationship is used to describe the road condition starting from which base map level the road in the current base map is displayed. The client can render the road condition information based on the latest mapping relation in the base map and the shape data of the base map.
In an embodiment of the present invention, the client receives the mapping relationship of the latest base map, and then renders the traffic information based on the mapping relationship in the latest base map and the shape data of the base map.
In an embodiment of the present invention, the traffic request includes an identifier of the currently cached traffic information, so as to be used for determining whether the currently cached traffic information needs to be updated.
In an embodiment of the present invention, under the condition that the currently cached traffic information of the client is the same as the traffic information of the server, that is, when the traffic information describing the traffic condition of the road is not received, the client does not need to obtain the traffic information from the server, and the currently cached traffic information can be rendered based on the shape data of the base map.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a road condition rendering device according to an embodiment of the present invention, where the road condition rendering device corresponds to a road condition rendering method, and the road condition rendering device specifically includes:
the receiving module 601 is configured to receive a road condition request sent by a client.
A sending module 602, configured to send traffic information for describing road conditions to the client, so that the client renders the traffic information based on the shape data of the base map.
In an embodiment of the present invention, the sending module 602 is specifically configured to send the latest base map and the traffic information to the client, so that the client renders the traffic information based on the shape data of the latest base map.
In an embodiment of the present invention, the system further includes a determining module (not shown in fig. 6) for determining that the current base map of the client needs to be updated according to the base map identifier of the current base map of the client included in the road condition request.
In one embodiment of the invention, all data of the latest base map is sent to the client, or different data of the latest base map and the current base map of the client are sent to the client.
In an embodiment of the present invention, the latest base map includes a mapping relationship, and the mapping relationship is used to describe the road condition from which base map level the road in the current base map is displayed.
The sending module 602 is specifically configured to send the latest base map and the traffic information to the client, so that the client renders the traffic information based on the mapping relationship and the shape data of the latest base map.
In an embodiment of the present invention, a mapping module (not shown in fig. 6) is configured to determine a mapping relationship of the latest base map according to the latest base map;
the sending module 602 is specifically configured to send the latest base map, mapping relationship, and road condition information to the client, so that the client renders the road condition information based on the mapping relationship and the latest shape data of the base map.
In one embodiment of the present invention, the road condition request comprises: the identification of the road condition information cached at the client currently;
and an updating module (not shown in fig. 6) configured to determine that the traffic information currently cached by the client needs to be updated according to the identifier of the traffic information currently cached by the client.
In one embodiment of the present invention, the road condition request includes: and the identification of the road condition information cached at the client currently.
The receiving module 601 is further configured to determine that the current cached traffic information of the client does not need to be updated according to the identifier of the current cached traffic information of the client.
The sending module 602 is further configured to notify the client that the currently cached traffic information is not changed, so that the client renders the currently cached traffic information based on the shape data of the base map.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a road condition rendering device according to another embodiment of the present invention, where the road condition rendering device corresponds to a road condition rendering method, and as an example, the road condition rendering device may be a mobile phone. The road condition rendering device specifically comprises:
a sending module 701, configured to send a road condition request.
A receiving module 702, configured to receive road condition information for describing road conditions.
And a rendering module 703, configured to render the road condition information based on the shape data of the base map.
In an embodiment of the invention, the receiving module 702 is configured to receive the latest base map. And a rendering module 703, configured to render the road condition information based on the latest shape data of the base map.
In an embodiment of the present invention, the road condition request includes a base map identifier of the current base map, so as to be used for determining whether the current base map needs to be updated.
In an embodiment of the present invention, the receiving module 702 is configured to receive all data of the latest base map or different data between the latest base map and the current base map.
In one embodiment of the present invention, the base map includes a mapping relationship, and the mapping relationship is used to describe the road condition starting from which base map level the road in the current base map is displayed.
The rendering module 703 is configured to render the road condition information based on the latest mapping relationship in the base map and the shape data of the base map.
In an embodiment of the present invention, the receiving module 702 is configured to receive a mapping relationship of the latest base map.
And a rendering module 703, configured to render the road condition information based on the latest mapping relationship in the base map and the shape data of the base map.
In an embodiment of the present invention, the traffic request includes an identifier of the currently cached traffic information, so as to be used for determining whether the currently cached traffic information needs to be updated.
In an embodiment of the present invention, the rendering module 703 is configured to render the currently cached traffic information based on the shape data of the base map when the traffic information describing the traffic status of the road is not received.
Fig. 8 is a block diagram illustrating an exemplary hardware architecture of a computing device capable of implementing the road condition rendering method and apparatus according to the embodiment of the present invention.
As shown in fig. 8, computing device 800 includes an input device 801, an input interface 802, a central processor 803, a memory 804, an output interface 805, and an output device 806. The input interface 802, the central processing unit 803, the memory 804, and the output interface 805 are connected to each other via a bus 810, and the input device 801 and the output device 806 are connected to the bus 810 via the input interface 802 and the output interface 805, respectively, and further connected to other components of the computing device 800.
Specifically, the input device 801 receives input information from the outside, and transmits the input information to the central processor 803 through the input interface 802; the central processor 803 processes the input information based on computer-executable instructions stored in the memory 804 to generate output information, temporarily or permanently stores the output information in the memory 808, and then transmits the output information to the output device 806 via the output interface 805; output device 806 outputs output information external to computing device 800 for use by a user.
That is, the computing device shown in fig. 8 may also be implemented to include: a memory storing computer-executable instructions; and a processor, which when executing the computer executable instructions, may implement the method and apparatus for rendering road conditions described in conjunction with fig. 1 to 7.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (16)

1. A road condition rendering method is characterized by comprising the following steps:
receiving a road condition request sent by a client, wherein the road condition request comprises a base map identifier of a current base map of the client;
sending the road condition information for describing the road condition to the client side so that the client side renders the road condition information based on the shape data of the base map;
the sending the traffic information for describing the road condition to the client, so that the client renders the traffic information based on the shape data of the base map, includes:
determining that the current base map of the client needs to be updated according to the base map identifier of the current base map of the client, which is included in the road condition request;
and sending the latest base map and the road condition information to the client so that the client renders the road condition information based on the shape data of the latest base map.
2. The road condition rendering method according to claim 1, wherein the sending the latest base map to the client comprises sending all data of the latest base map to the client, or sending different data between the latest base map and a current base map of the client to the client.
3. The road condition rendering method according to claim 1, wherein the base map comprises a mapping relationship, and the mapping relationship is used for describing from which base map level the road in the current base map displays the road condition;
the sending the latest base map and the traffic information to the client, so that the client renders the traffic information based on the shape data of the latest base map, including:
and sending the latest base map and the road condition information to the client so that the client renders the road condition information based on the mapping relation in the latest base map and the shape data of the base map.
4. The road condition rendering method according to claim 3, wherein before sending the latest base map and the road condition information to the client, the method further comprises:
determining the mapping relation of the latest base map according to the latest base map;
the sending the latest base map and the traffic information to the client, so that the client renders the traffic information based on the shape data of the latest base map, including:
and sending the latest base map, the mapping relation and the road condition information to the client side so that the client side renders the road condition information based on the mapping relation of the latest base map and the shape data of the latest base map.
5. The method for road condition rendering according to claim 1, wherein the road condition request comprises: the client side caches the identification of the road condition information currently;
before sending the traffic information for describing the road condition to the client, so that the client renders the traffic information based on the shape data of the base map, the method further includes:
and determining that the current cached traffic information of the client needs to be updated according to the identifier of the current cached traffic information of the client.
6. The method for road condition rendering according to claim 1, wherein the road condition request comprises: the client side caches the identification of the road condition information currently;
the method further comprises the following steps:
determining that the current cached road condition information of the client is not required to be updated according to the identifier of the current cached road condition information of the client;
and informing the client that the current cached road condition information is unchanged so that the client renders the current cached road condition information based on the shape data of the base map.
7. A method for rendering road conditions is characterized by comprising the following steps:
sending a road condition request, wherein the road condition request comprises a base map identifier of a current base map so as to be used for judging whether the current base map needs to be updated;
receiving road condition information for describing road conditions;
rendering the road condition information based on the shape data of the base map;
the method further includes receiving an up-to-date base map;
rendering the road condition information based on the shape data of the base map comprises the following steps:
rendering the road condition information based on the shape data of the latest base map.
8. The method for rendering road conditions according to claim 7, wherein the receiving the latest base map comprises: receiving all data of the latest base map, or receiving different data between the latest base map and the current base map.
9. The road condition rendering method according to claim 7, wherein the base map comprises a mapping relationship, and the mapping relationship is used for describing from which base map level the road in the current base map displays the road condition;
rendering the road condition information based on the shape data of the latest base map, including:
and rendering the road condition information based on the mapping relation in the latest base map and the shape data of the base map.
10. The road condition rendering method according to claim 7, further comprising receiving a mapping relation of a latest base map;
the rendering the road condition information based on the shape data of the latest base map comprises:
and rendering the road condition information based on the mapping relation in the latest base map and the shape data of the base map.
11. The method for road condition rendering according to claim 7, wherein the road condition request comprises an identifier of the current cached road condition information, so as to be used for determining whether the current cached road condition information needs to be updated.
12. The method for rendering road condition according to claim 11, wherein the rendering the road condition information based on the shape data of the base map comprises:
and when the road condition information used for describing the road condition is not received, rendering the current cached road condition information based on the shape data of the base map.
13. A road condition rendering device, comprising:
the receiving module is used for receiving a road condition request sent by a client, wherein the road condition request comprises a base map identifier of a current base map of the client;
the sending module is used for sending the road condition information for describing the road condition to the client so that the client renders the road condition information based on the shape data of the base map;
the sending module is specifically configured to: determining that the current base map of the client needs to be updated according to the base map identifier of the current base map of the client, which is included in the road condition request; and sending the latest base map and the road condition information to the client so that the client renders the road condition information based on the shape data of the latest base map.
14. A road condition rendering device is characterized by comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a road condition request, and the road condition request comprises a base map identifier of a current base map so as to be used for judging whether the current base map needs to be updated;
the receiving module is used for receiving road condition information used for describing road conditions;
the rendering module is used for rendering the road condition information based on the shape data of the base map;
the receiving module is also used for receiving the latest base map;
and the rendering module is used for rendering the road condition information based on the shape data of the latest base map.
15. A road condition rendering device is characterized in that,
a memory for storing a program;
a processor for operating the program stored in the memory to execute the road condition rendering method according to any one of claims 1 to 12.
16. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement a method of road condition rendering according to any one of claims 1 to 12.
CN201811015611.8A 2018-08-31 2018-08-31 Road condition rendering method, device, equipment and medium Active CN110874951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811015611.8A CN110874951B (en) 2018-08-31 2018-08-31 Road condition rendering method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811015611.8A CN110874951B (en) 2018-08-31 2018-08-31 Road condition rendering method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110874951A CN110874951A (en) 2020-03-10
CN110874951B true CN110874951B (en) 2023-03-14

Family

ID=69715949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811015611.8A Active CN110874951B (en) 2018-08-31 2018-08-31 Road condition rendering method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110874951B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953381A (en) * 2006-11-03 2007-04-25 清华大学 Management method of high real-time dynamic electronic map
CN102003962A (en) * 2010-11-18 2011-04-06 东风汽车有限公司 Method for adjusting navigation map scale and navigation device
CN102063788A (en) * 2009-11-18 2011-05-18 厦门雅迅网络股份有限公司 Method and system for releasing real-time road condition information
CN102376160A (en) * 2010-08-09 2012-03-14 中国移动通信集团辽宁有限公司 Method and system for updating real-time traffic information
CN102682654A (en) * 2011-03-16 2012-09-19 高德软件有限公司 Method and device for rendering traffic information
EP2531815A2 (en) * 2010-02-04 2012-12-12 TomTom International B.V. Map rendering for navigation systems
CN106205161A (en) * 2016-07-09 2016-12-07 腾讯科技(深圳)有限公司 traffic information transmission method and device
CN106599217A (en) * 2016-12-16 2017-04-26 广东威创视讯科技股份有限公司 Road condition display method and apparatus
CN108132965A (en) * 2017-11-23 2018-06-08 努比亚技术有限公司 A kind of approaches to IM, server, terminal and computer readable storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101086784A (en) * 2006-06-06 2007-12-12 同济大学 A system and method for traffic information publishing grid service based on PDA client
WO2009037021A1 (en) * 2007-08-29 2009-03-26 Continental Teves Ag & Co. Ohg Device and method for detecting vehicles and the approach angles thereof
CN201156299Y (en) * 2007-09-30 2008-11-26 远传电信股份有限公司 Electronic apparatus displaying traffic condition in real-time by base drawing
CN101726308B (en) * 2008-10-15 2012-07-25 北京龙图通信息技术有限公司 Method for generating crossing actual scene induced map of navigation electronic map
CN101807349A (en) * 2010-01-08 2010-08-18 北京世纪高通科技有限公司 Road condition distribution system and method based on Web
CN101937615B (en) * 2010-08-23 2013-05-01 北京世纪高通科技有限公司 Monitoring device and method based on floating car data processing system
CN104966398B (en) * 2015-07-27 2017-11-07 福建工程学院 The confirmation method and system of a kind of construction guard fender road
CN107146431A (en) * 2016-03-01 2017-09-08 宏碁股份有限公司 Wearable device and the traffic information update method for Wearable device
CN105953804B (en) * 2016-04-20 2020-02-11 腾讯科技(深圳)有限公司 Map data updating method and device
CN106601004A (en) * 2016-12-16 2017-04-26 北京世纪高通科技有限公司 TPEG file display method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953381A (en) * 2006-11-03 2007-04-25 清华大学 Management method of high real-time dynamic electronic map
CN102063788A (en) * 2009-11-18 2011-05-18 厦门雅迅网络股份有限公司 Method and system for releasing real-time road condition information
EP2531815A2 (en) * 2010-02-04 2012-12-12 TomTom International B.V. Map rendering for navigation systems
CN102376160A (en) * 2010-08-09 2012-03-14 中国移动通信集团辽宁有限公司 Method and system for updating real-time traffic information
CN102003962A (en) * 2010-11-18 2011-04-06 东风汽车有限公司 Method for adjusting navigation map scale and navigation device
CN102682654A (en) * 2011-03-16 2012-09-19 高德软件有限公司 Method and device for rendering traffic information
CN106205161A (en) * 2016-07-09 2016-12-07 腾讯科技(深圳)有限公司 traffic information transmission method and device
CN106599217A (en) * 2016-12-16 2017-04-26 广东威创视讯科技股份有限公司 Road condition display method and apparatus
CN108132965A (en) * 2017-11-23 2018-06-08 努比亚技术有限公司 A kind of approaches to IM, server, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110874951A (en) 2020-03-10

Similar Documents

Publication Publication Date Title
US8671365B2 (en) Method, apparatus and computer program product for providing a cursor for indicating context data in a mapping application
US10584978B2 (en) Method and system for displaying nowcasts along a route on a map
KR102105638B1 (en) Map tile data pre-fetching based on mobile device generated event analysis
CN108932331B (en) Map data updating method, device and system
US9406153B2 (en) Point of interest (POI) data positioning in image
EP2958033A1 (en) Tile-based distribution of searchable geospatial data to client devices
US9086290B2 (en) Map data distribution server, map data distribution system, and map data distribution method
KR20150140337A (en) Method and system for displaying nowcasts along a route on a map
US20110218984A1 (en) Method and system for searching for information pertaining target objects
CN103577544A (en) Method and device for providing information to be sent
CN111586108B (en) Traffic map rendering method, device, terminal equipment, server and system
KR20110027251A (en) Apparatus and method for serching and storing contents in portable terminal
US9418351B2 (en) Automated network inventory using a user device
US20140156184A1 (en) Navigation message providing system and method thereof
US9146938B2 (en) Satellite navigation method and system
CN110874951B (en) Road condition rendering method, device, equipment and medium
US10527449B2 (en) Using major route decision points to select traffic cameras for display
JP2009181186A (en) Information providing server, information display terminal, information providing system, information providing program, information display program, information providing method and information display method
CN112118533A (en) Navigation information display method and device
CN113347276B (en) Mobile access system based on GIS
JP2022058600A (en) Transmission device, terminal device, transmission method, transmission program, map data updating method, and map data updating program
JPWO2017170144A1 (en) Movement guide device and computer program
CN112798005A (en) Road data processing method and related device
CN111858822A (en) Method and device for displaying spliced pictures of GIS map
JP5832764B2 (en) Terminal device, map display changing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200416

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100080 01-A051, 3rd floor, 55 Suzhou Street, Haidian District, Beijing

Applicant before: AUTONAVI INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 554, 5 / F, building 3, 969 Wenyi West Road, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: Alibaba (China) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant