Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Example one
As shown in fig. 1, an embodiment of the present invention provides a traffic information prompting method, where an execution subject of the method is a navigation device, and the method includes:
1. and acquiring the current position and the road where the current position is located. Specifically, the current position may be obtained by at least one of the following methods: GPS positioning, WIFI positioning, base station positioning, gyroscope positioning or other positioning modes. And after the current position is acquired, determining a road corresponding to the current position on the electronic map. If the following conditions are met, the traffic information prompting method is ended without carrying out the following steps:
(1) acquiring no positioning signal;
(2) the road of the current position corresponding to the electronic map is a nameless road;
(3) the road corresponding to the current position on the electronic map is a viaduct or a roundabout road;
(4) and in a preset time period before the current position is acquired, the deviation angle between the movement track formed by the acquired positioning signals and the vertical direction exceeds a preset range.
2. Determining the road condition scanning area around the current position;
the road condition scanning area can be rectangular and has a preset width and length. And taking the current position as the wide central point of the rectangle, and extending a preset distance to the moving direction as the length of the rectangle. And the moving direction is judged according to the moving direction of the position point acquired by the navigation equipment within a preset time period before the current position is acquired. When the current road is judged to be the non-expressway, the rectangular scanning area is preset to be the non-expressway rectangular scanning area, and if the current road is judged to be the expressway, the rectangular scanning area is preset to be the high-speed rectangular scanning area, wherein the area of the high-speed rectangular scanning area is larger than that of the non-expressway rectangular scanning area. Optionally, the shape of the road condition scanning area may be a triangle, a trapezoid, a square, or the like, which uses the current position point as the center point of the bottom side. Further, the road condition scanning area shape may be any figure including the current position point.
3. And broadcasting the road condition information in the road condition scanning area.
And acquiring the road condition information in the scanning area, and adding the road condition information into a road condition information play list. The attribute of the road condition information comprises an attribute, a weighted value is given to the attribute of the road condition information, and when a plurality of pieces of road condition information exist in a road condition scanning area, the road condition information is broadcasted from large to small according to the weighted value of the attribute of each piece of road condition information. The attribute of the traffic information includes at least one or more of: road type, road condition type and vehicle distance. The attribute of the traffic information further includes a sub-attribute, wherein the sub-attribute of the road category includes one of: the road with the same road name and the same trend comprises roads with the same road name and the same trend, connecting roads, tunnels, viaducts, overpasses and other roads, wherein the roads with the same road name and the same trend are roads with the same road name and communicated road networks, and the connecting roads are roads connected with the roads with the same road name and the same trend; the road condition category sub-attribute comprises one of the following: road congestion, slow traffic, etc.; the vehicle distance attribute comprises one of: less than the preset distance and not less than the preset distance. And according to the importance degree of each sub-attribute, assigning a weight value to each sub-attribute, selecting the value of the sub-attribute with the largest weight value as the weight value of the road condition information attribute, arranging the road condition information in a road condition information playlist according to the weight value of the attribute, and ranking the sub-attribute with the largest weight value in the playlist in front.
Broadcasting the road condition information according to the division of the weight values, broadcasting the road condition information with the highest weight value, and when the attribute weight values of all the road condition information are consistent, broadcasting the information according to the distance between the position of the road condition information and the current position, wherein the broadcasting distance is short preferentially; and if the distance between the position of the road condition information and the current position is consistent, broadcasting the first road condition information in the playlist. When the moving speed of the navigation equipment is lower than the preset speed, only the road condition information with the same road name and the same direction is broadcasted. If the current voice is broadcasted, the current voice to be broadcasted enters a broadcasting queue to wait for broadcasting, and broadcasting needs to be performed before the next round of broadcasting the roaming road condition voice.
For example, as shown in table 1, in the non-expressway, the road condition information attribute includes a road type, a road condition type, and a vehicle distance. The road category sub-attributes include: the road with the same road name and the same trend, the connecting road/tunnel/viaduct/overpass and other roads, wherein, preferably, the weight value of the road with the same road name and the same trend is 10, the weight value of the connecting road/tunnel/overpass is 6, and the weight value of the other roads is 3. The road condition category sub-attributes include: the system comprises important events, road congestion and slow running, wherein the congestion right value is preferably 6, and the slow running or event right value is preferably 3. The vehicle distance attribute includes: the weight value of less than 2KM and not less than 2KM is a preset distance, wherein preferably, the weight value of less than 2KM is 6, and the weight value of not less than 2KM is 3.
In the case of assigning the weight value, the weight value of the "same road name and same trend" is the largest, and when the sub-attribute is broadcast, the road condition information including the sub-attribute weight value and using the sub-attribute weight value as the attribute weight value is arranged at the first broadcast priority. The sub-attributes include the sub-attributes, and the traffic information with the sub-attribute weight value as the attribute weight value is distributed at a second broadcast priority. The weighted values of "other roads", "slow-going or event", "not less than 2 KM" are the lowest, and the road condition information including the sub-attribute and using the sub-attribute weighted value as the attribute weighted value is arranged at the third reporting priority. If the broadcasting priorities of the plurality of road condition information are the same, further judging the distance between the position of the plurality of road condition information and the current position, and preferentially broadcasting the road condition information with short distance with the current position.
TABLE 1
As shown in table 2, the traffic information attribute includes a road type, a traffic type, and a distance between vehicles on the expressway. The road category sub-attributes include: the road with the same road name and the same trend road and the connecting road are preferably selected, wherein the weight value of the road with the same road name and the same trend road is 10, the weight value of the connecting road is 6, and the weight values of other roads are 3. The road condition category sub-attributes include: the weight value of the road congestion is preferably 6, and the weight value of the road congestion is preferably 3. The vehicle distance attribute includes: less than 5KM and not less than 5KM, where 5KM is a preset distance, and preferably, the weight value of less than 5KM is 6, and the weight value of not less than 5KM is 3.
In the case of assigning the weight value, the weight value of the same road name and the same trend is the largest, and when the sub-attribute is broadcast, the road condition information is arranged at the first broadcast priority. And secondly, the sub-attribute and the road condition information with the sub-attribute weight value as the attribute weight value are distributed at a second broadcast priority. And the third weighted value of 'slow running or event' and 'less than 5 KM' comprises the sub-attribute, and the road condition information which comprises the sub-attribute and takes the sub-attribute weighted value as the attribute weighted value is arranged at the third broadcast priority. The weighted value of "not less than 5 KM" is the lowest, and the road condition information including the sub-attribute and using the sub-attribute weighted value as the attribute weighted value is arranged at the fourth reporting priority. If the broadcasting priorities of the plurality of road condition information are the same, further judging the distance between the position of the plurality of road condition information and the current position, and preferentially broadcasting the road condition information with short distance with the current position.
TABLE 2
And after the road condition information broadcasting sequence is determined, broadcasting the road condition information. The broadcasted road condition information comprises TMC road condition information and event road condition information. The TMC road condition information is prompt information representing the real-time traffic flow on the road. The event traffic information is information of traffic change caused by some special events occurring on the road, and the events include: construction, sealing, accident, temporary inspection, warning, etc.
When the position of current position apart from road condition information is not less than preset distance, if road condition information is the TMC road conditions, then the broadcast content is: road condition information direction, vehicle distance, road name, road direction description, road condition length etc. if road condition information is the incident road condition, then the broadcast content is: road condition information direction, vehicle distance, road name, event description and the like. When the position of current position apart from road condition information is less than preset distance, if road condition information is the TMC road conditions, then report the content and be: direction, road direction description, road condition length etc. if road condition information is the event road condition, then the broadcast content is: directions, event descriptions, etc.
As shown in table 3, when the preset distance between the current position and the position of the traffic information is preferably 100m, the broadcast content is as follows:
vehicle distance
|
TMC traffic broadcast content
|
Event road condition broadcast content
|
Not less than 100m
|
Direction + distance + road name + road direction description + road condition length
|
Direction + vehicle distance + road name + event description
|
Less than 100m
|
Direction + road condition description + road condition length
|
Direction + event description |
TABLE 3
In the broadcast content, the traffic information direction is a direction of a position of the traffic information relative to the current position. As shown in fig. 3, the front of the lane where the current position is located may be defined as the front, the front of the left lane of the lane where the current position is located may be defined as the front left, and the front of the right lane of the lane where the current position is located may be defined as the front right.
In the broadcast content, the vehicle distance is a straight-line distance between the position of the road condition information and the current position. The road name is the name of the road. The course is described as a direction in which the road extends, including: the device comprises an east row circuit, a west row circuit, a south row circuit and a north row circuit, wherein the east row is a row circuit extending from west to east, the west row is a row circuit extending from east to west, the south row is a row circuit extending from north to south, and the north row is a row circuit extending from south to north. The road condition length is the distance of the road condition duration. The event description is a brief description of a traffic event.
Example two
The invention provides a traffic information prompting method, which comprises the following steps:
1. acquiring a current position and a road where the current position is located;
2. determining the road condition scanning area around the current position;
3. and broadcasting and/or displaying the road condition information in the road condition scanning area.
The methods in steps 1 and 2 are the same as those in the first embodiment, and are not described herein again.
In the step 3, after the road condition information broadcasting sequence is determined, the road condition information is broadcasted, and/or the road condition information in the scanning area is displayed on an electronic map or on an interactive interface in a screen rolling mode, wherein the broadcasted and/or displayed content comprises TMC road condition information and event road condition information. The TMC road condition information is prompt information representing the real-time traffic flow on the road. The event traffic information is information of traffic change caused by some special events occurring on the road, and the events include: construction, sealing, accident, temporary inspection, warning, etc.
When the distance between the current position and the position of the road condition information is not less than the preset distance, if the road condition information is the TMC road condition, the contents are as follows: road condition information direction, vehicle distance, road name, road direction description, road condition length and the like, if the road condition information is an event road condition, the display content is as follows: road condition information direction, vehicle distance, road name, event description and the like. When the distance between the current position and the position of the road condition information is less than the preset distance, if the road condition information is the TMC road condition, the display content is as follows: direction, road direction description, road condition length etc. if road condition information is the event road condition, then the broadcast content is: directions, event descriptions, etc.
EXAMPLE III
As shown in fig. 2, an embodiment of the present invention provides a traffic information prompting device, including:
and the position acquisition module is used for acquiring the current position and the road where the current position is located. Specifically, the current position may be obtained by at least one of the following methods: GPS positioning, WIFI positioning, base station positioning, gyroscope positioning or other positioning modes. And after the current position is acquired, determining a road corresponding to the current position on the electronic map. If the following conditions are met, the traffic information prompting method is ended without carrying out the following steps:
(1) acquiring no positioning signal;
(2) the road of the current position corresponding to the electronic map is a nameless road;
(3) the road corresponding to the current position on the electronic map is a viaduct or a roundabout road;
(4) and in a preset time period before the current position is acquired, the deviation angle between the movement track formed by the acquired positioning signals and the vertical direction exceeds a preset range.
And the road condition scanning area acquisition module is used for determining the road condition scanning area around the current position.
The scanning area shape setting module is used for setting the shape of the scanning area, and the road condition scanning area can be set to be a rectangle and has preset width and length. And taking the current position as the wide central point of the rectangle, and extending a preset distance to the moving direction as the length of the rectangle. And the moving direction is judged according to the moving direction of the position point acquired by the navigation equipment within a preset time period before the current position is acquired. When the current road is judged to be the non-expressway, the rectangular scanning area is preset to be the non-expressway rectangular scanning area, and if the current road is judged to be the expressway, the rectangular scanning area is preset to be the high-speed rectangular scanning area, wherein the area of the high-speed rectangular scanning area is larger than that of the non-expressway rectangular scanning area. Optionally, the shape of the road condition scanning area may be a triangle, a trapezoid, a square, or the like, which takes the current position as the center point of the bottom side. Further, the road condition scanning area shape may be any figure including the current position point.
And the road condition broadcasting module is used for broadcasting road condition information in the road condition scanning area.
And the road condition information sorting module is used for acquiring the road condition information in the scanning area, adding the road condition information into a road condition information play list, and broadcasting the road condition information from large to small according to the weight value of each road condition information when a plurality of road condition information exist in the road condition scanning area. The weighted value is divided according to the attribute of the traffic information, and the attribute of the traffic information comprises: road type, road condition type and vehicle distance. The attribute of the traffic information further includes sub-attributes, wherein the road category molecular attribute includes: the road with the same road name and the same trend comprises roads with the same road name and the same trend, connecting roads, tunnels, viaducts, overpasses and other roads, wherein the roads with the same road name and the same trend are roads with the same road name and communicated road networks, and the connecting roads are roads connected with the roads with the same road name and the same trend; the road condition category sub-attributes include: road congestion, slow traffic, etc.; the vehicle distance attribute includes: less than the preset distance and not less than the preset distance. And according to the importance degree of each sub-attribute, assigning a weight value to each sub-attribute, arranging the road condition information in a road condition information playlist according to the size of the assigned sub-attribute, and ranking the sub-attribute with the larger weight value in the playlist in front.
The distance judging module is used for broadcasting the road condition information according to the division of the weight values, broadcasting the road condition information with the highest weight value, and when the attribute weight values of all the road condition information are consistent, broadcasting the information according to the distance between the position of the road condition information and the current position, wherein the broadcasting distance is short preferentially; and if the distance between the position of the road condition information and the current position is consistent, broadcasting the first road condition information in the playlist. When the moving speed of the navigation equipment is lower than the preset speed, only the road condition information with the same road name and the same direction is broadcasted. If the current voice is broadcasted, the current voice to be broadcasted enters a broadcasting queue to wait for broadcasting, and broadcasting needs to be performed before the next round of broadcasting the roaming road condition voice.
For example, as shown in table 1, in the non-expressway, the road condition information attribute includes a road type, a road condition type, and a vehicle distance. The road category sub-attributes include: the road with the same road name and the same trend, the connecting road/tunnel/viaduct/overpass and other roads, wherein, preferably, the weight value of the road with the same road name and the same trend is 10, the weight value of the connecting road/tunnel/overpass is 6, and the weight value of the other roads is 3. The road condition category sub-attributes include: the system comprises important events, road congestion and slow running, wherein the congestion right value is preferably 6, and the slow running or event right value is preferably 3. The vehicle distance attribute includes: the weight value of less than 2KM and not less than 2KM is a preset distance, wherein preferably, the weight value of less than 2KM is 6, and the weight value of not less than 2KM is 3.
In the case of assigning the weight value, the weight value of the same road name and the same trend is the largest, and when the sub-attribute is broadcast, the road condition information is arranged at the first broadcast priority. The sub-attributes of the traffic information are distributed in a second broadcast priority, wherein the sub-attributes comprise 'connecting road/tunnel/overhead/overpass', 'congestion', 'less than 2 KM'. The weight values of other roads, slow driving or events and the weight values of not less than 2KM are the lowest, and the road condition information containing the sub-attributes is arranged at the third reporting priority. If the plurality of road condition information comprise the sub-attributes of the same playing priority, the distance between the position of the plurality of road condition information and the current position is further judged, and the road condition information with short distance from the current position is preferentially played.
TABLE 1
As shown in table 2, the traffic information attribute includes a road type, a traffic type, and a distance between vehicles on the expressway. The road category sub-attributes include: the road with the same road name and the same trend road and the connecting road are preferably selected, wherein the weight value of the road with the same road name and the same trend road is 10, the weight value of the connecting road is 6, and the weight values of other roads are 3. The road condition category sub-attributes include: the weight value of the road congestion is preferably 6, and the weight value of the road congestion is preferably 3. The vehicle distance attribute includes: less than 5KM and not less than 5KM, where 5KM is a preset distance, and preferably, the weight value of less than 5KM is 6, and the weight value of not less than 5KM is 3.
In the case of assigning the weight value, the weight value of the same road name and the same trend is the largest, and when the sub-attribute is broadcast, the road condition information is arranged at the first broadcast priority. And secondly, the road condition information containing the sub-attributes is distributed at a second broadcast priority. And the weight values of 'slow running or event' and 'less than 5 KM' are third, and the road condition information containing the sub-attributes is arranged at the third broadcast priority. The weighted value of 'not less than 5 KM' is the lowest, and the road condition information containing the sub-attributes is arranged at the fourth broadcast priority. If the plurality of road condition information comprise the sub-attributes of the same playing priority, the distance between the position of the plurality of road condition information and the current position is further judged, and the road condition information with short distance from the current position is preferentially played.
TABLE 2
And after the road condition information broadcasting sequence is determined, broadcasting the road condition information. The traffic information broadcasting module further comprises a TMC traffic information broadcasting module and an event traffic information broadcasting module, wherein the TMC traffic information broadcasting module is used for broadcasting the TMC traffic information, and the event information broadcasting module is used for broadcasting the event traffic information. The TMC road condition information is prompt information representing the real-time traffic flow on the road. The event traffic information is information of traffic change caused by some special events occurring on the road, and the events include: construction, sealing, accident, temporary inspection, warning, etc.
When the position of current position apart from road condition information is not less than preset distance, if road condition information is the TMC road conditions, then the broadcast content is: road condition information direction, vehicle distance, road name, road direction description, road condition length etc. if road condition information is the incident road condition, then the broadcast content is: road condition information direction, vehicle distance, road name, event description and the like. When the position of current position apart from road condition information is less than preset distance, if road condition information is the TMC road conditions, then report the content and be: direction, road direction description, road condition length etc. if road condition information is the event road condition, then the broadcast content is: directions, event descriptions, etc.
As shown in table 3, when the preset distance between the current position and the position of the traffic information is preferably 100m, the broadcast content is as follows:
vehicle distance
|
TMC traffic broadcast content
|
Event road condition broadcast content
|
Not less than 100m
|
Direction + distance + road name + road direction description + road condition length
|
Direction + vehicle distance + road name + event description
|
Less than 100m
|
Direction + road condition description + road condition length
|
Direction + event description |
TABLE 3
In the broadcast content, the traffic information direction is a direction of a position of the traffic information relative to the current position. As shown in fig. 3, the front of the lane where the current position is located may be defined as the front, the front of the left lane of the lane where the current position is located may be defined as the front left, and the front of the right lane of the lane where the current position is located may be defined as the front right.
In the broadcast content, the vehicle distance is a straight-line distance between the position of the road condition information and the current position. The road name is the name of the road. The course is described as a direction in which the road extends, including: the device comprises an east row circuit, a west row circuit, a south row circuit and a north row circuit, wherein the east row is a row circuit extending from west to east, the west row is a row circuit extending from east to west, the south row is a row circuit extending from north to south, and the north row is a row circuit extending from south to north. The road condition length is the distance of the road condition duration. The event description is a brief description of a traffic event.
Example four
The invention provides a traffic information prompting device, comprising:
the position acquisition module is used for acquiring the current position and the road where the current position is located;
the road condition scanning area acquisition module is used for determining the road condition scanning area around the current position;
and the road condition prompting module is used for broadcasting and/or displaying the road condition information in the road condition scanning area.
Still include the scanning area shape and set up the module for set up the shape of scanning area, the shape of road conditions scanning area includes following at least one: the road condition sweeping area is preferably rectangular, and the rectangle takes the current position as the wide central point of the rectangle and extends a preset distance to the moving direction as the length of the rectangle.
And the road condition information sorting module is used for acquiring the road condition information in the scanning area, adding the road condition information into a road condition information list, wherein the road condition information comprises attributes, and when a plurality of pieces of road condition information exist in the road condition scanning area, broadcasting and/or displaying the road condition information from large to small according to the weight value of each road condition information attribute.
And the distance judgment module is used for judging according to the distance between the position of the road condition information and the current position when the acquired attribute weight values of the road condition information are consistent, and preferentially broadcasting and/or displaying the road condition information with short distance between the position and the current position.
The traffic information prompt module further comprises a TMC traffic information prompt module and an event traffic information prompt module, the TMC traffic information broadcast module is used for broadcasting and/or displaying TMC traffic information, and the event information broadcast module is used for broadcasting and/or displaying event traffic information.
Under the condition of no navigation path, the invention realizes the traffic information prompt when no navigation path exists by prompting the traffic information on the current road and the road connected with the current road, thereby achieving the purpose of effectively prompting the traffic information.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.