CN109813330B - Method and device for sending navigation route and electronic equipment - Google Patents

Method and device for sending navigation route and electronic equipment Download PDF

Info

Publication number
CN109813330B
CN109813330B CN201910134875.3A CN201910134875A CN109813330B CN 109813330 B CN109813330 B CN 109813330B CN 201910134875 A CN201910134875 A CN 201910134875A CN 109813330 B CN109813330 B CN 109813330B
Authority
CN
China
Prior art keywords
navigation
navigation route
traffic lights
traffic
vehicle
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
CN201910134875.3A
Other languages
Chinese (zh)
Other versions
CN109813330A (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.)
SHENZHEN CANJING ELECTRONICS Co.,Ltd.
Original Assignee
Shenzhen Canjing Electronics 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 Shenzhen Canjing Electronics Co ltd filed Critical Shenzhen Canjing Electronics Co ltd
Priority to CN201910134875.3A priority Critical patent/CN109813330B/en
Publication of CN109813330A publication Critical patent/CN109813330A/en
Application granted granted Critical
Publication of CN109813330B publication Critical patent/CN109813330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Navigation (AREA)

Abstract

The invention belongs to the field of software, and provides a method and a device for sending a navigation route and electronic equipment, wherein the method comprises the following steps: the server plans a navigation route corresponding to the navigation request; if the number of the navigation routes is more than or equal to 2, acquiring the number of traffic lights of each navigation route; acquiring a navigation route with the least traffic lights; summing the kilometer number of each navigation route to obtain the total kilometer number of the navigation route; generating an average kilometer number of the navigation route according to the total kilometer number of the navigation route and the number of the navigation routes; comparing the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route, and generating a ratio of the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route; and if the ratio is within the preset ratio range, transmitting the navigation route with the least traffic lights to the navigation terminal. The invention considers the number of traffic lights in the navigation route, and is beneficial to finding out a proper navigation route.

Description

