Emergency route broadcasting method and device, electronic equipment and storage medium
By receiving emergency requests and planning target emergency routes, the problem that the optimal path in the prior art cannot avoid traffic congestion, and the rapid arrival of emergency vehicles under real-time road conditions is achieved.
Patent Information
- Application Number
- CN202411722666.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-04-11
AI Technical Summary
The optimal path planned in the prior art cannot meet real-time changing road conditions, resulting in the optimal path being unable to avoid traffic congestion, especially in the case of rescue, emergency vehicles such as ambulances and fire trucks are difficult to quickly reach their destinations.
Determine the target urgency by receiving the emergency request input from the client and plan the target emergency route based on the current location, emergency request and target urgency. At the same time, emergency route broadcast information is generated to notify other users of avoidance to ensure the passage of emergency routes.
It realizes rapid planning of emergency routes under real-time changing road conditions, ensuring that emergency vehicles can quickly reach their destinations, while avoiding road congestion and improving rescue efficiency.
Smart Images

Figure CN119814204A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent transportation technology, and in particular to an emergency route broadcasting method, device, electronic equipment and storage medium. Background Art
[0002] As the number of cars continues to increase, traffic congestion has become a common phenomenon in road traffic. During peak hours in the morning and evening, many vehicles pour in from various branch roads, making the entire road blocked. The green channel is also occupied by many vehicles, causing ambulances and fire trucks to be stuck on the road and unable to quickly reach the destination for rescue. According to statistics, there are hundreds of examples of missing the golden rescue period due to road congestion every year.
[0003] In the prior art, in order to avoid congestion, the destination is generally input into the navigation software in advance to determine the multiple routes planned by the navigation software. The user can choose the optimal route for navigation according to the congestion in each route, so as to quickly reach the destination for rescue. However, the navigation software is one-way, and the road conditions change in real time. The planning of the optimal route cannot avoid traffic congestion. Therefore, how to plan emergency routes and overcome the real-time changing road conditions is a problem that needs to be solved urgently. Summary of the invention
[0004] The present invention provides an emergency route broadcasting method, device, electronic device and storage medium, which are used to solve the problem that the optimal route planned in the prior art cannot meet the real-time changing road conditions, resulting in the optimal route being unable to avoid traffic congestion.
[0005] The present invention provides an emergency route broadcasting method, comprising: receiving a first emergency request respectively input by at least one first client; Determining, based on each of the first emergency requests, a target urgency level corresponding to each of the first clients; Determine, based on the current location corresponding to each of the first clients, each of the first emergency requests and each of the target urgency levels, a target emergency route corresponding to each of the first clients and emergency route broadcast information corresponding to each of the target emergency routes; the emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid the route; Each of the target emergency routes is sent to each of the first clients, and each of the emergency route broadcast information is broadcast to other clients corresponding to the other users.
[0006] According to the emergency route broadcasting method provided by the present invention, the first emergency request includes the user's occupation type, destination and user's urgency; The determining, based on each of the first emergency requests, a target urgency level corresponding to each of the first clients includes: For each of the first emergency requests, when at least one of the user occupation type and the destination satisfies a preset condition, the user urgency is determined as the target urgency; when neither the user occupation type nor the destination satisfies the preset condition, the absolute value of the difference between the user urgency and a first preset threshold is determined as the target urgency; The preset condition includes at least one of the following: The user's occupation type belongs to a preset occupation type; The category of the destination belongs to the preset emergency category; The user occupation type belongs to the preset occupation type, and the category of the destination belongs to the preset emergency category.
[0007] According to the emergency route broadcasting method provided by the present invention, the target emergency route includes a first target emergency route and a second target emergency route; The determining, based on the current location corresponding to each of the first clients, each of the first emergency requests, and each of the target urgency levels, of the target emergency routes corresponding to each of the first clients includes: When the number of requests of at least one first emergency request is greater than 1 and there is at least one destination distance less than or equal to a second preset threshold, a first client corresponding to a destination distance less than or equal to the second preset threshold is determined as a second client; other first clients except the second client are determined as third clients; the destination distance is the distance between any two destinations; Determine, based on the current location, destination and target urgency corresponding to each of the second clients, a first target emergency route corresponding to each of the second clients, where the first target emergency routes have the same route; Based on the current location, destination and target urgency level corresponding to each of the third clients, the second target emergency routes corresponding to each of the third clients are determined respectively.
[0008] According to the emergency route broadcasting method provided by the present invention, the first target emergency route includes a branch emergency route and a main emergency route; The determining, based on the current location, destination, and target urgency level corresponding to each of the second clients, the first target emergency route corresponding to each of the second clients includes: Determine a central node from each of the second clients; Determine a branch road emergency route from the current location corresponding to each of the second clients to the central node, and a main road emergency route from the central node to the destination corresponding to the central node.
[0009] According to the emergency route broadcasting method provided by the present invention, the determining of the central node from each of the second clients includes: Traversing each of the second clients, determining the distance between the second client and other second clients, and the distances and values of all the distances corresponding to the second clients; The second client corresponding to the minimum distance and value is determined as the central node.
[0010] According to the emergency route broadcasting method provided by the present invention, the target emergency route corresponding to each first client is determined based on the current location corresponding to each first client, each first emergency request and each target urgency, including: When the number of requests of at least one first emergency request is greater than or equal to 1, and the distances between each destination are greater than the second preset threshold, the target emergency routes corresponding to each first client are determined respectively based on the current location, destination and target urgency corresponding to each first client.
[0011] According to the emergency route broadcasting method provided by the present invention, the method further includes: Each of the target emergency routes is urgently marked, and a navigation map is updated based on the marked target emergency routes.
[0012] The present invention also provides an emergency route broadcasting device, comprising: A receiving module, configured to receive a first emergency request inputted by at least one first client; A first determination module, configured to determine a target urgency level corresponding to each of the first clients based on each of the first emergency requests; A second determination module is used to determine the target emergency route corresponding to each of the first clients, and the emergency route broadcast information corresponding to each of the target emergency routes based on the current location corresponding to each of the first clients, each of the first emergency requests and each of the target urgency levels; the emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid; The broadcast module is used to send each of the target emergency routes to each of the first clients, and broadcast each of the emergency route broadcast information to other clients corresponding to the other users.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned emergency route broadcasting methods when executing the computer program.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the emergency route broadcasting method as described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the emergency route broadcasting method as described above is implemented.
[0016] The emergency route broadcasting method, device, electronic device and storage medium provided by the present invention, after receiving the first emergency request input by at least one first client, determine the target urgency corresponding to each first client according to the first emergency request corresponding to each first client, and plan the target emergency route corresponding to each first client according to the target urgency, the current location of each first client and each first emergency request, and generate emergency route broadcasting information corresponding to the target emergency route. After sending each target emergency route to each first client, route navigation is performed for the user of each first client through each target emergency route to quickly reach the destination for rescue. At the same time, each emergency route broadcasting information is broadcast to other clients associated with each target emergency route to notify other users corresponding to other clients to urgently avoid the target emergency route, avoid other users driving into each target emergency route and causing traffic congestion on each target emergency route, and ensure that the user of each first client can quickly reach the destination for rescue through each target emergency route. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flowchart of the emergency route broadcasting method provided by an embodiment of the present invention.
[0019] Figure 2 It is a structural diagram of an emergency route broadcasting device provided in an embodiment of the present invention.
[0020] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] In view of the problem that the optimal path planned in the prior art cannot meet the real-time changing road conditions, resulting in the optimal path being unable to avoid traffic congestion, an embodiment of the present invention provides an emergency route broadcasting method. Figure 1 FIG. 1 is a flow chart of an emergency route broadcasting method provided by an embodiment of the present invention. Figure 1 As shown, the emergency route broadcasting method includes the following steps 110 to 140.
[0023] Step 110: Receive a first emergency request inputted by at least one first client.
[0024] Specifically, each first client may be a map navigation software, a third-party taxi-hailing software, or a smart device installed with the map navigation software and / or the third-party taxi-hailing software. For each first client, after the user inputs the first emergency request in the first client, the electronic device may receive the first emergency request for subsequent planning of the target emergency route.
[0025] The first emergency request may include the user's occupation type, destination, and user urgency. The user's occupation type is used to characterize the user's work field or industry. For example, the user's occupation type may include: teachers, doctors, nurses, firefighters, and lawyers. The destination is the specific address that the user is going to arrive at. The categories of the destination may include: communities, hospitals, shopping malls, and schools. The user's urgency is used to characterize the user's urgency in seeking help or solving problems. The level corresponding to the user's urgency can further reflect the user's emotions and time sensitivity. For example, the user's urgency is divided into levels 1 to 10. The higher the user's urgency, the more urgent it is. Conversely, the lower the user's urgency, the less urgent it is.
[0026] Step 120: Determine the target urgency level corresponding to each first client based on each first emergency request.
[0027] Specifically, after receiving the first emergency request input by each first client, since the user's urgency in the first emergency request input by the user can reflect the user's emotions, the user's urgency is relatively subjective and less credible. Therefore, in order to prevent users from abusing the emergency route broadcasting method provided in the embodiment of the present invention due to emotional reasons, it is possible to determine whether each user's urgency is credible based on each first emergency request. If it is credible, the urgency of each user is determined as the target urgency. If it is not credible, the urgency of each user is reduced to obtain the corresponding target urgency. The target urgency is used to determine the influencing factors when planning the target emergency route. The influencing factors may include: route selection, route traffic conditions, and travel time, etc., which are not limited in the embodiment of the present invention.
[0028] Further, based on each first emergency request, determining a target urgency level corresponding to each first client includes: For each first emergency request, when at least one of the user's occupation type and the destination meets the preset condition, the user's urgency is determined as the target urgency; when neither the user's occupation type nor the destination meets the preset condition, the absolute value of the difference between the user's urgency and the first preset threshold is determined as the target urgency; The preset conditions include at least one of the following: The user's occupation type belongs to the preset occupation type; The destination is classified as a preset emergency category; The user's occupation type belongs to the preset occupation type, and the category of the destination belongs to the preset emergency category.
[0029] Specifically, the preset occupation type is a set including at least one specific occupation type, for example, the preset occupation type may include doctors, nurses and firefighters, etc. The preset emergency category is a set including at least one specific category of destination, for example, the preset emergency category may include hospitals. For each first emergency request, it is determined whether the user occupation type in the first emergency request belongs to the preset occupation type, or it is determined whether the category of the destination belongs to the preset emergency category, or it is determined whether the user occupation type in the first emergency request belongs to the preset occupation type and whether the category of the destination belongs to the preset emergency category. If at least one of the above three judgment results is yes, it is determined that at least one of the user occupation type and the destination meets the preset condition, and at this time, it indicates that the user's urgency is relatively credible. If each of the above three judgment results is no, it is determined that any one of the user occupation type and the destination does not meet the preset condition, and at this time, it indicates that the user is affected by emotions, so that the user's urgency input by the user is not credible. At this time, the user's urgency can be reduced, that is, the difference between the user's urgency and the first preset threshold is calculated, and the absolute value of the difference is determined as the more credible target urgency.
[0030] Optionally, the first preset threshold value may be set based on experience, for example, the first preset threshold value may be set to 1 or 2, etc.
[0031] For example, taking the preset occupation types including doctors, nurses and firefighters, the preset emergency categories including hospitals, and the first preset threshold value being 1 as an example, if in the received first emergency request, the user's occupation type is a firefighter, the destination is community A, and the user's urgency is level 10, at this time, since the user's occupation type belongs to the preset emergency type, at this time, it can be determined that the user's urgency is relatively credible, and the target urgency can be determined as level 10, in preparation for the subsequent planning of the target emergency route corresponding to the first emergency request. If in the received first emergency request, the user's occupation type is a doctor, the destination is hospital B, and the user's urgency is level 10, at this time, since the user's occupation type belongs to the preset emergency type, and the category of the destination belongs to the preset emergency category, at this time, it can be determined that the user's urgency is relatively credible, and the target urgency can be determined as level 10, in preparation for the subsequent planning of the target emergency route corresponding to the first emergency request. If in the first emergency request received, the user's occupation type is teacher, the destination is community C, and the user's urgency level is level 9, then, since the user's occupation type does not belong to the preset emergency type, and the category of the destination does not belong to the preset emergency category, it can be determined that the user's urgency level is relatively unreliable due to the user's emotions. At this time, the user's urgency level can be subtracted from the first preset threshold to obtain a target urgency level of 8, in preparation for subsequent planning of the target emergency route corresponding to the first emergency request.
[0032] Step 130: Based on the current location of each first client, each first emergency request and each target urgency level, determine the target emergency route corresponding to each first client and the emergency route broadcast information corresponding to each target emergency route; the emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid it.
[0033] Specifically, after determining a more credible target urgency, for each first client, the starting point of the target emergency route corresponding to the first client can be determined according to the current location corresponding to the first client, and the end point of the target emergency route can be determined according to the destination in the first emergency request. According to the target urgency, the influencing factors when planning the target emergency route are determined, and then the target emergency route is planned. After determining the target emergency route, the emergency route broadcast information corresponding to the target emergency route can be generated according to the key information related to the target emergency route. The key information related to the target emergency route may include: the starting point and end point corresponding to the target emergency route, at least one road section involved, the expected arrival time and travel time corresponding to each road section, etc., as well as the user's occupation type and destination category in the first emergency request, etc. For example, the emergency route broadcast information can be: "A doctor traveling with an ambulance urgently requests to go from Community D to Hospital B. The planned target emergency route includes Section E, Section F and Section H. It is expected to arrive at Section E at T1, Section F at T2, and Section H at T3. The passing time of Section E is t1, the passing time of Section F is t2, and the passing time of Section H is t3. Please avoid the above sections to ensure the rapid passage of the ambulance. Thank you for your cooperation and wish you a safe journey!"
[0034] Further, the target emergency route includes a first target emergency route and a second target emergency route; Determining a target emergency route corresponding to each first client based on a current location corresponding to each first client, each first emergency request, and each target emergency degree, includes: When the number of requests of at least one first emergency request is greater than 1 and there is at least one destination distance less than or equal to the second preset threshold, the first client corresponding to the destination distance less than or equal to the second preset threshold is determined as the second client; the other first clients except the second client are determined as the third client; the destination distance is the distance between any two destinations; Determine, based on the current location, destination and target urgency of each second client, a first target emergency route corresponding to each second client, wherein the first target emergency routes have the same route; Based on the current location, destination and target urgency level corresponding to each third client, the second target emergency route corresponding to each third client is determined respectively.
[0035] Specifically, after determining the target urgency corresponding to each first client, if the number of requests of the received first emergency request is greater than 1, in order to avoid affecting the traffic conditions after generating multiple target emergency routes, thereby seriously affecting the passage of other users. In an embodiment of the present invention, after receiving multiple first emergency requests, it is determined whether the destinations corresponding to each first emergency request are close, that is, the distance between any two destination points is calculated to obtain the destination distance between any two first clients, and the destination distance is compared with the second preset threshold. If the destination distance is less than the second preset threshold, the two first clients corresponding to the destination distance are determined as second clients. Repeat the above steps to determine the second client with a similar destination from the first client that sends the first emergency request. If there are other first clients in the first client in addition to the second client, the other first clients are determined as third clients with destinations far away, that is, the first client that sends the first emergency request is determined as the second client, or the first client that sends the first emergency request is divided into at least two second clients and at least one third client.
[0036] After determining the second client, or determining the second client and the third client, since the destinations of the second clients are relatively close, the first target emergency routes corresponding to the first clients can be planned according to the current location, destination and target urgency of the second clients. Since the destinations corresponding to the second clients are similar, some of the routes with the destination as the end point in the multiple first target emergency routes are the same, and the users corresponding to the second clients can share some of the same routes to avoid excessive interference with the traffic routes, thereby affecting the normal passage of other users. In addition, since the destinations of the third clients are relatively far apart, the second target emergency routes corresponding to the third clients can be independently generated according to the current location, destination and target urgency of the third clients.
[0037] Further, the first target emergency route includes a branch road emergency route and a main road emergency route; Determining a first target emergency route corresponding to each second client based on a current location, a destination, and a target urgency level corresponding to each second client includes: Determine a central node from each second client; Determine the branch emergency route from the current location corresponding to each second client to the central node, and the main emergency route from the central node to the destination corresponding to the central node.
[0038] Specifically, for each second client with a similar destination, the central node can be determined from each second client, and then the central node is used as the starting point, and the destination corresponding to the central node is used as the end point, and then the main road emergency route between the central node and the destination corresponding to the central node is determined according to the target urgency, and the main road emergency route is the same route in the first target emergency routes corresponding to multiple second clients. At the same time, the destination corresponding to the central node is used as the end point, and the current location corresponding to each second client is used as the starting point, and the branch road emergency routes between each current location and the central node are determined respectively, so that each user can first drive along the branch road emergency route to the central node, and then drive along the same main road emergency route to the destination.
[0039] Further, determining the central node from each second client includes: Traversing each second client, determining the distance between the second client and other second clients, and the distances and values of all the distances corresponding to the second clients; The second client corresponding to the minimum distance and value is determined as the central node.
[0040] Specifically, after determining each second client, traverse each second client, calculate the distance between the current second client and the other second clients based on the current position of the current second client and the current positions of the other second clients, and then calculate the sum of all distances to obtain the distance and value corresponding to the current second client. After traversing all second clients, multiple distances and values can be obtained. All distances and values are sorted in order from small to large, and the second client with the highest sorting is determined as the central node, that is, the second client corresponding to the smallest distance and value is determined as the central node, and the distance from the central node to each other second client is the shortest.
[0041] Further, based on the current location corresponding to each first client, each first emergency request and each target emergency degree, determining the target emergency route corresponding to each first client includes: When the request quantity of at least one first emergency request is greater than or equal to 1 and the distances between each destination are greater than a second preset threshold, the target emergency routes corresponding to each first client are determined based on the current location, destination and target urgency corresponding to each first client.
[0042] Specifically, if the number of requests received for the first emergency request is 1, or the number of requests is greater than 1, but the destinations of each first client are far apart, that is, when the destination distances calculated according to the destinations of each first client are greater than the second preset threshold, the target emergency routes corresponding to each first client can be determined separately according to the current position, destination and target urgency of each first client, so as to ensure that the users corresponding to each first client can quickly travel to the destination along their respective target emergency routes.
[0043] It should be noted that the second preset threshold can be set based on experience, and the second preset threshold is a smaller value, which is used to ensure that the destinations of the second clients are closer after comparison with the destination distance, for example, the second preset threshold can be 30 meters, 50 meters, 80 meters, 100 meters, etc. The embodiment of the present invention is not limited to this.
[0044] Step 140: Send each target emergency route to each first client, and broadcast each emergency route broadcast information to other clients corresponding to other users.
[0045] Specifically, after determining the emergency route broadcast information corresponding to each target emergency route, other users that partially overlap or completely overlap with each target emergency route can be determined. Afterwards, each target emergency route can be sent to the corresponding first client, so that each user can quickly drive to the destination along the corresponding target emergency route. At the same time, the emergency route broadcast information is broadcast to other clients to notify other users to cooperate in emergency avoidance, ensuring that each user can quickly pass along the corresponding target emergency route.
[0046] Furthermore, the method further comprises: Each target emergency route is urgently marked, and the navigation map is updated based on the marked target emergency routes.
[0047] Specifically, while sending the target emergency route and broadcasting the emergency route broadcast information, the road sections involved in each target emergency route can also be marked as emergency and updated in the navigation map to attract the attention of other users. For example, a conspicuous mark is set on the route corresponding to each road section, and the conspicuous mark can be displayed in a highlighted or flashing manner.
[0048] Optionally, if the target emergency route is an independent second target emergency route, after the user arrives at the destination, the display of the eye-catching mark in the second target emergency route can be automatically removed, or the user actively removes the display of the eye-catching mark, or the user drives past the section in the second target emergency route. The display of the eye-catching mark corresponding to the section can be removed, that is, the display of the eye-catching mark corresponding to each section is removed in sequence according to the driving order of the user in the second target emergency route. If the target emergency route is the first target emergency route with the same main road emergency route, the eye-catching mark in each branch emergency route can be automatically removed after the user arrives at the destination, or the user actively removes it, or it is removed in sequence according to the driving order of the user in the branch emergency route. The eye-catching mark in the main road emergency route needs to be automatically removed after the last user arrives at the destination, or the last user actively removes it, or it is removed in sequence according to the driving order of the last user in the main road emergency route.
[0049] The emergency route broadcasting method provided by the present invention, after receiving the first emergency request input by at least one first client respectively, determines the target urgency corresponding to each first client according to the first emergency request corresponding to each first client, and plans the target emergency route corresponding to each first client according to the target urgency and the current location of each first client, and generates emergency route broadcasting information corresponding to the target emergency route. After sending each target emergency route to each first client, route navigation is performed for the user of each first client through each target emergency route to quickly reach the destination for rescue. At the same time, each emergency route broadcasting information is broadcast to other clients associated with each target emergency route to notify other users corresponding to other clients to urgently avoid the target emergency route, so as to avoid other users driving into each target emergency route and causing traffic congestion on each target emergency route, thereby ensuring that the user of each first client can quickly reach the destination for rescue through each target emergency route.
[0050] The emergency route broadcasting device provided by the present invention is described below. The emergency route broadcasting device described below and the emergency route broadcasting method described above can be referred to each other.
[0051] The embodiment of the present invention also provides an emergency route broadcasting device, Figure 2 is a schematic diagram of the structure of an emergency route broadcasting device provided by an embodiment of the present invention. Figure 2 As shown, the emergency route broadcasting device 200 includes: a receiving module 210 , a first determining module 220 , a second determining module 230 and a broadcasting module 240 .
[0052] The receiving module 210 is configured to receive a first emergency request inputted by at least one first client.
[0053] The first determination module 220 is configured to determine a target urgency level corresponding to each first client based on each first emergency request.
[0054] The second determination module 230 is used to determine the target emergency route corresponding to each first client and the emergency route broadcast information corresponding to each target emergency route based on the current location corresponding to each first client and the urgency of each target; the emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid it.
[0055] The broadcast module 240 is used to send each target emergency route to each first client, and broadcast each emergency route broadcast information to other clients corresponding to other users.
[0056] The emergency route broadcasting device provided by the present invention, after receiving the first emergency request input by at least one first client, determines the target urgency corresponding to each first client according to the first emergency request corresponding to each first client, and plans the target emergency route corresponding to each first client according to the target urgency and the current location of each first client, and generates emergency route broadcasting information corresponding to the target emergency route. After sending each target emergency route to each first client, the user of each first client is navigated through each target emergency route to quickly reach the destination for rescue. At the same time, each emergency route broadcasting information is broadcast to other clients associated with each target emergency route to notify other users corresponding to other clients to urgently avoid the target emergency route, so as to avoid other users driving into each target emergency route and causing traffic congestion on each target emergency route, thereby ensuring that the user of each first client can quickly reach the destination for rescue through each target emergency route.
[0057] Optionally, the first emergency request includes user occupation type, destination and user urgency.
[0058] Optionally, the first determining module 220 is specifically configured to: For each of the first emergency requests, when at least one of the user occupation type and the destination satisfies a preset condition, the user urgency is determined as the target urgency; when neither the user occupation type nor the destination satisfies the preset condition, the absolute value of the difference between the user urgency and a first preset threshold is determined as the target urgency; The preset condition includes at least one of the following: The user's occupation type belongs to a preset occupation type; The category of the destination belongs to the preset emergency category; The user occupation type belongs to the preset occupation type, and the category of the destination belongs to the preset emergency category.
[0059] Optionally, the target emergency route includes a first target emergency route and a second target emergency route.
[0060] Optionally, the second determining module 230 is specifically configured to: When the number of requests of at least one first emergency request is greater than 1 and there is at least one destination distance less than or equal to a second preset threshold, a first client corresponding to a destination distance less than or equal to the second preset threshold is determined as a second client; other first clients except the second client are determined as third clients; the destination distance is the distance between any two destinations; Determine, based on the current location, destination and target urgency corresponding to each of the second clients, a first target emergency route corresponding to each of the second clients, where the first target emergency routes have the same route; Based on the current location, destination and target urgency level corresponding to each of the third clients, the second target emergency routes corresponding to each of the third clients are determined respectively.
[0061] Optionally, the first target emergency route includes a branch road emergency route and a main road emergency route.
[0062] Optionally, the second determining module 230 is specifically configured to: Determine a central node from each of the second clients; Determine a branch road emergency route from the current location corresponding to each of the second clients to the central node, and a main road emergency route from the central node to the destination corresponding to the central node.
[0063] Optionally, the second determining module 230 is specifically configured to: Traversing each of the second clients, determining the distance between the second client and other second clients, and the distances and values of all the distances corresponding to the second clients; The second client corresponding to the minimum distance and value is determined as the central node.
[0064] Optionally, the second determining module 230 is specifically configured to: When the number of requests of at least one first emergency request is greater than or equal to 1, and the distances between each destination are greater than the second preset threshold, the target emergency routes corresponding to each first client are determined respectively based on the current location, destination and target urgency corresponding to each first client.
[0065] Optionally, the emergency route broadcasting device 200 further includes a marking module, which is specifically used to: Each of the target emergency routes is urgently marked, and a navigation map is updated based on the marked target emergency routes.
[0066] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the emergency route broadcast method, which includes: receiving a first emergency request respectively input by at least one first client; Determining, based on each of the first emergency requests, a target urgency level corresponding to each of the first clients; Determine, based on the current location corresponding to each of the first clients, each of the first emergency requests and each of the target urgency levels, a target emergency route corresponding to each of the first clients and emergency route broadcast information corresponding to each of the target emergency routes; the emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid the route; Each of the target emergency routes is sent to each of the first clients, and each of the emergency route broadcast information is broadcast to other clients corresponding to the other users.
[0067] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0068] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the emergency route broadcast method provided by the above methods, the method includes: receiving a first emergency request respectively input by at least one first client; Determining, based on each of the first emergency requests, a target urgency level corresponding to each of the first clients; Determine, based on the current location corresponding to each of the first clients, each of the first emergency requests and each of the target urgency levels, a target emergency route corresponding to each of the first clients and emergency route broadcast information corresponding to each of the target emergency routes; the emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid the route; Each of the target emergency routes is sent to each of the first clients, and each of the emergency route broadcast information is broadcast to other clients corresponding to the other users.
[0069] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the emergency route broadcasting method provided by the above methods is implemented, and the method includes: receiving a first emergency request respectively input by at least one first client; Determining, based on each of the first emergency requests, a target urgency level corresponding to each of the first clients; Determine, based on the current location corresponding to each of the first clients, each of the first emergency requests and each of the target urgency levels, a target emergency route corresponding to each of the first clients and emergency route broadcast information corresponding to each of the target emergency routes; the emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid the route; Each of the target emergency routes is sent to each of the first clients, and each of the emergency route broadcast information is broadcast to other clients corresponding to the other users.
[0070] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0071] Through the description of the above implementation modes, those skilled in the art can clearly understand that each implementation mode can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An emergency route broadcasting method, characterized in that: include: receiving a first emergency request respectively input by at least one first client; Determining, based on each of the first emergency requests, a target urgency level corresponding to each of the first clients; Determine, based on the current location corresponding to each of the first clients, each of the first emergency requests, and each of the target urgency levels, a target emergency route corresponding to each of the first clients, and emergency route broadcast information corresponding to each of the target emergency routes; The emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid; Each of the target emergency routes is sent to each of the first clients, and each of the emergency route broadcast information is broadcast to other clients corresponding to the other users.
2. The emergency route broadcasting method according to claim 1, characterized in that: The first emergency request includes the user's occupation type, destination and user urgency; The determining, based on each of the first emergency requests, a target urgency level corresponding to each of the first clients includes: For each of the first emergency requests, when at least one of the user occupation type and the destination satisfies a preset condition, the user urgency is determined as the target urgency; when neither the user occupation type nor the destination satisfies the preset condition, the absolute value of the difference between the user urgency and a first preset threshold is determined as the target urgency; The preset condition includes at least one of the following: The user's occupation type belongs to a preset occupation type; The category of the destination belongs to the preset emergency category; The user occupation type belongs to the preset occupation type, and the category of the destination belongs to the preset emergency category.
3. The emergency route broadcasting method according to claim 2, characterized in that: The target emergency route includes a first target emergency route and a second target emergency route; The determining, based on the current location corresponding to each of the first clients, each of the first emergency requests, and each of the target urgency levels, of the target emergency routes corresponding to each of the first clients includes: When the number of requests of at least one first emergency request is greater than 1 and there is at least one destination distance less than or equal to a second preset threshold, a first client corresponding to a destination distance less than or equal to the second preset threshold is determined as a second client; other first clients except the second client are determined as third clients; the destination distance is the distance between any two destinations; Determine, based on the current location, destination and target urgency corresponding to each of the second clients, a first target emergency route corresponding to each of the second clients, where the first target emergency routes have the same route; Based on the current location, destination and target urgency level corresponding to each of the third clients, the second target emergency routes corresponding to each of the third clients are determined respectively.
4. The emergency route broadcasting method according to claim 3, characterized in that: The first target emergency route includes a branch road emergency route and a main road emergency route; The determining, based on the current location, destination, and target urgency level corresponding to each of the second clients, the first target emergency route corresponding to each of the second clients includes: Determine a central node from each of the second clients; Determine a branch road emergency route from the current location corresponding to each of the second clients to the central node, and a main road emergency route from the central node to the destination corresponding to the central node.
5. The emergency route broadcasting method according to claim 4, characterized in that: The determining of the central node from each of the second clients includes: Traversing each of the second clients, determining the distance between the second client and other second clients, and the distances and values of all the distances corresponding to the second clients; The second client corresponding to the minimum distance and value is determined as the central node.
6. The emergency route broadcasting method according to any one of claims 3 to 5, characterized in that: The determining, based on the current location corresponding to each of the first clients, each of the first emergency requests, and each of the target urgency levels, of the target emergency routes corresponding to each of the first clients includes: When the number of requests of at least one first emergency request is greater than or equal to 1, and the distances between each destination are greater than the second preset threshold, the target emergency routes corresponding to each first client are determined respectively based on the current location, destination and target urgency corresponding to each first client.
7. The emergency route broadcasting method according to any one of claims 1 to 5, characterized in that: The method further comprises: Each of the target emergency routes is urgently marked, and a navigation map is updated based on the marked target emergency routes.
8. An emergency route broadcasting device, characterized in that: include: A receiving module, configured to receive a first emergency request inputted by at least one first client; A first determination module, configured to determine a target urgency level corresponding to each of the first clients based on each of the first emergency requests; A second determination module, configured to determine a target emergency route corresponding to each of the first clients, and emergency route broadcast information corresponding to each of the target emergency routes based on a current location corresponding to each of the first clients, each of the first emergency requests, and each of the target urgency levels; The emergency route broadcast information is used to instruct other users associated with the target emergency route to avoid; The broadcast module is used to send each of the target emergency routes to each of the first clients, and broadcast each of the emergency route broadcast information to other clients corresponding to the other users.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the emergency route broadcasting method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the emergency route broadcasting method according to any one of claims 1 to 7 is implemented.