Disclosure of Invention
The present invention is directed to a safety warning method for overcoming the above-mentioned shortcomings of the prior art.
The invention provides a safety warning method, which comprises the following steps:
s1: arranging a plurality of warning lamps on a road;
s2: an emergency vehicle user uses terminal equipment to obtain an initial position, sets a target position, performs navigation to obtain an optimal path, and then sends navigation information to a management platform;
s3: after the management platform receives the application, a manager can check the planning path information and turn on the warning lamp on the route involved in the navigation planning;
s4: and after determining that the emergency vehicle runs, the management platform turns off the warning lamp on the path which the emergency vehicle has passed through.
Further, in step S3, the relevant warning light on the link range area in the optimal path is turned on.
Further, the warning light includes 110 warning light modes, 119 warning light modes, 120 warning light modes, still include the audio amplifier of opening with the warning light linkage, management platform control warning light state red blue alternative scintillation when the warning light is 110 warning light modes and open the first sound of predetermineeing of audio amplifier broadcast, management platform control warning light state red scintillation and open the audio amplifier broadcast second when the warning light is 119 warning light modes and predetermine the sound, management platform control warning light blue scintillation and open the audio amplifier broadcast third when the warning light is 120 warning light modes and predetermine the sound, the platform provides the warning light mode of above initialization, support user's later stage according to actual conditions, carry out the configuration of custom mode.
Further, in step S2, the mobile terminal obtains the first longitude and latitude of the initial position of the emergency vehicle and the second longitude and latitude of the target position of the emergency vehicle through the terminal map SDK, and performs route planning on the map SDK to obtain the optimal path of the emergency vehicle, where the map SDK is a gold map SDK or a hundredth map SDK or an Tencent map SDK.
Further, in step S3, the management platform acquires a preset opening area of the warning light by an area method according to the optimal path, the first longitude and latitude and the second longitude and latitude uploaded by the terminal, the preset opening area is a rectangular opening area, the rectangular opening area includes the optimal path, the management platform screens out a plurality of warning lights located in the rectangular opening area, the management platform performs longitude and latitude condition matching on the screened warning lights, and the management platform sends out an opening command to the warning lights meeting the matching condition.
Further, in step S4, the management platform obtains the real-time position of the emergency vehicle, the management platform obtains the optimal segment path of the emergency vehicle on the optimal path according to the real-time position, the optimal path, and the target position of the emergency vehicle, the management platform updates the turn-on area of the warning light in real time according to whether the vehicle is navigating or not during the vehicle driving process, and the management platform controls the turn-off of the warning light in the turn-off area or the turn-off after determining the turn-off area or the turn-off section according to the position information uploaded by the emergency vehicle.
Further, the management platform acquires longitude and latitude of the warning lamp and navigation planning sectional information of the emergency vehicle in a preset opening area, the management platform counts the information of the warning lamp in the right side opening distance of each section of path according to the navigation sectional information, and sends an opening command to the warning lamp which is counted and gathered when the management platform confirms the information, and the opening distance is distance configuration which can be customized by a user according to actual road conditions.
Further, the management platform screens out the warning lamps positioned in the preset starting area and on the right side of the line segment where the optimal path is positioned through longitude and latitude matching to serve as warning lamps for starting.
Further, the management platform judges whether the warning lamp is on the right side of the segment where the optimal path is located on the map SDK according to the following formula: assuming that the optimal path end point is from a (x1, y1) to B (x2, y2), an out-of-line point P (x0, y0) is determined, and the point is located on which side of the directed line a → B, if (x2-x1) (y0-y1) - (y2-y1) (x0-x1) > 0, it is located on the left side of the segment where the optimal path is located, if (x2-x1) (y0-y1) - (y2-y1) (x0-x1) < 0, it is located on the right side of the segment where the optimal path is located, if (x2-x1) (y0-y1) - (y2-y1) (x0-x1) = 0, it is located on the segment where the optimal path is located.
Furthermore, the management platform supports a user to perform custom opening and closing operations on the links of turning on the warning lamp device and whether the middle part needs to be examined and approved, and the management platform can configure the distance parameter of the front lighting lamp in a custom manner when turning on the warning lamp on the optimal planning path, so that the user can perform reasonable lighting according to actual conditions to play a warning role to the maximum extent.
The safety warning method has the following beneficial effects:
1. firstly, warning lamps are arranged on lamp posts of a plurality of roads, an emergency vehicle acquires an initial position by using a first positioning module in terminal equipment and sets a target position, navigation is carried out on the terminal equipment according to the initial position and the target position to acquire an optimal path, then the emergency vehicle sends navigation information to a management platform through a first communication module in the terminal equipment, after the management platform receives an application, a manager can check the planned path information, the warning lamps on the paths involved in navigation planning are automatically turned on, other vehicles and pedestrians on the paths of the optimal paths can be warned, the emergency vehicle can conveniently and quickly run, after the management platform determines that the emergency vehicle runs, the warning lamps on the paths which the emergency vehicle has run are turned off, and when the emergency vehicle runs through a certain warning lamp, the management platform turns off the warning lamps, the energy can be saved, other vehicles or pedestrians are prevented from being warned continuously, manpower and material resources are wasted, traffic congestion is caused, and warning efficiency is high.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Please refer to fig. 1. The safety warning method of the embodiment of the invention comprises the following steps:
s1: arranging a plurality of warning lamps on a road;
s2: an emergency vehicle user uses terminal equipment to obtain an initial position, sets a target position, performs navigation to obtain an optimal path, and then sends navigation information to a management platform;
s3: after the management platform receives the application, a manager can check the planning path information and turn on the warning lamp on the route involved in the navigation planning;
s4: and after determining that the emergency vehicle runs, the management platform turns off the warning lamp on the path which the emergency vehicle has passed through.
Here, firstly, warning lights are arranged on lamp posts of a plurality of roads, an emergency vehicle uses a first positioning module in a terminal device to obtain an initial position and set a target position, the terminal device can be a mobile phone or a vehicle-mounted control system with a built-in navigation system, the first positioning module can be a GPS positioning module, navigation is performed on the terminal device according to the initial position and the target position to obtain an optimal path, then the emergency vehicle sends the navigation information to a management platform through a first communication module in the terminal device, the first communication module can be a WIFI communication module or a 4G communication module, after the management platform receives an application, a manager can check the planned path information, the platform turns on the warning lights related to the path in the navigation planning, other vehicles and pedestrians on the path of the optimal path can be warned, and the emergency vehicle can run quickly, the management platform is after confirming that emergency vehicle has traveled, and the warning light on the route that emergency vehicle has passed through is closed, and when emergency vehicle has traveled certain warning light, the management platform was closed this warning light, and the energy can be saved avoids continuing to warn for other vehicles or pedestrian simultaneously, and extravagant manpower and materials cause the jam of traffic, and warning efficiency is higher.
In step S3, the relevant warning light on the link range area in the optimal path is turned on. The method comprises the steps that when a certain level of emergency occurs, an escort task is started, such as 110, 120 and 119, firstly, an optimal path is planned for a vehicle, all warning lamps in the whole road section range area in the optimal path are turned on, the front vehicle is reminded of yielding, meanwhile, a management platform can intelligently control all traffic signal lamps in a 1.5km range of an emergency vehicle advancing route to be turned into green lamps, therefore, the front vehicle can conveniently travel, roads are reserved for the emergency vehicle, the management platform can inform traffic police in the preset opening area of the escort task, the traffic police can conveniently take traffic control measures, and green channels are opened for the emergency vehicle.
The warning lamp can comprise a 110 warning lamp mode, a 119 warning lamp mode and a 120 warning lamp mode, and further comprises a sound box which is linked with the warning lamp to be started, when the warning lamp is in the 110 warning lamp mode, the management platform controls the state of the warning lamp to alternately flash red and blue and starts the sound box to play a first preset sound, the first preset sound can be ' 110-out ' and please avoid ', when the warning lamp is in the 119 warning lamp mode, the management platform controls the state of the warning lamp to flash red and starts the sound box to play a second preset sound, the second preset sound can be ' 119-out ' and please avoid ', when the warning lamp is in the 120 warning lamp mode, the management platform controls the state of the warning lamp to flash blue and starts the sound box to play a third preset sound, the third preset sound can be ' 120-out ' and please avoid ', so that a front vehicle can know an emergency task of the emergency vehicle and a green warning channel can be reserved in time, and the platform provides the initialized warning lamp mode, and the user is supported to carry out user-defined mode configuration according to the actual situation in the later stage.
In step S2, the mobile terminal obtains a first longitude and latitude of the initial position of the emergency vehicle and a second longitude and latitude of the target position of the emergency vehicle through a terminal map SDK, and obtains an optimal path of the emergency vehicle by performing route planning on the map SDK, where the map SDK is a high resolution map SDK, a Baidu map SDK, or an Tencent map SDK. The API of the integrated Goodpasture map SDK can be used for planning a path in multi-dimensional condition setting, for example, screening conditions such as 'congestion avoidance' and 'distance priority' are set, so that an optimal route is recommended and is used as an optimal path. The height map SDK includes a plurality of APIs, such as driving route planning, walking route planning, riding route planning, the driving route planning including location latitude and longitude + driving route planning, location keyword + driving route planning, location latitude and longitude + obtaining driving planning data, planning result + driving route drawing, planning result + driving route display, trailable driving route planning, passing point. The high-grade map SDK is a map-based software development kit provided by Alibara, and is used for providing a set of software-related documents, paradigms and tools for development engineers, wherein the software-related documents, paradigms and tools are used for assisting development classes, the development efficiency can be improved by using the SDK, and a certain function can be accessed more simply, namely an API: namely an Application Programming Interface (API), the API is better than a data channel, the data which is wanted by the API can be obtained through the API, the process of intermediate implementation is not needed to be concerned, the API defines some capabilities and some specifications, the SDK comprises the capabilities and the specifications, and the SDK also has a plurality of other auxiliary functions. Such as the necessary material to use the API, etc.
In the step S3, the management platform acquires a preset opening area of the warning light by an area method according to the optimal path, the first longitude and latitude and the second longitude and latitude uploaded by the terminal, the preset opening area is a rectangular opening area, the rectangular opening area includes the optimal path, the management platform screens out a plurality of warning lights located in the rectangular opening area, the management platform performs longitude and latitude condition matching on the screened warning lights, and the management platform sends out an opening command to the warning lights meeting the matching condition. Calculating the area of the area containing the preset path by adopting an area method through an area API in a map SDK, selecting the area with the minimum area as an obtained preset opening area, enabling the preset opening area to contain the preset path and enabling the preset opening area to be the area with the minimum area in the area containing the preset path, if the preset opening area is a rectangular area, determining the long side of the rectangular area through a first point which is away from the center line of the preset path on the left side and the right side of the preset path, taking the point where the initial test position or the target position is located as a second point, and determining the short side of the rectangular area through the second point, thereby determining the rectangular area. The initial testing position is a first longitude and latitude, the target position is a second longitude and latitude, and the longitude and latitude between the first longitude and latitude and the second longitude and latitude are used as matched longitude and latitude conditions, so that the warning lamp in the longitude and latitude range is used as a warning lamp of the matched condition. The management platform collects the longitude and latitude of the warning lamp in advance, and the warning lamp falling in the range is determined through the range of the first longitude and latitude and the second longitude and latitude.
Step S4, the management platform acquires the real-time position of the emergency vehicle, the management platform acquires the optimal segmented path of the emergency vehicle on the optimal path according to the real-time position, the optimal path and the target position of the emergency vehicle, the management platform updates the turn-on area of the warning light in real time according to whether the vehicle is guided or not during the running of the vehicle, and the management platform controls the turn-off of the warning light in the turn-off area or the turn-off after determining the turn-off area or the turn-off of the warning light in the turn-off area or the turn-off of the warning light after determining the position information uploaded by the emergency vehicle. The method comprises the steps of controlling the warning lamp step by step along with the running of the emergency vehicle, closing the warning lamp between an initial position and the current real-time position of the emergency vehicle after the emergency vehicle runs, selecting the color of the bright lamp when the warning lamp is opened on the path from the current position to the target position of the emergency vehicle, adopting a normally bright or flashing mode in the bright mode, and transmitting a control signal of the whole warning lamp through a network.
The management platform acquires the longitude and latitude of the warning lamp and the navigation planning sectional information of the emergency vehicle in a preset opening area, the management platform counts the information of the warning lamp in the right side opening distance of each section of route according to the navigation sectional information, and sends an opening command to the warning lamp which is counted and gathered when the management platform confirms the information, the opening distance is the distance configuration which can be customized by a user according to the actual road condition, and the opening distance can be 20 meters. The management platform can also acquire the third longitude and latitude that real-time position corresponds when acquireing emergent vehicle real-time position, and the management platform sends out the opening command to the warning light when the distance between the longitude and latitude of the warning light of selecting and the third longitude and latitude is 20 meters to can improve the efficiency of opening the warning light, avoid opening the extravagant electric energy of warning light when the warning light is too far away from emergent vehicle, open the warning light and can not reach the effect of warning when the warning light is too close to emergent vehicle.
The management platform screens out the warning lamps positioned in the preset opening area and on the right side of the line segment where the optimal path is positioned through longitude and latitude matching, and only the warning lamp positioned on one side of the road is opened, so that the preset opening area can be quickly formed on the map SDK, and the warning effect is improved.
The management platform judges whether the warning lamp is on the right side of the line segment of the optimal path on the map SDK or not through the following formula: assuming that the optimal path end point is from a (x1, y1) to B (x2, y2), an out-of-line point P (x0, y0) is determined, and the point is located on which side of the directed line a → B, if (x2-x1) (y0-y1) - (y2-y1) (x0-x1) > 0, it is located on the left side of the segment where the optimal path is located, if (x2-x1) (y0-y1) - (y2-y1) (x0-x1) < 0, it is located on the right side of the segment where the optimal path is located, if (x2-x1) (y0-y1) - (y2-y1) (x0-x1) = 0, it is located on the segment where the optimal path is located.
The management platform can support a user to carry out self-defined opening and closing operations on the links of opening the warning lamp equipment and whether the middle part needs to be examined and approved, and the management platform can configure the distance parameter of the front lighting lamp in a self-defined mode when the warning lamp on the optimal planning path is opened, so that the user can carry out reasonable lighting according to actual conditions to play a warning role to the maximum extent. The warning lamp can be installed on the street lamp, and the accident point can be determined by the one-key alarm device on the lamp pole. The warning light can include multiple weather warning mode, the weather warning mode of warning light can include big fog weather warning, heavy rain weather warning, big snow weather warning, sand blown by the wind weather warning, the icy road warning, management platform is according to local meteorological data information, meet big fog, heavy rain, big snow, weather conditions such as sand blown by the wind or icy road, take different weather warning mode, so both can open life passageway warning for emergent vehicle, arouse attention for passing vehicle and pedestrian simultaneously, remind passing vehicle and pedestrian to notice safety. The warning lamp can also comprise a traffic condition warning mode, the traffic condition warning mode of the warning lamp comprises vehicle lane occupation warning and road section construction maintenance warning, when the management platform acquires traffic condition information on a road in a preset opening area, the warning lamp is enabled to select the traffic condition warning mode corresponding to the traffic condition information on the road when the warning lamp on the corresponding road is opened, so that a vehicle fault on the road occupies a traffic lane or a parking violation vehicle occupies the traffic lane, the vehicle cannot be moved to a safe area in time, and road section construction, maintenance and other obstacles exist, the related road warning lamp is opened, warning is performed in advance, a driver is attracted to notice, and the passing vehicle is reminded of safety. The warning lamp can also comprise a special road section warning mode, the special road section warning mode of the warning lamp comprises road examination road section warning and accident multi-occurrence road section warning, the management platform acquires road examination road section information and accident multi-occurrence road section information on a road in a preset opening area, when the warning lamp on the corresponding road is opened, the warning lamp is enabled to select the road section warning mode corresponding to the road section information on the road, the warning lamp is installed on a lamp post at a proper position of scenes such as a factory, a campus, a community, a scenic spot and the like, when an emergency situation such as a fire occurs, the management platform can be used for controlling the warning lamp to light up for emergency prompt, the warning lamp is installed at the side of an enclosure of scenes such as a factory, a campus, a villa and the like, when a person turns over, the warning lamp is controlled to light up for warning, and a sound warning is emitted through a linkage sound box, so that a learner-driven vehicle is running in the road examination in the road section, The system can be used for practicing, and dangerous road sections such as part of loop entrances and exits, bridge ramp bifurcation points, sharp bends and the like and accident multi-occurrence point sections, and can play an obvious warning role in improving the attention of drivers and controlling the standard driving of the vehicle speed by linking the backstage through monitoring or other alarm information, thereby preventing and reducing the occurrence of road traffic accidents.
The above-described aspects may be implemented individually or in various combinations, and such variations are within the scope of the present invention.
It should be noted that, in the description of the present application, it should be noted that the terms "upper end", "lower end" and "bottom end" indicating the orientation or positional relationship are based on the orientation or positional relationship shown in the drawings or the orientation or positional relationship which the product of the application is usually placed in when the product of the application is used, and are only for convenience of describing the present application and simplifying the description, but do not indicate or imply that the device referred to must have a specific orientation, be constructed in a specific orientation and be operated, and thus, should not be construed as limiting the present application. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: the above examples are only for illustrating the technical solutions of the present invention, and are not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.