Method and device for sending navigation route and electronic equipment
Technical Field
The invention belongs to the field of software, and particularly relates to a method and a device for sending a navigation route and electronic equipment.
Background
Navigation is a method of guiding a device to move from one point of a given course to another. The server of the navigation map can plan a navigation route and send the navigation route to the navigation terminal. And after receiving the navigation route, the navigation terminal displays the navigation route so that a user can drive the vehicle according to the navigation route.
However, the existing method for sending the navigation route does not consider the number of traffic lights in the navigation route, so that the sent navigation route is not ideal. Because the situations of traffic jam, no high speed walking and time priority are generally considered when the navigation route is sent, the number of traffic lights in the navigation route is not considered, and some navigation routes have more traffic lights and more traffic lights, often stop, often brake and often wait, which is not friendly to the vehicle with the practice mark and also not friendly to the vehicle with the manual shift, the sent navigation route is not ideal, and the higher requirement of the user on the navigation map is difficult to meet.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for sending a navigation route, and an electronic device, so as to solve the problem that the sent navigation route is not ideal due to the fact that the number of traffic lights in the navigation route is not considered in the sending method for a navigation route in the prior art.
In a first aspect, an embodiment of the present invention provides a method for sending a navigation route, including:
the method comprises the steps that a server receives a navigation request uploaded by a navigation terminal, and a navigation route corresponding to the navigation request is planned according to a departure place and a destination in the navigation request;
judging whether the number of the navigation routes is more than or equal to 2;
if the number of the navigation routes is more than or equal to 2, acquiring the number of traffic lights of each navigation route;
sequencing the traffic light quantity of each navigation route according to the sequence of the traffic light quantity from large to small, and acquiring the navigation route with the least traffic light quantity;
obtaining the kilometer number of each navigation route, and summing the kilometer numbers of each navigation route to obtain the total kilometer number of the navigation route;
generating an average kilometer number of the navigation route according to the total kilometer number of the navigation route and the number of the navigation routes;
obtaining the kilometer number of the navigation route with the least traffic lights, comparing the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route, and generating the ratio of the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route;
and judging whether the ratio is in a preset ratio range, and if so, sending the navigation route with the least traffic lights to the navigation terminal.
Preferably, in the above method for sending a navigation route, if the number of the navigation routes is greater than or equal to 2, the number of traffic lights of each navigation route is obtained, specifically:
and if the number of the navigation routes is more than or equal to 2, respectively acquiring the number of the traffic lights of each road section in each navigation route, and adding the number of the traffic lights of each road section in each navigation route to acquire the number of the traffic lights of each navigation route.
Preferably, in the method for sending a navigation route, after the step of judging whether the ratio is within a preset ratio range, and if the ratio is within the preset ratio range, sending the navigation route with the smallest number of traffic lights to the navigation terminal, the method for sending a navigation route further includes:
acquiring the current position coordinates of the vehicle;
acquiring a traffic light in front of the vehicle according to the current position coordinate of the vehicle and the position coordinate of the traffic light of the navigation route with the least number of the traffic lights;
acquiring the remaining time of a green light in a traffic light in front of the vehicle;
acquiring the distance between the vehicle and a traffic light in front of the vehicle;
judging whether the remaining time of the green light in the traffic light in front of the vehicle is less than 5 seconds or not, judging whether the distance is more than 40 meters or not,
and if the remaining duration of the green light is less than 5 seconds and the distance is more than 40 meters, sending the message of waiting for the next green light to the navigation terminal so that the navigation terminal receives and broadcasts the message of waiting for the next green light.
Preferably, in the method for sending a navigation route, the obtaining of the remaining time of the green light in the traffic light in front of the vehicle includes:
and adopting a wired or wireless communication mode to connect a traffic signal controller of a traffic light in front of the vehicle, and acquiring the residual time length of the green light in the traffic light in front of the vehicle uploaded by the traffic signal controller.
Preferably, in the above-described method for transmitting a navigation route, the preset ratio ranges from 0.5 to 1.3.
In a second aspect, an embodiment of the present invention provides a device for sending a navigation route, including:
the planning module is used for receiving a navigation request uploaded by a navigation terminal and planning a navigation route corresponding to the navigation request according to a departure place and a destination in the navigation request;
the judging module is used for judging whether the number of the navigation routes is more than or equal to 2;
the traffic light quantity acquisition module is used for acquiring the traffic light quantity of each navigation route if the quantity of the navigation routes is more than or equal to 2;
the sequencing module is used for sequencing the traffic light quantity of each navigation route according to the sequence of the traffic light quantity from large to small so as to obtain the navigation route with the minimum traffic light quantity;
the summation module is used for acquiring the kilometer number of each navigation route and summing the kilometer number of each navigation route to obtain the total kilometer number of the navigation route;
the average kilometer number generating module is used for generating the average kilometer number of the navigation route according to the total kilometer number of the navigation route and the number of the navigation routes;
the ratio generation module is used for acquiring the kilometer number of the navigation route with the least traffic lights, comparing the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route, and generating the ratio of the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route;
and the navigation route sending module is used for judging whether the ratio is within a preset ratio range, and if the ratio is within the preset ratio range, sending the navigation route with the least traffic lights to the navigation terminal.
Preferably, in the above-mentioned sending apparatus of the navigation route, the preset ratio ranges from 0.5 to 1.3;
the traffic light quantity obtaining module is specifically configured to obtain the traffic light quantity of each road segment in each navigation route respectively if the number of the navigation routes is greater than or equal to 2, and add the traffic light quantity of each road segment in each navigation route to obtain the traffic light quantity of each navigation route.
Preferably, in the above-described device for transmitting a navigation route, the device for transmitting a navigation route further includes:
the current position coordinate acquisition module is used for acquiring the current position coordinate of the vehicle;
the first acquisition module is used for acquiring traffic lights in front of the vehicle according to the current position coordinates of the vehicle and the position coordinates of the traffic lights of the navigation route with the least number of the traffic lights;
the second acquisition module is used for acquiring the residual time of a green light in a traffic light in front of the vehicle;
the third acquisition module is used for acquiring the distance between the vehicle and a traffic light in front of the vehicle;
a judging module for judging whether the remaining time of the green light in the traffic light in front of the vehicle is less than 5 seconds or not and judging whether the distance is more than 40 meters or not,
and the message sending module is used for sending the message of waiting for the next green light to the navigation terminal if the remaining duration of the green light is less than 5 seconds and the distance is more than 40 meters, so that the navigation terminal receives and broadcasts the message of waiting for the next green light.
Preferably, in the above sending apparatus for a navigation route, the second obtaining module is specifically configured to connect, in a wired or wireless communication mode, to a traffic signal controller of a traffic light in front of the vehicle, and obtain the remaining duration of the green light in the traffic light in front of the vehicle, which is uploaded by the traffic signal controller.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory; the memory is used for storing computer programs, and the processor is used for executing the computer programs stored in the memory so as to enable the electronic equipment to execute any one of the navigation route sending methods.
Compared with the prior art, the method and the device for sending the navigation route solve the problem that the sent navigation route is not ideal because the quantity of traffic lights in the navigation route is not considered in the method for sending the navigation route in the prior art.
Drawings
Fig. 1 is a flowchart of an implementation of a method for sending a navigation route according to an embodiment of the present invention;
fig. 2 is a block diagram of a navigation route transmitting device according to an embodiment of the present invention.
Detailed Description
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a method for sending a navigation route, which is provided by an embodiment of the present invention and is applied to a terminal, where the method for sending a navigation route shown in fig. 1 may include the following steps:
s101, a server receives a navigation request uploaded by a navigation terminal, and plans a navigation route corresponding to the navigation request according to a departure place and a destination in the navigation request;
the server receives a navigation request uploaded by the navigation terminal through a wireless network, and plans a navigation route corresponding to the navigation request according to a departure place and a destination in the navigation request.
The wireless network may be a 4G communication network or a 5G communication network, which is not limited herein.
S102, judging whether the number of the navigation routes is more than or equal to 2;
s103, if the number of the navigation routes is more than or equal to 2, the number of traffic lights of each navigation route is obtained;
preferably, S103, specifically:
and if the number of the navigation routes is more than or equal to 2, respectively acquiring the number of the traffic lights of each road section in each navigation route, and adding the number of the traffic lights of each road section in each navigation route to acquire the number of the traffic lights of each navigation route.
For convenience of description, the number of the navigation routes is 4, and the navigation routes are navigation routes 1, 2, 3, and 4, which are detailed as follows:
navigation route 1:
the navigation route 1 passes through 6 road sections, namely a road section 1, a road section 2, a road section 3, a road section 4, a road section 5 and a road section 6;
the number of the traffic lights of the road section 1 is 2, the number of the traffic lights of the road section 2 is 1, the number of the traffic lights of the road section 3 is 1, the number of the traffic lights of the road section 4 is 1, the number of the traffic lights of the road section 5 is 1, and the number of the traffic lights of the road section 6 is 1;
the number of the traffic lights of the sections 1, 2, 3, 4, 5 and 6 in the navigation route 1 is added to obtain 8 traffic lights of the navigation route 1.
Navigation route 2:
the navigation route 2 passes through 6 road sections, namely a road section 1, a road section 2, a road section 3, a road section 4, a road section 5 and a road section 6;
the number of the traffic lights of the road section 1 is 0, the number of the traffic lights of the road section 2 is 1, the number of the traffic lights of the road section 3 is 1, the number of the traffic lights of the road section 4 is 1, the number of the traffic lights of the road section 5 is 1, and the number of the traffic lights of the road section 6 is 1;
and adding the number of the traffic lights of the sections 1, 2, 3, 4, 5 and 6 in the navigation route 2 to obtain 6 traffic lights of the navigation route 2.
Navigation route 3:
the navigation route 3 passes through 4 road sections, namely a road section 1, a road section 2, a road section 3 and a road section 4;
the number of the traffic lights of the road section 1 is 1, the number of the traffic lights of the road section 2 is 1, the number of the traffic lights of the road section 3 is 1, and the number of the traffic lights of the road section 4 is 2;
and adding the number of the traffic lights of the sections 1, 2, 3 and 4 in the navigation route 3 to obtain 5 traffic lights of the navigation route 3.
Navigation route 4:
the navigation route 4 passes through 3 road sections, namely a road section 1, a road section 2 and a road section 3; the number of the traffic lights of the road section 1 is 1, the number of the traffic lights of the road section 2 is 1, the number of the traffic lights of the road section 3 is 1, the number of the traffic lights of the road section 4 is 1, the number of the traffic lights of the road sections 1, 2, 3 and 4 in the navigation route 4 are added,
so that the number of traffic lights for acquiring the navigation route 4 is 4.
Therefore, the number of traffic lights of the navigation route 1 is 8; the number of traffic lights of the navigation route 2 is 6; the number of traffic lights of the navigation route 3 is 5; the number of traffic lights of the navigation route 4 is 4.
The number of the navigation routes may also be 5 or 6, and the process of obtaining the number of the traffic lights of the navigation routes is the same as above, which is not described herein again.
S104, sequencing the traffic light quantity of each navigation route according to the sequence of the traffic light quantity from large to small, and acquiring the navigation route with the minimum traffic light quantity;
s105, obtaining the kilometer number of each navigation route, and summing the kilometer numbers of each navigation route to obtain the total kilometer number of the navigation route;
s106, generating an average kilometer number of the navigation route according to the total kilometer number of the navigation route and the number of the navigation routes;
s107, the kilometer number of the navigation route with the least traffic lights is obtained, and the kilometer number of the navigation route with the least traffic lights is compared with the average kilometer number of the navigation route to generate the ratio of the kilometer number of the navigation route with the least traffic lights to the average kilometer number of the navigation route;
s108, judging whether the ratio is in a preset ratio range, and if the ratio is in the preset ratio range, sending the navigation route with the least traffic lights to the navigation terminal.
The preset ratio range is set by a user or default by a system. The ratio is in the range of the preset ratio, which shows that the average kilometer number of the navigation route with the least number of traffic lights is similar to that of the navigation route,
preferably, in the above-described method for transmitting a navigation route, the preset ratio ranges from 0.5 to 1.3.
For convenience of description, the number of the navigation routes is 4, for example, as follows:
the number of the traffic lights of the navigation route 1 is 8, and the kilometers are 16 kilometers;
the number of the traffic lights of the navigation route 2 is 6, and the kilometers are 18 kilometers;
the number of the traffic lights of the navigation route 3 is 5, and the kilometer number is 20 kilometers;
the number of the traffic lights of the navigation route 4 is 4, and the kilometer number is 19 kilometers;
therefore, the navigation route with the least traffic lights is the navigation route 4, and the kilometer number of the navigation route 4 is 19 kilometers;
the total kilometers of the navigation routes 1, 2, 3, 4 are 73 kilometers, and according to the total kilometers of the navigation routes 1, 2, 3, 4 and the number 4 of the navigation routes, the average kilometer of the navigation routes is generated as follows: (16 +18+20+ 19)/4 = 18.25;
comparing the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route, namely comparing the kilometer number of the navigation route 4 with the average kilometer number of the navigation route 18.25, wherein 19/18.25=1.04, so that the ratio of the kilometer number of the navigation route 4 to the average kilometer number of the navigation route is 1.04, and the preset ratio range is 0.5 to 1.3, and therefore, the ratio of the kilometer number of the navigation route 4 to the average kilometer number of the navigation route is in the preset ratio range, and the server sends the navigation route 4 to the navigation terminal.
In the embodiment of the invention, if the ratio is in the preset ratio range, the navigation route with the minimum traffic light quantity is sent to the navigation terminal, namely, the server sends the navigation route with the minimum traffic light quantity to the navigation terminal under the condition that the navigation routes are close to each other. Therefore, the embodiment of the invention considers the number of the traffic lights in the navigation route, and is beneficial to finding out a proper navigation route. Therefore, traffic lights of the vehicle paths are reduced, and the driving distance of the vehicle is reduced.
It should be noted that: there are two implementations of S108, detailed as follows:
the first implementation mode comprises the following steps: judging whether the ratio is in a preset ratio range, if so, judging whether a plurality of navigation routes with the minimum number of traffic lights exist, if so, sending the navigation routes with the minimum number of traffic lights to the navigation terminal, and if so, sequencing the kilometers of the navigation routes with the minimum number of traffic lights to obtain the navigation routes with the minimum kilometers and the minimum number of traffic lights, and sending the navigation routes with the minimum kilometers and the minimum number of traffic lights to the navigation terminal.
The navigation routes with the least traffic lights are as follows: and more than two navigation routes with the least traffic lights.
For convenience of description, the number of the navigation routes is 5, for example, as follows:
the number of the traffic lights of the navigation route 5 is 4, the kilometer number is 18 kilometers, the kilometer number 18 of the navigation route 5 is compared with the average kilometer number 18.25 of the navigation route, 18/18.25=0.98, so that the ratio of the kilometer number of the navigation route 5 to the average kilometer number of the navigation route is 0.98, the preset ratio range is 0.5-1.3, and the ratio of the kilometer number of the navigation route 5 to the average kilometer number of the navigation route is within the preset ratio range. In this case, the navigation route 4 and the navigation route 5 are both the navigation route with the least number of traffic lights, that is, there are two navigation routes with the least number of traffic lights, and the ratios of the average kilometers of the navigation routes 4 and 5 to the average kilometers of the navigation routes are all within the preset ratio range, the kilometers of the navigation routes 4 and 5 are sorted, the kilometer of the navigation route 4 is 19 kilometers, the kilometer of the navigation route 5 is 18 kilometers, obviously, the kilometer of the navigation route 5 is the least, therefore, the navigation route 5 is the navigation route with the least kilometers and the least number of traffic lights, and the server sends the navigation route 5 to the navigation terminal.
The beneficial effects are as follows: under the condition of close distance, the server sends the navigation route with the least kilometers and the least traffic lights to the navigation terminal, so that the traffic lights of the vehicle route where the navigation terminal is located can be further reduced, and the driving distance of the vehicle is reduced.
The second implementation mode comprises the following steps: judging whether the ratio is in a preset ratio range, if so, judging whether a plurality of navigation routes with the minimum number of traffic lights exist, if so, sending the navigation routes with the minimum number of traffic lights to the navigation terminal, and if so, sequencing the ratio of the navigation routes with the minimum number of traffic lights to the average kilometer number of the navigation routes, acquiring the navigation routes with the minimum ratio and the minimum number of traffic lights, and sending the navigation routes with the minimum number of kilometers and the minimum number of traffic lights to the navigation terminal.
For convenience of description, the number of the navigation routes is 5, for example, as follows:
the number of the traffic lights of the navigation route 5 is 4, the kilometer number is 18 kilometers, the kilometer number 18 of the navigation route 5 is compared with the average kilometer number 18.25 of the navigation route, 18/18.25=0.98, so that the ratio of the kilometer number of the navigation route 5 to the average kilometer number of the navigation route is 0.98, the preset ratio range is 0.5-1.3, and the ratio of the kilometer number of the navigation route 5 to the average kilometer number of the navigation route is within the preset ratio range. In this case, the navigation route 4 and the navigation route 5 are both the navigation route with the smallest number of traffic lights, that is, there are two navigation routes with the smallest number of traffic lights, and the ratios of the navigation route 4, the navigation route 5 and the average kilometer number of the navigation route are all within the preset ratio range, and the ratios of the navigation route 4, the navigation route 5 and the average kilometer number of the navigation route are sorted, that is, sorted by 1.04 and 0.98, it is obvious that the ratio of the navigation route 5 and the average kilometer number of the navigation route is the smallest, so that the navigation route 5 is the navigation route with the smallest ratio and the smallest number of traffic lights, and the server sends the navigation route 5 to the navigation terminal.
The beneficial effects are as follows: under the condition of close distance, the server sends the navigation route with the minimum ratio and the minimum number of traffic lights to the navigation terminal, so that the traffic lights of the vehicle route where the navigation terminal is located can be further reduced, and the driving distance of the vehicle is reduced.
Preferably, in the above-mentioned method for transmitting a navigation route, after S108, the method for transmitting a navigation route further includes:
acquiring the current position coordinates of the vehicle;
acquiring a traffic light in front of the vehicle according to the current position coordinate of the vehicle and the position coordinate of the traffic light of the navigation route with the least number of the traffic lights;
acquiring the remaining time of a green light in a traffic light in front of the vehicle;
acquiring the distance between the vehicle and a traffic light in front of the vehicle;
and judging whether the residual time of a green light in a traffic light in front of the vehicle is less than 5 seconds, judging whether the distance is greater than 40 meters, and if the residual time of the green light is less than 5 seconds and the distance is greater than 40 meters, sending a message waiting for the next green light to the navigation terminal so that the navigation terminal receives and broadcasts the message waiting for the next green light.
The traffic light in front of the vehicle is obtained according to the current position coordinate of the vehicle and the position coordinate of the traffic light of the navigation route with the least number of the traffic lights, and the following two implementation modes are provided:
in a first implementation manner, in a navigation map, the vehicle is positioned according to the current position coordinates of the vehicle, the traffic lights of the navigation route with the minimum number of traffic lights are positioned according to the position coordinates of the traffic lights of the navigation route with the minimum number of traffic lights, the navigation direction of the navigation route is obtained, and the traffic lights in front of the vehicle are obtained according to the navigation direction of the navigation route.
In a second implementation manner, according to the current position coordinates of the vehicle and the position coordinates of the traffic lights of the navigation route with the least number of traffic lights, the distance between the vehicle and the traffic lights of the navigation route with the least number of traffic lights is generated, the distances between the vehicle and the traffic lights of the navigation route with the least number of traffic lights are sorted, and the traffic lights with the least distance and the traffic lights which are not passed by the vehicle are obtained as the traffic lights in front of the vehicle.
In the navigation process, the traffic lights which are passed by the vehicle can be found according to the current position coordinates and the historical driving track of the vehicle, and the traffic lights which are passed by the vehicle are removed from the traffic lights of the navigation route with the least number of the traffic lights, so that the traffic lights which are not passed can be obtained.
The beneficial effects are as follows: the situation that traffic violation is caused by deducting six minutes due to the fact that the rear vehicle cannot see a traffic signal lamp when a yellow lamp is turned up because a front large vehicle blocks the sight is avoided, and the traffic violation is reduced.
Preferably, in the method for sending a navigation route, the obtaining of the remaining time of the green light in the traffic light in front of the vehicle includes:
and adopting a wired or wireless communication mode to connect a traffic signal controller of a traffic light in front of the vehicle, and acquiring the residual time length of the green light in the traffic light in front of the vehicle uploaded by the traffic signal controller.
The network adopted by the wired communication mode is any one of an optical fiber network, an Ethernet consisting of twisted-pair wires and an Ethernet consisting of coaxial cables.
The wireless communication mode is a 4G communication mode or a 5G communication mode.
The communication module is connected with the traffic signal controller and used for uploading the remaining time of the green light in the traffic light in front of the vehicle.
Referring to fig. 2, fig. 2 is a block diagram of a transmitting device of a navigation route according to an embodiment of the present invention, where the transmitting device of the navigation route includes:
the planning module 21 is configured to receive a navigation request uploaded by a navigation terminal, and plan a navigation route corresponding to the navigation request according to a departure place and a destination in the navigation request;
the judging module 22 is used for judging whether the number of the navigation routes is more than or equal to 2;
a traffic light quantity obtaining module 23, configured to obtain the quantity of traffic lights of each navigation route if the quantity of the navigation routes is greater than or equal to 2;
the sorting module 24 is configured to sort the traffic light quantity of each navigation route according to the sequence of the traffic light quantity from large to small, and acquire the navigation route with the smallest traffic light quantity;
the summation module 25 is configured to obtain the kilometer number of each navigation route, sum the kilometer numbers of each navigation route, and obtain the total kilometer number of the navigation route;
an average kilometer reading generation module 26, configured to generate an average kilometer reading of the navigation route according to the total kilometer reading of the navigation route and the number of the navigation routes;
the ratio generation module 27 is configured to obtain the kilometer number of the navigation route with the minimum number of traffic lights, compare the kilometer number of the navigation route with the minimum number of traffic lights with the average kilometer number of the navigation route, and generate a ratio of the kilometer number of the navigation route with the minimum number of traffic lights with the average kilometer number of the navigation route;
and a navigation route sending module 28, configured to determine whether the ratio is within a preset ratio range, and if the ratio is within the preset ratio range, send the navigation route with the smallest number of traffic lights to the navigation terminal.
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.

