CN105827579B - A kind of method for early warning and system of online casting driving safety prompt information - Google Patents
A kind of method for early warning and system of online casting driving safety prompt information Download PDFInfo
- Publication number
- CN105827579B CN105827579B CN201510011666.1A CN201510011666A CN105827579B CN 105827579 B CN105827579 B CN 105827579B CN 201510011666 A CN201510011666 A CN 201510011666A CN 105827579 B CN105827579 B CN 105827579B
- Authority
- CN
- China
- Prior art keywords
- point data
- warning
- grid
- pretreatment
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Alarm Systems (AREA)
- Navigation (AREA)
Abstract
The invention discloses the method for early warning and system of a kind of online casting driving safety prompt information, wherein the described method includes: server will warn point data to carry out cutting pretreatment according to grid, obtains the first pretreatment warning point data;The first pretreatment warning point data numbers corresponding storage according to grid;Terminal judges locally whether be stored with whether the warning point data or stored warning point data are whether newest data or stored warning point data are expired, obtains judging result;The judging result be it is local not stored when to have the alarm point data or stored warning point data be non-current data or stored warning point data expired because of version factor, the terminal is requested to the downloading that the server initiates to carry grid number;The server numbers to obtain the first pretreatment warning point data corresponding with grid number and returns to terminal according to the grid, enables the early warning casting of safety instruction information.
Description
Technical field
The present invention relates to casting technologies, more particularly to one kind to broadcast the method for early warning of driving safety prompt information online and be
System.
Background technique
Present inventor at least has found exist in the related technology during realizing the embodiment of the present application technical solution
Following technical problem:
In current existing scheme, in user's driving procedure, user can use electronic map equipment, with voice mode
The safety instructions such as road speed limit, Frequent Accidents, the traffic intersection in front of user's traveling are broadcasted, make early warning in advance to user, with
Just user adjusts drive manner in time, helps the driving of user's more safety and specification.Wherein, road speed limit, Frequent Accidents, friendship
The information unifications such as access mouth are known as driving safety alarm point.
The difference that point data institute storage mode is warned according to driving safety, is divided into following " offline " and " online " two kinds of sides
Formula:
One, " offline " mode: being disposably to be preset to warning point datas all in the whole country in electronic map terminal,
It is supported in use process without mobile communications network, is completely dependent on preset whole nation warning point data and realizes casting." offline " formula
The shortcomings that be: data update not in time and update it is cumbersome, every time update will be updated by computer and data line,
Can not accomplish real-time update, and alarm point data point reuse is frequent, information update easily causes not in time to be misrepresented deliberately and fails to report, for
Family drives and brings puzzlement.
Two, " online " mode: warning point data is stored in cloud server, electronic map terminal is logical in use process
Mobile communications network is crossed, downloads and cache newest warning point data on demand according to region is currently located, and then utilize caching
Part warning point data realizes casting.The advantages of " online " formula, is that data update in time, and it is more accurate to broadcast, and updates operation
It is automatically performed, is not necessarily to user intervention;Disadvantage is then to rely on mobile communications network.
As smart phone and the continuous of 4G mobile communications network are popularized, " online " mode services relied on mobile communication
No longer there is threshold in terminal, the network coverage, communications cost etc., and timely and conveniently feature is more for the update that it has
Valued by user, therefore, the early warning scheme of this online casting driving safety prompt has become mainstream.
The system structure of existing online casting driving safety prompt is as shown in Figure 1.System is by server-side, electronic map terminal
It is constituted with mobile communications network, wherein the function of the server-side includes: that the warning point data in the whole nation is uniformly stored in database
In;Server-side provides periphery alarm point query service interface, according to the central point latitude and longitude coordinates and radius of terminal request, from number
According to all warning point datas fallen in requested border circular areas are calculated and filtered out in library, terminal is returned to;It is described electronically
The function of figure terminal includes: that GPS positioning module periodically obtains the current latitude and longitude coordinates of user;Alarm point temporal cache checks module
It according to user current location, checks whether current temporal cache is still able to satisfy casting needs, broadcasting module is notified if being able to satisfy
It is broadcasted using the data of temporal cache, periphery alarm point enquiry module is called to inquire again from server-side if not being able to satisfy
Periphery warns point data, updates temporal cache;The function of the mobile communications network includes: as electronic map terminal and service
Communication channel between end.
Using it is existing it is online casting driving safety prompt early warning scheme the problem is that:
1) the load weight of server-side, response speed are slow.
Since server-side every time will be according to the central point and radius of terminal request, to the whole nation warning points in database
It is calculated according to geographical geometry is carried out one by one, is screened out from it the data fallen in request circular scope, it is larger to calculate intensity.On the one hand
It is more demanding to the process performance of server-side, rely on the server of more or higher configuration;When the processing of another aspect server-side
Prolong longer, causes response speed slower.
2) data cached to reuse, waste network flow and power consumption of terminal.
Since the data cached instant computing that requires generates every time, can not reuse.Illustrate by taking Fig. 2 as an example, Fig. 2
It is local road network schematic diagram, it includes tri- roads of AB, CD, EF that the road network of left figure and right figure is completely the same, the black on road
Dot expression is distributed in the alarm point of road on the way.For the round S1 on the left of Fig. 2, user drives first in AB road uplink
Sail to J point, all warning point datas that round S1 is surrounded are requested to server-side and cached to electronic map terminal at this time, for into
The prompt of row driving safety.For the round S2 on the right side of Fig. 2, user drives to travel on CD road to K point again, needs at this time
Obtain all warning point datas that round S2 is surrounded.Although the partial data being once cached in J point is also by round S2 packet before
(round S1 and circle S2 intersection) is enclosed, theoretically this partial data can be re-used, but need to be multiplexed this partial data
The data to request irregular shape to include to server-side, i.e. circle S2 reject the remainder obtained after intersection, a side
Face is difficult to describe irregular shape, and the processing complexity of another aspect server-side is further promoted, lost more than gain, therefore actually
It does not use, but caching all only does temporal cache every time, has utilized and has just discarded, has not done persistence caching, every time again
The data that the new border circular areas of full request includes have wasted subnetwork to duplicate data cached situation
Flow and the power consumption for increasing terminal.
In view of the above-mentioned problems, there is no effective solution in the related technology.
Summary of the invention
In view of this, the embodiment of the present invention be desirable to provide a kind of online casting driving safety prompt information method for early warning and
System solves at least the above problem of the existing technology.
The technical solution of the embodiment of the present invention is achieved in that
The method for early warning of the online casting driving safety prompt information of one kind of the embodiment of the present invention, this method comprises:
Server will warn point data to carry out cutting pretreatment according to grid, obtain the first pretreatment warning point data;Institute
It states the first pretreatment warning point data and numbers corresponding storage according to grid;
Terminal judges locally whether be stored with whether the warning point data or stored warning point data are newest
Whether data or stored warning point data are expired, obtain judging result;
The judging result is that local not stored to have the alarm point data or stored warning point data be non-current
Data or stored warning point data expired because of version factor when, the terminal to the server initiate carry grid
The downloading request of lattice number;
The server parses the grid number in the downloading request, numbers to obtain and the grid according to the grid
The corresponding first pretreatment warning point data of lattice number simultaneously returns to terminal;The terminal passes through the first pretreatment warning points
According to the early warning casting for enabling safety instruction information.
In above scheme, this method further include:
The judging result is that when being locally stored with the warning point data and be newest data, institute is locally extracted
State warning point data;
The terminal is broadcasted by the early warning that the warning point data enables safety instruction information.
In above scheme, the judging result be it is local be stored with the warning point data and it is not out of date when, it is described
Terminal is not necessarily to re-initiate the downloading request to the server, and the warning point data is locally extracted;
The terminal is broadcasted by the early warning that the warning point data enables safety instruction information.
In above scheme, the method also includes:
Before obtaining the judging result, detection obtains the current latitude and longitude coordinates of user;
According to the current latitude and longitude coordinates of the user, the be subordinate to region pair of the current latitude and longitude coordinates of the user is determined
The grid number answered.
In above scheme, the method also includes:
The server parse it is described downloading request in grid number after, in addition to according to the grid number to obtain with
Before the corresponding first pretreatment warning point data of grid number, also obtain numbering with the grid it is adjacent it is default at least
The second corresponding pretreatment warning point data of the grid number of one association grid region simultaneously returns to terminal;
The second pretreatment warning point data, is detected according to the current latitude and longitude coordinates of the user described in the terminal buffers
To when having arrived at the region where the second pretreatment warning point data corresponds to grid number, triggering is pre- by described second
Processing warning point data enables the early warning casting of safety instruction information.
The early warning system of the online casting driving safety prompt information of one kind of the embodiment of the present invention, the system include:
Pretreatment unit obtains the first pretreatment warning for point data will to be warned to carry out cutting pretreatment according to grid
Point data;The first pretreatment warning point data numbers corresponding storage according to grid;
Judging unit judges locally whether be stored with the warning point data or stored warning point data for terminal
Whether it is whether newest data or stored warning point data are expired, obtains judging result;
Request initiating cell has the alarm point data or stored police for the judging result to be locally not stored
When showing that point data is non-current data or stored warning point data expired because of version factor, the terminal is to described
Server initiates to carry the downloading request of grid number;
Resolution unit parses the grid number in the downloading request for the server, is compiled according to the grid
It number obtains the first pretreatment warning point data corresponding with grid number and returns to terminal;
Unit is broadcasted, the pre- of safety instruction information is enabled by the first pretreatment warning point data for the terminal
Alert casting.
In above scheme, the casting unit is further used for the judging result to be local and has been stored with the police
When showing point data and being newest data, the warning point data is locally extracted, the terminal is opened by the warning point data
It is broadcasted with the early warning of safety instruction information.
In above scheme, the casting unit is further used for the judging result to be local and has been stored with the police
Show point data and it is not out of date when, the terminal is not necessarily to re-initiate downloading request to the server, be locally extracted described in
Point data is warned, the terminal is broadcasted by the early warning that the warning point data enables safety instruction information.
In above scheme, the system also includes:
Detection unit, for before obtaining the judging result, detection to obtain the current latitude and longitude coordinates of user;
Grid number determination unit determines that the user is current for the latitude and longitude coordinates current according to the user
The corresponding grid number in the be subordinate to region of latitude and longitude coordinates.
In above scheme, the resolution unit is further used for after parsing the grid number in the downloading request, removes
Before numbering to obtain the first pretreatment warning point data corresponding with grid number according to the grid, also obtain and institute
It states grid and numbers the second corresponding pretreatment warning points of the adjacent grid number for presetting at least one association grid region
According to and return to terminal;
The casting unit is further used for caching the second pretreatment warning point data, current according to the user
Latitude and longitude coordinates detect have arrived at it is described second pretreatment warning point data correspond to grid number where region when, touch
Hair is broadcasted by the early warning that the second pretreatment warning point data enables safety instruction information.
The method for early warning of the online casting driving safety prompt information of the embodiment of the present invention includes: that server counts warning
Cutting pretreatment is carried out according to according to grid, obtains the first pretreatment warning point data;The first pretreatment warning point data is pressed
Corresponding storage is numbered according to grid;Terminal judges locally whether to be stored with the warning point data or stored warning point data is
It is no whether expired for newest data or stored warning point data, obtain judging result;The judging result be it is local not
Be stored with the warning point data or stored warning point data be non-current data or stored warning point data because
When version factor is expired, the terminal is initiated to carry the downloading request of grid number to the server;The server
The grid number in the downloading request is parsed, numbers to obtain corresponding with grid number first in advance according to the grid
Processing warning point data simultaneously returns to terminal;The terminal enables safety instruction information by the first pretreatment warning point data
Early warning casting.
Using the embodiment of the present invention, the data due to being stored in server end are all by pre-processing according to grid
The first pretreatment warning point data, in the case where locally having downloaded the first pretreatment warning point data, eventually
End is not all to initiate downloading request to server each time, to obtain complete warning point data required for early warning casting, and
It is to number to obtain part warning point data according to grid, is buffered in local, is compiled according to the different protection grids that execute of judging result
Number downloading request, with targetedly fetching portion data every time, it is seen then that data can be multiplexed, and be weighed so avoiding
Network flow waste and power consumption loss caused by the new complete warning point data of request.Moreover, because being stored in server end
Data are all based on the block data that grid pre-processes, so subsequent corresponding according to the grid of terminal request number feedback
Block data is all right, every time alert to the whole nation in database according to the central point and radius of terminal request without server-side
Show that point data carries out geographical geometry one by one and calculates, to obtain requested data, so reduce server end operand and
Load.
Detailed description of the invention
Fig. 1 is the system structure diagram of prior art;
Fig. 2 is the presence of the data cached data distribution signal that can not be reused and be based in prior art
Figure;
Fig. 3 is the method flow schematic diagram of the embodiment of the present invention;
Fig. 4 is the data buffer storage schematic diagram using one application scenarios of the embodiment of the present invention;
Fig. 5 is the system structure diagram using one application scenarios of the embodiment of the present invention.
Specific embodiment
The implementation of technical solution is described in further detail with reference to the accompanying drawing.
The method for early warning of the online casting driving safety prompt information of one kind of the embodiment of the present invention, as shown in figure 3, this method
Include:
Step 101, server will warn point data to carry out cutting pretreatment according to grid, obtain the first pretreatment alarm point
Data;The first pretreatment warning point data numbers corresponding storage according to grid;
Step 102, terminal judge local whether be stored with the warning point data or stored warning point data
It is whether expired for newest data or stored warning point data, obtain judging result;
Step 103, the judging result have the alarm point data or stored warning point data to be locally not stored
When for non-current data or stored warning point data expired because of version factor, the terminal is sent out to the server
Act the downloading request for carrying grid number;
Step 104, the server parse the grid number in the downloading request, number to obtain according to the grid
The first pretreatment warning point data corresponding with grid number simultaneously returns to terminal;The terminal is pre-processed by described first
Point data is warned to enable the early warning casting of safety instruction information.
In one embodiment of the embodiment of the present invention, this method further include: the judging result is local has been stored with
The warning point data and be newest data when, the warning point data is locally extracted;The terminal passes through the alarm point
Data enable the early warning casting of safety instruction information.
In one embodiment of the embodiment of the present invention, the method also includes: the judging result is local stored
Have the alarm point data and it is not out of date when, the terminal is not necessarily to re-initiate downloading request, local to the server
Extract the warning point data;The terminal is broadcasted by the early warning that the warning point data enables safety instruction information.
In one embodiment of the embodiment of the present invention, the method also includes: before obtaining the judging result, detect
The latitude and longitude coordinates current to user;
According to the current latitude and longitude coordinates of the user, the be subordinate to region pair of the current latitude and longitude coordinates of the user is determined
The grid number answered.
In one embodiment of the embodiment of the present invention, the method also includes: the server parses the downloading and asks
After the grid number asked, in addition to numbering to obtain the first pretreatment alarm point corresponding with grid number according to the grid
Before data, also obtain numbering adjacent preset corresponding to the grid number that at least one is associated with grid region with the grid
Second pretreatment warning point data simultaneously returns to terminal;
The second pretreatment warning point data, is detected according to the current latitude and longitude coordinates of the user described in the terminal buffers
To when having arrived at the region where the second pretreatment warning point data corresponds to grid number, triggering is pre- by described second
Processing warning point data enables the early warning casting of safety instruction information.
The early warning system of the online casting driving safety prompt information of one kind of the embodiment of the present invention, including server end and end
End (such as electronic map terminal) system include:
Pretreatment unit obtains the first pretreatment warning for point data will to be warned to carry out cutting pretreatment according to grid
Point data;The first pretreatment warning point data numbers corresponding storage according to grid;
Judging unit judges locally whether be stored with the warning point data or stored warning point data for terminal
Whether it is whether newest data or stored warning point data are expired, obtains judging result;
Request initiating cell has the alarm point data or stored police for the judging result to be locally not stored
When showing that point data is non-current data or stored warning point data expired because of version factor, the terminal is to described
Server initiates to carry the downloading request of grid number;
Resolution unit parses the grid number in the downloading request for the server, is compiled according to the grid
It number obtains the first pretreatment warning point data corresponding with grid number and returns to terminal;
Unit is broadcasted, the pre- of safety instruction information is enabled by the first pretreatment warning point data for the terminal
Alert casting.
Wherein, the pretreatment unit, the resolution unit are located at the server end, and the judging unit described is asked
It asks and initiates unit, the casting unit is located at the terminal.
In one embodiment of the embodiment of the present invention, the casting unit, it is local for being further used for the judging result
When being stored with the warning point data and being newest data, the warning point data is locally extracted, the terminal passes through
The warning point data enables the early warning casting of safety instruction information.
In one embodiment of the embodiment of the present invention, the casting unit, it is local for being further used for the judging result
Be stored with the warning point data and it is not out of date when, the terminal is asked without re-initiating the downloading to the server
It asks, the warning point data is locally extracted, the terminal is broadcast by the early warning that the warning point data enables safety instruction information
Report.
In one embodiment of the embodiment of the present invention, the system also includes:
Detection unit, for before obtaining the judging result, detection to obtain the current latitude and longitude coordinates of user;
Grid number determination unit determines that the user is current for the latitude and longitude coordinates current according to the user
The corresponding grid number in the be subordinate to region of latitude and longitude coordinates.
In one embodiment of the embodiment of the present invention, the resolution unit is further used for parsing the downloading request
In grid number after, count in addition to numbering to obtain the first pretreatment warning corresponding with grid number according to the grid
According to before, also obtain with the grid number it is adjacent preset grid number that at least one is associated with grid region it is corresponding the
Two pretreatment warning point datas simultaneously return to terminal;
The casting unit is further used for caching the second pretreatment warning point data, current according to the user
Latitude and longitude coordinates detect have arrived at it is described second pretreatment warning point data correspond to grid number where region when, touch
Hair is broadcasted by the early warning that the second pretreatment warning point data enables safety instruction information.
The embodiment of the present invention is described below with practical application scene below:
This application scene uses the embodiment of the present invention, is heavy and data cached for service end load in prior art
The solution that the problem of can not reusing provides is located in advance by warning point data to carry out cutting driving safety by grid
It manages, and carries out downloading and the caching of warning point data by grid, to solve the existing service end load weight of prior art
With data cached the problem of can not reusing.
Whole nation warning point data is carried out grid cutting by this application scene, and each grid, which is one, is having unique number just
Square region, all warning point datas for including in this square area are packaged into a small documents, and referred to as grid warns
Dot file.During alarm point casting, the terminal latitude and longitude coordinates current according to user are by simple mapping calculation
It can determine that grid belonging to the coordinate is numbered, if the corresponding grid warning dot file of grid number has existed and is newest
Terminal directly utilizes this document to broadcast, if not yet existing or expired, requests grid number itself to server-side again
And the grid of adjacent cells warns dot file.
The warning dot file why download adjacent cells simultaneously is to guarantee to be driven out to locating for current location in user
After grid, still there is the data buffering of at least one grid, with the data for increment downloading more multi-grid of setting aside some time, it is ensured that alarm point
The continuity of casting.If downloading in advance does not close on grid, user just needs now after being driven out to the locating caching grid in current location
The data of new grid are carried, and downloads and needs certain time, of short duration will occur state short of food before the new harvest, Wu Fajin within this time
Any casting of row, to the case where failing to report data occur.
The scheme of this application scene is further detailed by taking Fig. 4 as an example.Fig. 4 is local road network schematic diagram, Fig. 4
The road network layout that the rectangle of road network layout and right side that the rectangle in left side is covered is covered is completely the same, all includes AB, CD, EF
Three roads, the black dot expression on road are distributed in the alarm point of road on the way, grid representation piecemeal grid, every piece of grid
On the digital representation grid number.For the driving route shown by the rectangle on the left of Fig. 4, user drives the road Xian AB
Road traveling is to J point, and the grid number of J point is 2683, and then electronic map terminal requests to server-side and cached No. 2683
The warning points of itself and adjacent totally 9 grids (2582,2583,2584,2682,2683,2684,2782,2783,2784)
According to, in the rectangle on the left of Fig. 4 shown in part indicated by rectangle B1, these No. 2683 itself and adjacent totally 9 grids
The warning point data of (2582,2583,2584,2682,2683,2684,2782,2783,2784) is mentioned for carrying out driving safety
Show.For the driving route shown by the rectangle on the right side of Fig. 4, user drives on CD road traveling to K point again, K point
Grid number is No. 2682, this time, should request originally and cache No. 2682 itself and adjacent totally 9 grids (2581,
2582,2583,2681,2682,2683,2781,2782,2783), but 6 grids therein (2582,2583,2682,2683,
2782,2783) it in last time is cached, in the rectangle on the right side of Fig. 4 shown in part indicated by rectangle B1, these No. 2683 sheets
The warning point data of body and adjacent totally 9 grids (2582,2583,2584,2682,2683,2684,2782,2783,2784)
It has been cached before, therefore, can continue to be multiplexed, then finally only needed 3 grids of incremental re-quest (2581,2681,2781)
Warning point data, in the rectangle on the right side of Fig. 4 shown in the part rectangle B2.
Due to grid regular shape and position fix, every piece of raster data is all to divide processing in advance in server-side.
As long as terminal specified grid number when requesting warning point data every time, server-side can rapidly extracting go out corresponding grid alarm point
File all carries out complicated geographical space calculating sifting warning point data without requesting every time, therefore the load of server-side is able to
It reduces.
In addition, the region once downloaded and the region for needing increment to download all are with grid come tissue, the two regular shape,
Boundary is neat, can flexibly splice, as long as in this way, the raster data downloaded it is not expired can continue use, every time only under
The new raster data of increment is carried, therefore network flow and power consumption of terminal are minimized.
Corresponding, the online casting driving safety prompt constituted used in this application scene based on cache way is
Structure of uniting is as shown in Figure 5, comprising: server-side, mobile communications network and electronic map terminal.
The server-side is used for: warning point data is carried out cutting pretreatment, the corresponding police of each grid according to grid
Show the storage of point data file to server-side;Server-side provides the inspection service of grid alarm point FileVersion, can be according to file version
Whether this number determining data are newest;Server-side provides grid alarm point file download service, can be according to the grid number of request
Download corresponding alarm point data file.Wherein, the server-side includes: whole nation warning point data base, whole for storing
Alarm point data file;The server-side further include: grid cutting preprocessing module, for will warn point data according to grid into
Row cutting pretreatment;The server-side further include: grid alarm point FileVersion checks service module, for receiving electronic map
After terminal checks the request of version information, check whether current alarm point FileVersion is expired;The server-side further include: grid
Lattice alarm point file download service module carries after the downloading for receiving electronic map terminal is requested according in downloading request
Grid number, find out alarm point data file corresponding with grid number, and feed back to electronic map terminal use.
The electronic map terminal is used for: periodically obtaining the current latitude and longitude coordinates of user;It is true by simple mathematical computations
Grid number belonging to certain fixed latitude and longitude coordinates;Check the whether existing required raster file in module check terminal side and for most
Newly, if it exists and to be newest, alarm point broadcasting module is notified to be broadcasted using existing file, otherwise calls grid warning
Dot file download module downloads corresponding grid to server-side request according to grid number and warns dot file.Wherein, it is described electronically
Figure terminal includes: GPS positioning module, for periodically obtaining the current latitude and longitude coordinates of user;The electronic map terminal further include:
Grid mapping block, for obtaining current latitude and longitude coordinates, with the number of grid belonging to the current latitude and longitude coordinates of determination;The electricity
Sub- map terminal further include: grid alarm point file checking module, needed for checking whether module check terminal side is existing
Raster file and to be newest, be that just calling alarm point broadcasting module is broadcasted using existing file, by with server-side
The interaction of version checking request/response be not newest version, then need to re-download the alarm point text of latest edition
Part;The electronic map terminal further include: grid alarm point file download module carries grid number for initiating to server-side
Downloading request, download corresponding grid to be numbered according to grid to server-side request and warn dot file.
The mobile communications network is used for: as the communication channel between electronic map terminal and server-side.
In conclusion mainly including the following contents using the embodiment of the present invention;
1) piecemeal cutting pretreatment, electronic map terminal and clothes are carried out to driving safety warning point data according to fixed-grid
Business end carries out downloading, caching and the update of warning point data as unit of grid, to reduce server load, network flow
And power consumption of terminal.
2) in the grid warning point data downloading process, electronic map terminal requests to download according to grid number to server-side
Raster data, server-side extract corresponding data file according to the grid number of request and return to electronic map terminal.
3) further include in the grid warning point data downloading process adjacent cells association downloading: i.e. electronic map terminal
Every time when downloading warning point data, other than downloading grid locating for current location, also while adjacent thereto other 8 are downloaded
Grid still has the data buffering of at least one grid to guarantee after user is driven out to grid locating for current location, to set aside some time
The data of increment downloading more multi-grid, it is ensured that the continuity of alarm point casting.
4) persistence of data is used to cache during the grid alarm point data buffer storage: the alarm point downloaded
Data file will save before the deadline in electronic map terminal side persistence, next time need again using when directly from electronics
Map terminal side is read, without downloading again from server-side.
5) further include in the grid warning point data downloading process data increment downloading: need to download currently every time
When the warning point data of locating grid and adjacent cells, the local caching for having had which grid is first checked for, is excluded existing
Caching, only the local grid that there is no caching of increment downloading warns point data.
6) detection also is updated by grid in the grid alarm point data updating process: every time using local cache
Before grid warns point data, requests to check whether the version of these data has update first to server-side, be wanted if having update
Local cache is abandoned, newest data are re-downloaded, if the local cache data can be continued to use without update.
7) the driving safety prompt system realized using the above method: grid cutting preprocessing module including server-side,
FileVersion checks service module, file download service module, GPS positioning module, grid mapping including electronic map terminal
Module, grid alarm point file checking module, file download module, alarm point broadcasting module.Wherein, grid warning dot file inspection
Looking into module is core component, determines the availability of warning dot file, and downloads or broadcast according to result trigger data.
It is had the advantages that using the embodiment of the present invention
1, service end load it is low: due to grid regular shape and position fix, every piece of raster data is all in server-side
Processing is divided in advance.As long as terminal specified grid number when requesting warning point data every time, server-side can rapidly extracting go out
Corresponding grid warns dot file, all carries out complicated geographical space calculating sifting warning point data, service without requesting every time
Therefore the load at end is minimized.
2, network flow and power consumption of terminal are low: the region once downloaded and the region for needing increment to download all be with grid come
Tissue, the two regular shape, boundary is neat, can flexibly splice, as long as in this way, the raster data downloaded is not expired can
It is lasting to use, the new raster data of increment is only downloaded every time, therefore network flow and power consumption of terminal are minimized.
If the module integrated described in the embodiment of the present invention is realized in the form of software function module and as independent production
Product when selling or using, also can store in a computer readable storage medium.Based on this understanding, the present invention is real
Applying the technical solution of example, substantially the part that contributes to existing technology can embody in the form of software products in other words
Come, which is stored in a storage medium, including some instructions are used so that a computer equipment (can
To be personal computer, server or network equipment etc.) execute the whole or portion of each embodiment the method for the present invention
Point.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
It is combined in this way, the embodiment of the present invention is not limited to any specific hardware and software.
Correspondingly, the embodiment of the present invention also provides a kind of computer storage medium, wherein it is stored with computer program, the meter
Calculation machine program is used to execute the method for early warning of the online casting driving safety prompt information of the embodiment of the present invention.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (6)
1. a kind of method for early warning of online casting driving safety prompt information, which is characterized in that this method comprises:
Server will warn point data to carry out cutting pretreatment according to grid, obtain the first pretreatment warning point data;Described
One pretreatment warning point data numbers corresponding storage according to grid;
Detection obtains the current latitude and longitude coordinates of user;
According to the current latitude and longitude coordinates of the user, determine that the be subordinate to region of the current latitude and longitude coordinates of the user is corresponding
Grid number;
Terminal judges locally whether be stored with the warning point data or stored warning based on the grid number determined
Whether point data is whether newest data or stored warning point data are expired, obtains judging result;
The judging result is that local not stored to have the alarm point data or stored warning point data be non-current number
According to or stored warning point data it is expired because of version factor when, the terminal to the server initiate carry grid compile
Number downloading request;
The server parses the grid number in the downloading request, numbers to obtain according to the grid and compile with the grid
It number corresponding first pretreatment warning point data and is numbered with the grid and adjacent preset at least one and be associated with grid region
The second corresponding pretreatment warning point data of grid number and return to terminal;The terminal passes through the first pretreatment police
Show that point data enables the early warning casting of safety instruction information;
Second pretreatment warning point data described in the terminal buffers, according to the user, current latitude and longitude coordinates are detected
When through reaching the region where the second pretreatment warning point data corresponds to grid number, triggering is pre-processed by described second
Point data is warned to enable the early warning casting of safety instruction information.
2. the method according to claim 1, wherein this method further include:
The judging result is that when being locally stored with the warning point data and be newest data, the police is locally extracted
Show point data;
The terminal is broadcasted by the early warning that the warning point data enables safety instruction information.
3. the method according to claim 1, wherein the judging result is locally to be stored with the warning
Point data and it is not out of date when, the terminal, which is not necessarily to re-initiate the downloading to the server, requests, and the police is locally extracted
Show point data;
The terminal is broadcasted by the early warning that the warning point data enables safety instruction information.
4. a kind of online early warning system of casting driving safety prompt information, which is characterized in that the system includes:
Pretreatment unit obtains the first pretreatment warning points for point data will to be warned to carry out cutting pretreatment according to grid
According to;The first pretreatment warning point data numbers corresponding storage according to grid;
Detection unit obtains the current latitude and longitude coordinates of user for detecting;
Grid number determination unit determines the current longitude and latitude of the user for the latitude and longitude coordinates current according to the user
Spend the corresponding grid number in the be subordinate to region of coordinate;
Judging unit, for terminal based on determined grid number judge local whether be stored with the warning point data or
Whether stored warning point data is whether newest data or stored warning point data are expired, obtains judging result;
Request initiating cell has the alarm point data or stored alarm point for the judging result to be locally not stored
When data are non-current data or stored warning point data expired because of version factor, the terminal to server hair
Act the downloading request for carrying grid number;
Resolution unit parses the grid number in the downloading request for the server, is numbered according to the grid
To numbering corresponding first pretreatment warning point data with the grid and with the grid number adjacent default at least one
The second corresponding pretreatment warning point data of the grid number of a association grid region simultaneously returns to terminal;
Unit is broadcasted, is broadcast for the terminal by the early warning that the first pretreatment warning point data enables safety instruction information
Report is also used to the second pretreatment warning point data described in the terminal buffers, is examined according to the current latitude and longitude coordinates of the user
It measures when having arrived at the region where the second pretreatment warning point data correspond to grid number, triggering is by described second
Pretreatment warning point data enables the early warning casting of safety instruction information.
5. system according to claim 4, which is characterized in that the casting unit is further used for the judging result
When to be locally stored with the warning point data and be newest data, the warning point data, the end is locally extracted
It is broadcasted by the early warning that the warning point data enables safety instruction information at end.
6. system according to claim 4, which is characterized in that the casting unit is further used for the judging result
For it is local be stored with the warning point data and it is not out of date when, described in the terminal is not necessarily to re-initiate to the server
Downloading request, is locally extracted the warning point data, and the terminal enables safety instruction information by the warning point data
Early warning casting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510011666.1A CN105827579B (en) | 2015-01-09 | 2015-01-09 | A kind of method for early warning and system of online casting driving safety prompt information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510011666.1A CN105827579B (en) | 2015-01-09 | 2015-01-09 | A kind of method for early warning and system of online casting driving safety prompt information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105827579A CN105827579A (en) | 2016-08-03 |
CN105827579B true CN105827579B (en) | 2019-03-05 |
Family
ID=56514207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510011666.1A Active CN105827579B (en) | 2015-01-09 | 2015-01-09 | A kind of method for early warning and system of online casting driving safety prompt information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105827579B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134755B (en) * | 2019-05-28 | 2021-06-01 | 北京百度网讯科技有限公司 | Map updating method, device, equipment, server and medium |
CN113420108A (en) * | 2021-07-20 | 2021-09-21 | 广州小鹏自动驾驶科技有限公司 | Map data access method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1766670A (en) * | 2004-10-26 | 2006-05-03 | 精工爱普生株式会社 | Positioning system, terminal device, information provision device, terminal device's control method, and terminal device's control program |
CN1782666A (en) * | 2004-12-02 | 2006-06-07 | 日本先锋公司 | Information updating device, information distributing device, information processing system and method thereof |
CN101206805A (en) * | 2007-11-23 | 2008-06-25 | 深圳市同洲电子股份有限公司 | Method, equipment and system for implementing navigation alarm |
CN101477748A (en) * | 2009-01-19 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Traffic condition management method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2284490A4 (en) * | 2008-04-30 | 2012-08-01 | Clarion Co Ltd | Map display |
-
2015
- 2015-01-09 CN CN201510011666.1A patent/CN105827579B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1766670A (en) * | 2004-10-26 | 2006-05-03 | 精工爱普生株式会社 | Positioning system, terminal device, information provision device, terminal device's control method, and terminal device's control program |
CN1782666A (en) * | 2004-12-02 | 2006-06-07 | 日本先锋公司 | Information updating device, information distributing device, information processing system and method thereof |
CN101206805A (en) * | 2007-11-23 | 2008-06-25 | 深圳市同洲电子股份有限公司 | Method, equipment and system for implementing navigation alarm |
CN101477748A (en) * | 2009-01-19 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Traffic condition management method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105827579A (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11061984B2 (en) | Grid-based geofence data indexing | |
US11059485B2 (en) | Lane selection method, target vehicle and computer storage medium | |
EP2957870B1 (en) | Integrating online navigation data with cached navigation data during active navigation | |
WO2021036464A1 (en) | Map data query method and apparatus, computer device, and storage medium | |
CN109313642B (en) | Bill information caching method, bill information query method and terminal equipment | |
US20170116852A1 (en) | Method and system for intelligent traffic jam detection | |
CN105992338B (en) | Positioning method and device | |
CN112243506B (en) | Data processing system and method | |
US10909766B2 (en) | Video map engine system | |
CN105827579B (en) | A kind of method for early warning and system of online casting driving safety prompt information | |
US20190268402A1 (en) | Distributed computing of vehicle data | |
CN109086307A (en) | The method and device of file process | |
CN105391642A (en) | Data traffic saving method and data traffic saving device | |
CN108763374B (en) | Driving path display method, device and equipment | |
CN111125681A (en) | Service processing method, device and storage medium | |
CN108738117B (en) | Method for optimizing power consumption of application program and terminal | |
CN112507205B (en) | Data management method and device | |
CN110686690A (en) | Road condition information display method and system | |
CN114445520A (en) | Lane line rendering method, lane line rendering device and computer-readable storage medium | |
CN103325244A (en) | Traffic violation management system based on 3D PGIS and WSN | |
JP6303569B2 (en) | Notification location selection method, notification location selection device, notification location selection program, and method for providing notification processing | |
CN112148554A (en) | Method and device for calculating occupation size of redis service data in real time | |
CN105791888A (en) | Video analyzing method and video analyzing device | |
CN112133105B (en) | Traffic flow prediction support device and traffic flow prediction support method | |
CN108093022B (en) | Request sharing device and method for online map |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |