Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, describe below by specific embodiment.
Embodiment one:
Be illustrated in figure 1 as the process flow diagram of warning air navigation aid provided by the invention, for convenience of explanation, only show the part relevant with the embodiment of the invention.
In step S101, alarm terminal uploads onto the server the warning message that gathers, and described warning message comprises the GPS positional information.
In embodiments of the present invention, when the user causes danger, gather warning message by alarm terminal, and upload onto the server by the warning message of network with the alarm terminal collection.Wherein, because the terminal that is used for reporting to the police mostly is intelligent mobile terminal, can be by camera pictures taken and the video information on the alarm terminal, can generate audio-frequency information by sound-track engraving apparatus, obtain the accurately GPS positional information of reporting a case to the security authorities a little by the GPS module on the alarm terminal, by text editing generating character descriptor etc.Therefore, warning message includes but not limited to: GPS positional information, and in the audio alert information, picture warning message, video alarm information, literal warning message one or more, the GPS positional information is the positional information at alarm terminal place.
Preferably, when alarm terminal was cell phone, alarm terminal can also send warning message by voice or video dialtone.
In embodiments of the present invention, because warning message has comprised the much information type, these warning messages not only can the precise positioning alert locations, also help truly to reduce the warning message (extent of injury that can intuitively reflect emergency situations such as picture, audio frequency and video, help in advance sufficient preparation to be carried out in accident, and can prevent effectively that the spurious alarm situation from occuring).
Further, described warning message comprises time of fire alarming stamp information, and described time of fire alarming stamp information is bound device identification code or machine code in the lump, and through Digital Signature Algorithm information is encrypted, and can be used as effective judicial evidence.For example, can be encrypted the private key of the information that comprises described EIC equipment identification code or machine code as digital signature to time of fire alarming the formation time stamp.
In step S102, server sends to the nearest third party's portable terminal of distance alarm terminal according to the GPS positional information with warning message.
In embodiments of the present invention, after server receives the warning message of uploading, search third party's mobile terminal locations database according to the GPS positional information that comprises in the warning message, after finding out the nearest third party's portable terminal of distance alarm terminal, warning message is sent to the nearest third party's portable terminal of described distance alarm terminal.Wherein, third party's mobile terminal locations database prestores the positional information of whole third party's portable terminals.Here, described third party's portable terminal is generally the portable terminal that security personnel, police etc. hold, and it forms police strength resource automatic governing and a delegation system with server.
In embodiments of the present invention, in the process that sends warning message, because Word message and data information transfer velocity ratio are very fast, preferentially send GPS positional information and literal warning message, wherein, preferentially push the GPS positional information and can shorten the time that arrives place of alarm.
In step S103, third party's portable terminal is according to described warning message real scene navigation alarm terminal position.
In embodiments of the present invention, the azimuth information of the alarm terminal that third party's portable terminal obtains according to warning message and acceleration transducer and the directional information of the alarm terminal that electronic compass obtains, calculate abscissa value and the ordinate value of alarm terminal, and abscissa value and the ordinate value of alarm terminal be mapped on the map of third party's portable terminal, so that the alarm terminal position is presented on third party's mobile terminal screen truly.And along with the variation of third party's mobile terminal locations, the alarm terminal positional information that acceleration transducer obtains and directional information also constantly change, thereby so that the self-position that is mapped on third party's portable terminal map is followed variation.On the other hand, consider that alarm terminal its position during reporting to the police also may change, thereby obtain the changing value of alarm terminal position, and give mark at third party's portable terminal map, realize the real scene navigation of alarm terminal position at the display screen of third party's portable terminal with this.
Further, described alarm terminal can also be by the camera of self, real-time capture site information, and upload onto the server, as on-the-spot outdoor scene evidence.
Wherein, positional information and the directional information of the alarm terminal that obtains according to warning message and acceleration transducer, calculate the abscissa value of alarm terminal and the method following (when the abscissa value of calculating alarm terminal and ordinate value, the warning message of mainly using is the GPS positional information) of ordinate value:
The first, according to the air line distance between third party's location information of mobile terminal and GPS positional information calculation third party's portable terminal and alarm terminal.Wherein, the API that both can carry by system calculates the air line distance between third party's portable terminal and alarm terminal, also can utilize the trigonometric function law to estimate air line distance between third party's portable terminal and alarm terminal by the mode of integration according to third party's location information of mobile terminal and GPS positional information.
The second, calculate the orientation angle between third party's portable terminal and alarm terminal.After the air line distance that draws between third party's portable terminal and alarm terminal, with the position of third party's portable terminal as initial point, the meridian of this initial point of process is as the y coordinate axis, latitude line is as the x coordinate axis, in this coordinate system, utilize the atan2f trigonometric function to obtain with respect to y axle clamp angle, add corresponding side-play amount, with regard to can obtain the alarm terminal position for regard to the initial point (third party's portable terminal position) in the angle of y axle positive dirction.
The 3rd, the directional information of the alarm terminal that obtains according to the orientation angle between third party's portable terminal and alarm terminal and current electronic compass calculates the 2D abscissa value of corresponding screen.
Suppose that current visible angular range is between-90 to+90, at first calculate orientation angle in the directional information of the alarm terminal that electronic compass obtains and the differential seat angle of the orientation angle between third party's portable terminal and alarm terminal, be formatted into a numerical value between-90 to+90 by angle again, calculate again this angle with respect to the ratio of 90 degree, be multiplied by the x coordinate of screen center's point, just can obtain the alarm terminal position corresponding to the x coordinate figure of current screen.
The below take Fig. 2 as example describes in detail calculate the abscissa value of alarm terminal after, horizontal ordinate is mapped in the detailed process of third party's portable terminal.
As being labeled with all directions four direction among the left figure of Fig. 2, wherein, the GPS position of A point expression third party portable terminal, B point expression alarm set point position.The API that at first carries by system or A dot position information and B dot position information calculate the air line distance of A, B point-to-point transmission, and calculate the angle β between A, B bright spot.Subsequently take the A point as initial point, the meridian that process A is ordered is as the y coordinate axis, latitude line is as x coordinate axis (such as the x coordinate axis among Fig. 2 and y coordinate axis) and utilize the atan2f trigonometric function to obtain with respect to y axle clamp angle in this coordinate system, this angle is added corresponding side-play amount, obtain B point with respect to the angle a of A point y axle positive dirction (because passing through meridian that A orders as the y coordinate axis, so y axle positive dirction is direct north).The directional information of the alarm terminal that obtains according to orientation angle and the current electronic compass of current third party's portable terminal at last, calculates the 2D abscissa value that the B of corresponding screen is ordered.At this moment, the B point will be presented among the right figure of Fig. 2.
When third party's portable terminal during around vertical large direction rotation, the direction of alarm terminal can change at the screen of third party's portable terminal along with the rotation of third party's portable terminal direction, as: when third party's portable terminal faced the direction of alarm terminal, alarm terminal was mapped in the centre that X coordinate on third party's mobile terminal screen is positioned at third party's mobile terminal screen; When third party's portable terminal when direction moves to the left or to the right, the X coordinate that alarm terminal is mapped on third party's mobile terminal screen can be thereupon mobile to the left or to the right on the screen of third party's portable terminal; When the angle that third party's portable terminal shifts out to the left or to the right excessive, may cause alarm terminal to disappear on third party's mobile terminal screen, the orientation angle that only has third party's portable terminal to move to the left or to the right just can make the position of alarm set point be mapped on third party's mobile terminal screen in certain scope, thereby can simulate intuitively the directionality problem of alarm terminal, the user can find the direction of alert locations intuitively.Specifically shown in the right figure of Fig. 2, stain among the right figure of Fig. 2 on third party's mobile terminal screen represents that alarm terminal is mapped to X coordinate on third party's mobile terminal screen when third party's portable terminal rotates around the earth vertical direction, the direction of alarm set point B can change at screen along with the rotation of third party's portable terminal direction (namely in the right figure such as Fig. 2, around the axle rotation of vertical-horizontal direction); Arrow below among the right figure of Fig. 2 represents when when third party's portable terminal moves to right, and alarm set point B is mapped in X coordinate on third party's portable terminal thereupon move right at the screen of third party's portable terminal (so alarm set point B is mapped in X coordinate on third party's portable terminal, and to be positioned at screen right-hand).
The 4th, calculate the 2D ordinate value of corresponding screen according to third party's portable terminal and the distance between alarm terminal.
Except considering horizontal ordinate, also needing considers to have a down dip on third party's portable terminal is mapped to the impact that the Y coordinate on third party's mobile terminal screen produces to alarm terminal, as: when third party's portable terminal was placed perpendicular to ground, alarm terminal is mapped to Y coordinate on third party's mobile terminal screen should be positioned at center for third party's mobile terminal screen; When third party's portable terminal is downward-sloping, the Y coordinate that alarm terminal is mapped on third party's mobile terminal screen should move to the top of third party's mobile terminal screen, until when moving to horizontal level, the Y coordinate that alarm terminal is mapped on third party's mobile terminal screen is negative value, and alarm terminal is not mapped on third party's mobile terminal screen; When third party's portable terminal was inclined upwardly, the Y coordinate that alarm terminal is mapped on third party's mobile terminal screen should move to the below of third party's mobile terminal screen; Alarm terminal will change along with the variation of angle of declination on third party's portable terminal the Y coordinate position that shines upon at third party's mobile terminal screen like this, thus the mapping of more real simulation alarm terminal on third party's mobile terminal screen.As shown in Figure 3, the stain on third party's mobile terminal screen represents that alarm terminal is mapped to the Y coordinate on third party's mobile terminal screen among Fig. 3.The left figure of Fig. 3 shows when third party's portable terminal centers on the axle rotation of horizontal direction, the Y coordinate that alarm terminal is mapped on third party's mobile terminal screen changes thereupon, the right figure of Fig. 3 represents that when third party's portable terminal is downward-sloping the Y coordinate that alarm terminal is mapped on third party's mobile terminal screen should move to the top of third party's mobile terminal screen.
Wherein, the method for calculating ordinate value is as follows:
Suppose that the angular range that third party's portable terminal spins upside down is between-90 to+90, at first calculate the current inclination angle of third party's portable terminal according to electronic compass, be formatted into a numerical value between-90 to+90 by angle again, calculate this angle with respect to the ratio of 90 degree, the Y coordinate that is multiplied by screen center's point draws the initial Y coordinate of alarm terminal position again.
For accurate Calculation Y coordinate figure more, except the position of inclination effect Y coordinate up and down, also need consider the visual processes of eye, namely object from current location more away from, this object is the closer to the top of third party's mobile terminal screen; Object is more approaching then the closer to the center of third party's mobile terminal screen from current location.If the air line distance that has calculated between third party's portable terminal and alarm terminal is L, and the distance that the interior alarm terminal of hypothesis current visual angle is mapped in third party's mobile terminal screen central authorities is M, then the uniform zoom factor is M/L, the maximal value of supposing third party's mobile terminal screen Y coordinate is N, thereby, the Y coordinate offset of considering distance factor is (N/2) * (M/L), and final Y coordinate figure is that initial Y coordinate adds Y coordinate offset value.At last, after determining that alarm terminal is mapped to X and Y coordinates on third party's portable terminal, also should consider the size that the alarm terminal positional information is played up, namely the current third party's mobile terminal skip of distance is far away, and alarm terminal map information on third party's portable terminal is just less; Near apart from third party's mobile terminal skip, alarm terminal is just larger in the information that third party's portable terminal shines upon.After determining that alarm terminal is mapped to the convergent-divergent of X and Y coordinates on third party's portable terminal and warning message size, the position of alarm terminal will be mapped on third party's mobile terminal screen very truly, and the position of alarm terminal changes with the variation of acceleration transducer data, so that the personnel of turning out for work can accurately navigate to the alarm terminal position.
Preferably, third party's portable terminal is except according to the described warning message real scene navigation alarm terminal position, can also navigate to the alarm terminal position by map, and two kinds of navigate modes switching at any time.
In embodiments of the present invention, server is after receiving the warning message that alarm terminal sends, warning message is delivered to rapidly the nearest third party's portable terminal of distance alarm terminal, and can be according to described warning message real scene navigation alarm terminal position on third party's portable terminal, solved existing warning system owing to the fuzzy or traditional digital map navigation out of true of alarm set point positional information or distance alarm place too far cause the arriving in the very nick of time problem of incident point.And the personnel that turn out for work only need to install corresponding application program at the portable terminal of oneself and just can utilize the characteristics of portable terminal to solve efficiently the problem of warning and responding, have reduced the input of basic panalarm.In addition, alarm terminal in this method and third party's portable terminal can also with road on monitoring camera form the monitoring of many integration, by obtaining the GPS positional information of the camera of monitoring on the road, just can monitor the road emergency situations by the mode of remote monitoring, only need to call the latitude and longitude coordinates of camera position, input server analysis module, near the personnel of turning out for work the notice can solve emergency situations at last, have greatly ensured social safety.
Embodiment two:
The structural representation of the warning navigational system that Fig. 4 provides for the embodiment of the invention for convenience of explanation, only shows the part relevant with the embodiment of the invention.Described warning navigational system comprises: alarm terminal 21, server 22 and third party's portable terminal 23.Wherein:
Alarm terminal 21 comprises:
Warning message acquisition module 211 is used for gathering warning message.
Transmission module 212 on the warning message, and the warning message that is used for gathering uploads onto the server.
In embodiments of the present invention, transmission module 212 also comprises a submodule on the warning message:
Dial module 2121 is used for when alarm terminal is cell phone, and alarm terminal can also send warning message by voice or video dialtone.
In embodiments of the present invention, warning message includes but not limited to: the GPS positional information, and in the audio alert information, picture warning message, video alarm information, literal warning message one or more, the GPS positional information is the positional information at alarm terminal place.
Server 22 comprises:
Warning message sends module 221, is used for server according to the GPS positional information, and warning message is sent to the nearest third party's portable terminal of distance alarm terminal.
In embodiments of the present invention, described warning message sends module 221 and comprises two submodules, is respectively:
Third party's portable terminal is searched module 2211, be used for server and search third party's mobile terminal locations database according to the GPS positional information, find out the nearest third party's portable terminal of distance alarm terminal, this third party's mobile terminal locations database prestores the positional information of whole third party's portable terminals.
Warning message sending module 2212 is used for server warning message is sent to the nearest third party's portable terminal of distance alarm terminal.
Third party's portable terminal 23 comprises:
Real scene navigation module 231 is used for third party's portable terminal according to described warning message real scene navigation alarm terminal position.
In embodiments of the present invention, described real scene navigation module 231 comprises 2 submodules, is respectively:
Alarm terminal positional information calculation module 2311 is used for positional information and directional information according to warning message and the alarm terminal that obtains, calculates abscissa value and the ordinate value of alarm terminal.
Real scene navigation module 2312 is used for the outdoor scene map that abscissa value and ordinate value with alarm terminal are mapped to third party's portable terminal.
In embodiments of the present invention, server is after receiving the warning message that alarm terminal sends, warning message is delivered to rapidly the nearest third party's portable terminal of distance alarm terminal, and can be according to described warning message real scene navigation alarm terminal position on third party's portable terminal, solved existing warning system owing to the fuzzy or traditional digital map navigation out of true of alarm set point positional information or distance alarm place too far cause the arriving in the very nick of time problem of incident point.And the personnel that turn out for work only need to install corresponding application program at the portable terminal of oneself and just can utilize the characteristics of portable terminal to solve efficiently the problem of warning and responding, have reduced the input of basic panalarm.
One of ordinary skill in the art will appreciate that, realize that all or part of step in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is such as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.