Claims (9)

1. A method of transmitting a navigation route, comprising:
the method comprises the steps that a server receives a navigation request uploaded by a navigation terminal, and a navigation route corresponding to the navigation request is planned according to a departure place and a destination in the navigation request;
judging whether the number of the navigation routes is more than or equal to 2;
if the number of the navigation routes is more than or equal to 2, acquiring the number of traffic lights of each navigation route;
sequencing the traffic light quantity of each navigation route according to the sequence of the traffic light quantity from large to small, and acquiring the navigation route with the least traffic light quantity;
obtaining the kilometer number of each navigation route, and summing the kilometer numbers of each navigation route to obtain the total kilometer number of the navigation route;
generating an average kilometer number of the navigation route according to the total kilometer number of the navigation route and the number of the navigation routes;
obtaining the kilometer number of the navigation route with the least traffic lights, comparing the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route, and generating the ratio of the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route;
judging whether the ratio is in a preset ratio range, and if the ratio is in the preset ratio range, sending the navigation route with the least traffic lights to the navigation terminal;
the preset ratio ranges from 0.5 to 1.3;
judging whether the ratio is within a preset ratio range, and if so, sending the navigation route with the least traffic lights to the navigation terminal, specifically:
judging whether the ratio is in a preset ratio range, if so, judging whether a plurality of navigation routes with the minimum number of traffic lights exist, if so, sending the navigation routes with the minimum number of traffic lights to the navigation terminal, and if so, sequencing the ratio of the navigation routes with the minimum number of traffic lights to the average kilometer number of the navigation routes, acquiring the navigation routes with the minimum ratio and the minimum number of traffic lights, and sending the navigation routes with the minimum number of kilometers and the minimum number of traffic lights to the navigation terminal;
in a navigation map, positioning a vehicle according to the current position coordinates of the vehicle, positioning a traffic light of a navigation route with the minimum number of traffic lights according to the position coordinates of the traffic light of the navigation route with the minimum number of traffic lights, acquiring the navigation direction of the navigation route, and acquiring the traffic light in front of the vehicle according to the navigation direction of the navigation route;
in the navigation process, the traffic lights which are passed by the vehicle can be found according to the current position coordinates and the historical driving track of the vehicle, and the traffic lights which are passed by the vehicle are removed from the traffic lights of the navigation route with the least number of the traffic lights, so that the traffic lights which are not passed can be obtained.
2. The method for sending the navigation route according to claim 1, wherein if the number of the navigation routes is greater than or equal to 2, the number of traffic lights of each navigation route is obtained, specifically:
and if the number of the navigation routes is more than or equal to 2, respectively acquiring the number of the traffic lights of each road section in each navigation route, and adding the number of the traffic lights of each road section in each navigation route to acquire the number of the traffic lights of each navigation route.
3. The method of transmitting the navigation route according to claim 1, wherein after the determining whether the ratio is within a preset ratio range and if the ratio is within the preset ratio range, transmitting the navigation route with the least number of traffic lights to the navigation terminal, the method of transmitting the navigation route further comprises:
acquiring the current position coordinates of the vehicle;
acquiring a traffic light in front of the vehicle according to the current position coordinate of the vehicle and the position coordinate of the traffic light of the navigation route with the least number of the traffic lights;
acquiring the remaining time of a green light in a traffic light in front of the vehicle;
acquiring the distance between the vehicle and a traffic light in front of the vehicle;
judging whether the remaining time of the green light in the traffic light in front of the vehicle is less than 5 seconds or not, judging whether the distance is more than 40 meters or not,
and if the remaining duration of the green light is less than 5 seconds and the distance is more than 40 meters, sending a message of waiting for the next green light to the navigation terminal so that the navigation terminal receives and broadcasts the message of waiting for the next green light.
4. The method for sending the navigation route according to claim 3, wherein the obtaining of the remaining time of the green light in the traffic light in front of the vehicle is specifically:
and adopting a wired or wireless communication mode to connect a traffic signal controller of a traffic light in front of the vehicle, and acquiring the residual time length of the green light in the traffic light in front of the vehicle uploaded by the traffic signal controller.
5. A device for transmitting a navigation route, comprising:
the planning module is used for receiving a navigation request uploaded by a navigation terminal and planning a navigation route corresponding to the navigation request according to a departure place and a destination in the navigation request;
the judging module is used for judging whether the number of the navigation routes is more than or equal to 2;
the traffic light quantity acquisition module is used for acquiring the traffic light quantity of each navigation route if the quantity of the navigation routes is more than or equal to 2;
the sequencing module is used for sequencing the traffic light quantity of each navigation route according to the sequence of the traffic light quantity from large to small so as to obtain the navigation route with the minimum traffic light quantity;
the summation module is used for acquiring the kilometer number of each navigation route and summing the kilometer number of each navigation route to obtain the total kilometer number of the navigation route;
the average kilometer number generating module is used for generating the average kilometer number of the navigation route according to the total kilometer number of the navigation route and the number of the navigation routes;
the ratio generation module is used for acquiring the kilometer number of the navigation route with the least traffic lights, comparing the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route, and generating the ratio of the kilometer number of the navigation route with the least traffic lights with the average kilometer number of the navigation route;
the navigation route sending module is used for judging whether the ratio is within a preset ratio range, and if the ratio is within the preset ratio range, sending the navigation route with the least traffic lights to the navigation terminal;
the preset ratio ranges from 0.5 to 1.3;
judging whether the ratio is within a preset ratio range, and if so, sending the navigation route with the least traffic lights to the navigation terminal, specifically:
judging whether the ratio is in a preset ratio range, if so, judging whether a plurality of navigation routes with the minimum number of traffic lights exist, if so, sending the navigation routes with the minimum number of traffic lights to the navigation terminal, and if so, sequencing the ratio of the navigation routes with the minimum number of traffic lights to the average kilometer number of the navigation routes, acquiring the navigation routes with the minimum ratio and the minimum number of traffic lights, and sending the navigation routes with the minimum number of kilometers and the minimum number of traffic lights to the navigation terminal;
in a navigation map, positioning a vehicle according to the current position coordinates of the vehicle, positioning a traffic light of a navigation route with the minimum number of traffic lights according to the position coordinates of the traffic light of the navigation route with the minimum number of traffic lights, acquiring the navigation direction of the navigation route, and acquiring the traffic light in front of the vehicle according to the navigation direction of the navigation route;
in the navigation process, the traffic lights which are passed by the vehicle can be found according to the current position coordinates and the historical driving track of the vehicle, and the traffic lights which are passed by the vehicle are removed from the traffic lights of the navigation route with the least number of the traffic lights, so that the traffic lights which are not passed can be obtained.
6. The transmission apparatus of the navigation route according to claim 5,
the traffic light quantity obtaining module is specifically configured to obtain the traffic light quantity of each road segment in each navigation route respectively if the number of the navigation routes is greater than or equal to 2, and add the traffic light quantity of each road segment in each navigation route to obtain the traffic light quantity of each navigation route.
7. The transmission apparatus of the navigation route according to claim 5, further comprising:
the current position coordinate acquisition module is used for acquiring the current position coordinate of the vehicle;
the first acquisition module is used for acquiring traffic lights in front of the vehicle according to the current position coordinates of the vehicle and the position coordinates of the traffic lights of the navigation route with the least number of the traffic lights;
the second acquisition module is used for acquiring the residual time of a green light in a traffic light in front of the vehicle;
the third acquisition module is used for acquiring the distance between the vehicle and a traffic light in front of the vehicle;
a judging module for judging whether the remaining time of the green light in the traffic light in front of the vehicle is less than 5 seconds or not and judging whether the distance is more than 40 meters or not,
and the message sending module is used for sending a message of waiting for the next green light to the navigation terminal if the remaining duration of the green light is less than 5 seconds and the distance is more than 40 meters, so that the navigation terminal receives and broadcasts the message of waiting for the next green light.
8. The device for sending the navigation route according to claim 7, wherein the second obtaining module is specifically configured to connect a traffic signal controller of a traffic light in front of the vehicle in a wired or wireless communication mode, and obtain the remaining duration of the green light in the traffic light in front of the vehicle uploaded by the traffic signal controller.
9. An electronic device, comprising: a processor and a memory; the memory is configured to store a computer program, and the processor is configured to execute the computer program stored by the memory to cause the electronic device to perform the method of transmitting a navigation route according to any one of claims 1 to 4.
CN201910134875.3A 2019-02-24 2019-02-24 Method and device for sending navigation route and electronic equipment Active CN109813330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910134875.3A CN109813330B (en) 2019-02-24 2019-02-24 Method and device for sending navigation route and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910134875.3A CN109813330B (en) 2019-02-24 2019-02-24 Method and device for sending navigation route and electronic equipment

