Disclosure of Invention
In view of this, embodiments of the present invention provide a method and a system for pushing a navigation route, so as to solve the problem that the pushed navigation route is not ideal due to the fact that the lighting condition of a road in the navigation route is not considered in the method for pushing the navigation route in the prior art.
In a first aspect, an embodiment of the present invention provides a method for pushing a navigation route, including:
acquiring brightness detection information uploaded by a plurality of navigation terminals in a night time period, wherein the brightness detection information carries a starting point coordinate, an end point coordinate, an illumination brightness value and a user account of a road section, and the brightness detection information is used for reflecting the illumination condition of the road section;
taking the average value of the illumination brightness values in the brightness detection information uploaded by the plurality of navigation terminals as the illumination brightness value of the road section;
selecting a plurality of navigation routes with close distances when receiving a navigation request uploaded by the navigation terminal;
and pushing the navigation route to the navigation terminal according to the illumination brightness value of the road section.
When a navigation request uploaded by the navigation terminal is received, selecting a plurality of navigation routes with close distances, specifically:
when a navigation request is received, generating a plurality of navigation routes, sequencing the kilometers of the navigation routes in descending order, acquiring a navigation route with the minimum kilometer, acquiring the ratio of the kilometers of other navigation routes to the navigation route with the minimum kilometer, eliminating other navigation routes with the ratio not in a preset range, and reserving other navigation routes with the ratio in the preset range to select a plurality of navigation routes with close distances, wherein the other navigation routes are the navigation routes except the navigation route with the minimum kilometer.
Preferably, the pushing the navigation route to the navigation terminal according to the illumination brightness value of the road segment specifically includes:
generating a recommended value of the navigation route according to the illumination brightness value of the road section;
and sequencing the recommended values of the navigation routes in a descending order, and pushing the navigation route sequenced first to the navigation terminal.
Preferably, the generating the recommended value of the navigation route according to the illumination brightness value of the road segment specifically includes:
obtaining the kilometer number of the navigation route, the kilometer number of each road section in the navigation route and the illumination brightness value of each road section in the navigation route;
generating a model according to the kilometer number of the navigation route, the kilometer number of each road section in the navigation route, the illumination brightness value of each road section in the navigation route, a preset illumination brightness threshold value and a preset recommended value, and generating the recommended value of the navigation route.
Preferably, the recommendation value generation model specifically includes:
wherein Bj represents the recommended value of the jth navigation route, j represents the serial number of the navigation route, j represents the number of the navigation routes from 1 to M, M represents the number of the navigation routes, N represents the serial number of the road sections, N represents the range from 1 to N, and N represents the number of the road sections,
represents the kilometer number of the nth road section of the jth navigation route, Kj is the kilometer number of the jth navigation route,
a Brightness value, Brightness, representing a lighting Brightness value of an nth one of said road segments in a jth one of said navigation routes
tRepresenting a preset illumination brightness threshold;
or, the recommendation value generation model specifically includes:
wherein W1 is a preset first weight coefficient, W2 is a preset second weight coefficient, Bj represents a recommended value of the jth navigation route, j represents a serial number of the navigation route, j ranges from 1 to M, M represents the number of the navigation routes, N represents the serial number of the road section, N ranges from 1 to N, N represents the number of the road section,
represents the kilometer number of the nth road section of the jth navigation route, Kj is the kilometer number of the jth navigation route,
a Brightness value, Brightness, representing a lighting Brightness value of an nth one of said road segments in a jth one of said navigation routes
tRepresenting a preset illumination intensity threshold.
In a second aspect, an embodiment of the present invention provides a system for pushing a navigation route, including:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring brightness detection information uploaded by a plurality of navigation terminals in a night time period, the brightness detection information carries a starting point coordinate, an end point coordinate, an illumination brightness value and a user account of a road section, and the brightness detection information is used for reflecting the illumination condition of the road section;
the average module is used for taking the average value of the illumination brightness values in the brightness detection information uploaded by the plurality of navigation terminals as the illumination brightness value of the road section;
the navigation module is used for selecting a plurality of navigation routes with close distances when receiving a navigation request uploaded by the navigation terminal;
and the pushing module is used for pushing the navigation route to the navigation terminal according to the illumination brightness value of the road section.
Preferably, the navigation module is specifically configured to generate a plurality of navigation routes when receiving a navigation request, sort the kilometers of the plurality of navigation routes in descending order, obtain a navigation route with a minimum kilometer, obtain a ratio of the kilometers of the other navigation routes to the navigation route with the minimum kilometer, reject other navigation routes whose ratio is not within a preset range, reserve other navigation routes whose ratio is within the preset range, and select the plurality of navigation routes with close distances, where the other navigation routes are navigation routes of the plurality of navigation routes other than the navigation route with the minimum kilometer.
Preferably, the navigation module is specifically configured to generate a plurality of navigation routes when receiving a navigation request, sort the kilometers of the plurality of navigation routes in descending order, obtain a navigation route with a minimum kilometer, obtain a ratio of the kilometers of the other navigation routes to the navigation route with the minimum kilometer, reject other navigation routes whose ratio is not within a preset range, reserve other navigation routes whose ratio is within the preset range, and select the plurality of navigation routes with close distances, where the other navigation routes are navigation routes of the plurality of navigation routes other than the navigation route with the minimum kilometer.
Preferably, the pushing module comprises:
the generating unit is used for generating a recommended value of the navigation route according to the illumination brightness value of the road section;
and the pushing unit sequences the recommended values of the navigation routes in a descending order and pushes the navigation route which is sequenced first to the navigation terminal.
Preferably, the generating unit is specifically configured to:
obtaining the kilometer number of the navigation route, the kilometer number of each road section in the navigation route and the illumination brightness value of each road section in the navigation route;
generating a model according to the kilometer number of the navigation route, the kilometer number of each road section in the navigation route, the illumination brightness value of each road section in the navigation route, a preset illumination brightness threshold value and a preset recommended value, and generating the recommended value of the navigation route.
Preferably, the recommendation value generation model specifically includes:
wherein Bj represents the recommended value of the jth navigation route, j represents the serial number of the navigation route, j represents the number of the navigation routes from 1 to M, M represents the number of the navigation routes, N represents the serial number of the road sections, N represents the range from 1 to N, and N represents the number of the road sections,
represents the kilometer number of the nth road section of the jth navigation route, Kj is the kilometer number of the jth navigation route,
a Brightness value, Brightness, representing a lighting Brightness value of an nth one of said road segments in a jth one of said navigation routes
tRepresenting a preset illumination brightness threshold;
or, the recommendation value generation model specifically includes:
wherein W1 is a preset first weight coefficient, W2 is a preset second weight coefficient, BjRepresenting the recommended value of the jth navigation route, j representing the serial number of the navigation route, j representing the number of the navigation routes from 1 to M, M representing the number of the navigation routes, N representing the serial number of the road section, N representing the range from 1 to N, N representing the number of the road section,
represents the kilometer number of the nth road section of the jth navigation route, Kj is the kilometer number of the jth navigation route,
a Brightness value, Brightness, representing a lighting Brightness value of an nth one of said road segments in a jth one of said navigation routes
tRepresenting a preset illumination intensity threshold.
Compared with the prior art, the method and the system for pushing the navigation route solve the problem that the pushed navigation route is not ideal due to the fact that the lighting condition of roads in the navigation route is not considered in the method for pushing the navigation route in the prior art.
Detailed Description
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a method for pushing a navigation route, where the method is applied to a terminal, and the method for pushing a navigation route as shown in fig. 1 may include the following steps:
s101, acquiring brightness detection information uploaded by a plurality of navigation terminals in a night time period, wherein the brightness detection information carries a start point coordinate, an end point coordinate, an illumination brightness value and a user account of a road section, and the brightness detection information is used for reflecting the illumination condition of the road section;
the starting point coordinates and the end point coordinates of the road sections are used for distinguishing different road sections.
The user account is used for distinguishing different navigation terminals.
Preferably, the night time period refers to: 7 pm until 6 am.
The navigation server acquires brightness detection information uploaded from 7 pm to 6 am.
For example, today is saturday, the navigation server obtains brightness detection information uploaded by a plurality of navigation terminals from 7 o 'clock in the evening to 6 o' clock in the morning of sunday.
It should be noted that, in some areas, the night time period is not from 7 pm to 6 am, and in this case, the night time period may be set by itself according to the area. For example, 8 pm to 7 am, or 5 pm to 5 am.
The navigation server is used for generating a navigation route.
The navigation terminal is a client for receiving and displaying the navigation route.
The navigation terminal is connected with a brightness detection system of the vehicle, acquires brightness detection information and uploads the brightness detection information to the navigation server.
S102, taking the average value of the illumination brightness values in the brightness detection information uploaded by the plurality of navigation terminals as the illumination brightness value of the road section;
the method comprises the steps of obtaining road section names according to start point coordinates and end point coordinates of road sections in brightness detection information uploaded by a plurality of navigation terminals, obtaining illumination brightness values with the same road section names, adding the illumination brightness values with the same road section names, and dividing the sum by the number of the illumination brightness values with the same road section names to obtain the average value of the illumination brightness values, wherein the average value of the illumination brightness values is the illumination brightness value of the road sections.
For example: acquiring the illumination brightness value of the road in the deep south according to the start point coordinate and the end point coordinate of the road in the brightness detection information uploaded by the plurality of navigation terminals, wherein if the number of the illumination brightness values of the road in the deep south is 5, the number of the illumination brightness values is 1.2cd/m
2、1.5cd/m
2、1.4cd/m
2、1.8cd/m
2、1.0cd/m
2Adding the illumination brightness values of the great avenues in the deep south, and dividing the sum by the number of the illumination brightness values of the great avenues in the deep south to obtain the average value of the illumination brightness values, namely,
the mean value of the illumination luminance value is 1.38cd/m
2The illumination brightness value of the great avenue in the deep south.
In the existing map software, the start point coordinates and the end point coordinates are input, and the road section names can be acquired, so that the specific implementation process is not described herein.
S103, selecting a plurality of navigation routes with close distances when receiving a navigation request uploaded by the navigation terminal;
and when a navigation request uploaded by the navigation terminal is received in the night time period, selecting a plurality of navigation routes close to each other.
Preferably, when receiving a navigation request uploaded by the navigation terminal, the method selects a plurality of navigation routes close to each other, specifically:
when a navigation request is received, generating a plurality of navigation routes, sequencing the kilometers of the navigation routes in descending order, acquiring a navigation route with the minimum kilometer, acquiring the ratio of the kilometers of other navigation routes to the navigation route with the minimum kilometer, eliminating other navigation routes with the ratio not in a preset range, and reserving other navigation routes with the ratio in the preset range to select a plurality of navigation routes with close distances, wherein the other navigation routes are the navigation routes except the navigation route with the minimum kilometer.
Preferably, the brightness detection information further carries an identifier, where the identifier is binary 6 1 s; the preset range is 1.01 to 1.12.
For example: generating a plurality of navigation routes, wherein the kilometers of the plurality of navigation routes are 35 kilometers, 36 kilometers, 38 kilometers, 45 kilometers and 47 kilometers respectively, and the 35 kilometer navigation route is the navigation route with the minimum kilometerThe route, the ratio of the kilometer number of other navigation routes to the navigation route with the minimum kilometer number is respectively as follows:
and other navigation routes with the ratio not within the preset range are removed, namely the navigation routes of 45 km and 47 km are removed, other navigation routes with the ratio within the preset range are reserved, namely the navigation routes of 36 km and 38 km are reserved, and therefore a plurality of navigation routes with close distances can be selected, namely the navigation routes of 35 km, 36 km and 38 km are selected.
The method for selecting the navigation routes with the close distances has the advantages that: the navigation route which is too long in kilometers is avoided, the possibility of detour is reduced, and the driving distance of the navigation route is considered.
And after receiving the brightness detection information, the navigation server can quickly identify the brightness detection information through the identifier.
And S104, pushing the navigation route to the navigation terminal according to the illumination brightness value of the road section.
And the navigation server pushes the navigation route to the navigation terminal through WIFI, 4G or 5G according to the illumination brightness value of the road section.
Preferably, the pushing the navigation route to the navigation terminal according to the illumination brightness value of the road segment specifically includes:
generating a recommended value of the navigation route according to the illumination brightness value of the road section;
and sequencing the recommended values of the navigation routes in a descending order, and pushing the navigation route sequenced first to the navigation terminal.
Preferably, the recommended value of the navigation route is generated according to the illumination brightness value of the road segment, specifically:
obtaining the kilometer number of the navigation route, the kilometer number of each road section in the navigation route and the illumination brightness value of each road section in the navigation route;
generating a model according to the kilometer number of the navigation route, the kilometer number of each road section in the navigation route, the illumination brightness value of each road section in the navigation route, a preset illumination brightness threshold value and a preset recommended value, and generating a recommended value of the navigation route;
the recommendation value generation model specifically comprises the following steps:
wherein Bj represents the recommended value of the jth navigation route, j represents the serial number of the navigation route, j represents the number of the navigation routes from 1 to M, M represents the number of the navigation routes, N represents the serial number of the road sections, N represents the range from 1 to N, and N represents the number of the road sections,
represents the kilometer number of the nth road section of the jth navigation route, Kj is the kilometer number of the jth navigation route,
a Brightness value, Brightness, representing a lighting Brightness value of an nth one of said road segments in a jth one of said navigation routes
tRepresenting a preset illumination intensity threshold.
The method comprises the steps of obtaining the kilometer number of a navigation route, obtaining each road section in the navigation route, obtaining the kilometer number of each road section in the navigation route, and obtaining the illumination brightness value of each road section in the navigation route.
In the existing map software, the navigation route is obtained, and each road segment in the navigation route can be reached, and the specific implementation process is not repeated herein.
Wherein, in the recommendation value generation model, the Bj recommendation value is equal to
In a positive correlation, and Brightnesst is a fixed value, and therefore,
the larger the recommendation, the higher. In addition to this, the present invention is,
the ratio of the kilometer number of the nth road segment of the jth navigation route to the kilometer number of the jth navigation route,
can be understood as
The weight in the recommended value Bj, where,
the larger the size of the tube is,
the larger the ratio of (b) in the recommended value Bj. The technical effects are as follows: the longer the kilometer number of the nth road section in the navigation route is, the more important the illumination brightness value of the nth road section is, so that the illumination brightness value of each road section is positively correlated with the kilometer number of each road section, and the recommended value of the jth navigation route can be better embodied.
Among them, BrightnesstThe preset illumination brightness threshold is represented, and may be set by the user itself or may be default by the system, which is not limited herein. Preferably, BrightnesstIs set to be 2cd/m2。
Wherein the light is BrightnesstIs set to be 2cd/m2Referring to fig. 2, fig. 2 is a sample diagram of a navigation route provided by an embodiment of the present invention, and the detailed description is as follows:
the 1 st navigation route, the 2 nd navigation route and the 3 rd navigation route are respectively a navigation route A, a navigation route F and a navigation route G;
the kilometer number of the navigation route A is 35 kilometers, the first road section A1 of the navigation route A is 10 kilometers, the second road section A2 is 20 kilometers, the third road section A3 is 5 kilometers, and the illumination brightness value of the first road section A1 is 1.5cd/m
2The illumination brightness value of the second road section A2 is 2cd/m
2The illumination brightness value of the third road section A3 is 0cd/m
2The length of the chips in kilometers,
the recommended value of the navigation route a is 0.78.
The kilometer number of the navigation route F is 36 kilometers, the first road section F1 of the navigation route F is 10 kilometers, the second road section F2 is 20 kilometers, the third road section F3 is 6 kilometers, and the illumination brightness value of the first road section is 1.5cd/m
2The illumination brightness value of the second road section is 1.5cd/m
2The illumination brightness value of the third road section is 0.5cd/m
2The length of the chips in kilometers,
the recommended value of the navigation route F is 0.8.
The kilometer number of a navigation route G is 38 kilometers, the first section G1 of the 2 nd navigation route is 10 kilometers, the second section G2 is 15 kilometers, the third section G3 is 10 kilometers, the fourth section G4 is 3 kilometers, and the illumination brightness value of the first section G1 is 1.5cd/m
2The illumination brightness value of the second road section G2 is 5cd/m
2The illumination brightness value of the third road section G3 is 0.2cd/m
2The illumination luminance value of the fourth segment G4 is 0cd/m
2The length of the chips in kilometers,
the recommended value of the navigation route G is 0.62.
And sorting the recommended values 0.78, 0.8 and 0.62 in descending order, and pushing the first sorted navigation route, namely the recommended navigation route F, to the navigation terminal.
Optionally, the recommendation value generation model may further be:
wherein, W1 is a preset first weight coefficient, and W2 is a preset second weight coefficient; bj represents the recommended value of the jth navigation route, j represents the serial number of the navigation route, j represents the range from 1 to M, M represents the number of the navigation routes, N represents the serial number of the road sections, N represents the range from 1 to N, and N represents the number of the road sections,
represents the kilometer number of the nth road section of the jth navigation route, Kj is the kilometer number of the jth navigation route,
a Brightness value, Brightness, representing a lighting Brightness value of an nth one of said road segments in a jth one of said navigation routes
tRepresenting a preset illumination intensity threshold.
The W1 is used for adjusting the proportion of the kilometer number of the road section to the kilometer number of the navigation route in the recommended value, and the W2 is used for adjusting the proportion of the illumination brightness value of the road section to the preset illumination brightness threshold value in the recommended value. The W2 is larger than the W1, so that the proportion of the ratio of the illumination brightness value to the preset illumination brightness threshold value in the recommended value can be adjusted through the W2, and the method is suitable for scenes which are relatively short in distance and have high requirements on the illumination brightness value of the road section, such as scenes of walking navigation or bicycle riding navigation.
Wherein, if the navigation mode uploaded by the navigation terminal is walking navigation or cycling navigation, the method adopts
If the navigation mode of acquiring the navigation uploaded by the navigation terminal is driving navigation, the method adopts
In this embodiment, the recommended value of the navigation route and the illumination brightness value of the road segment in the navigation route are in a positive correlation, the larger the illumination brightness value is, the higher the recommended value is, therefore, through the recommended value, the navigation route with good illumination condition can be found out in a plurality of navigation routes with close distances, the user can easily see the obstacles on the side clearly, and the driving safety is improved.
Referring to fig. 3, fig. 3 is a block diagram of a system for pushing a navigation route according to an embodiment of the present invention, where the system for pushing a navigation route includes:
the acquisition module 31 is configured to acquire brightness detection information uploaded by a plurality of navigation terminals in a night time period, where the brightness detection information carries a start point coordinate, an end point coordinate, an illumination brightness value, and a user account of a road segment, and the brightness detection information is used to reflect an illumination condition of the road segment;
the average module 32 is configured to take an average value of the illumination brightness values in the brightness detection information uploaded by the plurality of navigation terminals as an illumination brightness value of the road segment;
the navigation module 33 is configured to select a plurality of navigation routes with close distances when receiving a navigation request uploaded by the navigation terminal;
and the pushing module 34 is configured to push the navigation route to the navigation terminal according to the illumination brightness value of the road segment.
Preferably, in the system, the navigation module is specifically configured to generate a plurality of navigation routes when receiving the navigation request, sort the kilometers of the plurality of navigation routes in descending order, obtain the navigation route with the smallest kilometer, obtain a ratio of the kilometers of the other navigation routes to the navigation route with the smallest kilometer, reject other navigation routes whose ratio is not within a preset range, and reserve other navigation routes whose ratio is within the preset range to select the plurality of navigation routes with close distances, where the other navigation routes are navigation routes of the plurality of navigation routes other than the navigation route with the smallest kilometer.
Preferably, in the above system, the luminance detection information further carries an identifier, where the identifier is binary 6 1 s; the preset range is 1.01 to 1.12.
Preferably, in the above system, the pushing module includes:
the generating unit is used for generating a recommended value of the navigation route according to the illumination brightness value of the road section;
and the pushing unit sequences the recommended values of the navigation routes in a descending order and pushes the navigation route which is sequenced first to the navigation terminal.
Preferably, in the above system, the generating unit is specifically configured to:
obtaining the kilometer number of the navigation route, the kilometer number of each road section in the navigation route and the illumination brightness value of each road section in the navigation route;
generating a model according to the kilometer number of the navigation route, the kilometer number of each road section in the navigation route, the illumination brightness value of each road section in the navigation route, a preset illumination brightness threshold value and a preset recommended value, and generating the recommended value of the navigation route.
Preferably, in the above system,
the recommendation value generation model specifically comprises the following steps:
wherein Bj represents the recommended value of the jth navigation route, j represents the serial number of the navigation route, j represents the number of the navigation routes from 1 to M, M represents the number of the navigation routes, N represents the serial number of the road sections, N represents the range from 1 to N, and N represents the number of the road sections,
the number of kilometers of the nth road segment of the jth navigation route is represented, and Kj is the thThe kilometers of the j navigation routes,
a Brightness value, Brightness, representing a lighting Brightness value of an nth one of said road segments in a jth one of said navigation routes
tRepresenting a preset illumination brightness threshold;
or, the recommendation value generation model specifically includes:
wherein W1 is a preset first weight coefficient, W2 is a preset second weight coefficient, Bj represents a recommended value of the jth navigation route, j represents a serial number of the navigation route, j ranges from 1 to M, M represents the number of the navigation routes, N represents the serial number of the road section, N ranges from 1 to N, N represents the number of the road section,
represents the kilometer number of the nth road section of the jth navigation route, Kj is the kilometer number of the jth navigation route,
a Brightness value, Brightness, representing a lighting Brightness value of an nth one of said road segments in a jth one of said navigation routes
tRepresenting a preset illumination intensity threshold.
In this embodiment, the recommended value of the navigation route and the illumination brightness value of the road segment in the navigation route are in a positive correlation, the larger the illumination brightness value is, the higher the recommended value is, therefore, through the recommended value, the navigation route with good illumination condition can be found out in a plurality of navigation routes with close distances, the user can easily see the obstacles on the side clearly, and the driving safety is improved.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.