Publications (2)

Publication Number Publication Date
CN109813330A CN109813330A (en) 2019-05-28
CN109813330B true CN109813330B (en) 2021-06-08

Family

ID=66607247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910134875.3A Active CN109813330B (en) 2019-02-24 2019-02-24 Method and device for sending navigation route and electronic equipment

Country Status (1)

Country Link
CN (1) CN109813330B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114202942B (en) * 2022-01-12 2023-09-01 北京京东乾石科技有限公司 Traffic light related module control method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10313057A1 (en) * 2002-03-25 2003-11-06 Aisin Aw Co Motor vehicle navigation system has an information processing unit and computer program that serves to continuously up route node points as the route map is displaced
JP5256923B2 (en) * 2008-08-11 2013-08-07 住友電気工業株式会社 Signal queue information generation apparatus, computer program, and signal queue information generation method
WO2011114582A1 (en) * 2010-03-17 2011-09-22 株式会社トヨタマップマスター Intersection-stopping-rate specifying apparatus, navigation apparatus, computer program for specifying intersection-stopping-rate, computer program for conducting navigation
CN103854505B (en) * 2013-12-18 2016-08-17 招商局重庆交通科研设计院有限公司 Vehicle real time navigation method and device
CN105989720A (en) * 2015-02-09 2016-10-05 高德软件有限公司 Method and device for displaying information of signal lamp
CN107238391A (en) * 2016-03-28 2017-10-10 高德软件有限公司 A kind of recommendation method and device of bus trip route
CN106092116B (en) * 2016-06-30 2019-07-26 维沃移动通信有限公司 A kind of generation of optimal travel route, air navigation aid and device based on navigation terminal
CN106767866B (en) * 2016-12-02 2021-02-12 百度在线网络技术(北京)有限公司 Method and device for local path planning
CN106969781A (en) * 2017-03-29 2017-07-21 范志国 A kind of road surface navigation system
CN107084733B (en) * 2017-04-10 2019-02-05 广东数相智能科技有限公司 A kind of method, apparatus and system based on unpiloted path planning

Also Published As

Publication number Publication date
CN109813330A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN110264720B (en) Driving mode prompting method, device, equipment and storage medium
CN110909096B (en) Method and device for determining recommended boarding point, storage medium and electronic equipment
US9689692B2 (en) Charging facility information providing system and electrically driven vehicle
CN104931063B (en) Path planning method
EP1582843A1 (en) Traffic information providing system
KR102007181B1 (en) Method for transmitting route data for traffic telematics
CN102607568A (en) Method and apparatus for charging station guidance
EP4184120A1 (en) Path determination method and apparatus, and device and medium
CN109990793B (en) Method, apparatus and computer readable storage medium for determining yaw of vehicle
CN107564328B (en) Parking space determination method and device for vehicle
CN109189054A (en) The method and apparatus for executing route verifying for controlling automatic driving car
JP2014052377A (en) Communication type navigation system of searching for route by sensing change in traffic amount
CN109813330B (en) Method and device for sending navigation route and electronic equipment
CN111060120A (en) Navigation method, navigation device and vehicle
CN103871244B (en) Information processing method and system and onboard system
CN108648440B (en) Vehicle dispatching platform based on internet of vehicles monitoring
CN111966111B (en) Automatic power distribution based mobile charging equipment formation control method, system and device
CN105466442A (en) Navigation method for dim starting point preset route
CN110189518B (en) Method, device, computer equipment and storage medium for predicting bus arrival time
JP2008241663A (en) Field intensity investigation system and method
CN115862360A (en) Bus running speed management method and device, electronic equipment and storage medium
KR100454840B1 (en) Bus information system and method for operating bus information using the same
CN114817770A (en) Intelligent guide method and system based on advertisement display
CN105300393A (en) System and method for acquiring optimal driving path
JP2009276193A (en) Navigation system, route search server and route guidance method, and terminal device

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

Effective date of registration: 20210525

Address after: 518101 4th floor, building 2, Zhipeng Industrial Park, hepingfuyuan 1st Road, Fuyong street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN CANJING ELECTRONICS Co.,Ltd.

Address before: 518057 No.9, Keke Road, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: He Shiquan

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant