CN106850709A - A kind of road condition data loading method and device - Google Patents
A kind of road condition data loading method and device Download PDFInfo
- Publication number
- CN106850709A CN106850709A CN201510883208.7A CN201510883208A CN106850709A CN 106850709 A CN106850709 A CN 106850709A CN 201510883208 A CN201510883208 A CN 201510883208A CN 106850709 A CN106850709 A CN 106850709A
- Authority
- CN
- China
- Prior art keywords
- loading
- road condition
- condition data
- data
- regional extent
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/25—Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The embodiment of the invention discloses a kind of road condition data loading method, including:The road condition data request that user terminal sends is received, the road condition data request includes location point, current point in time and current network state;According to the location point, the current point in time and the current network state, searched from preset loading tables of data and the location point, the current point in time and the corresponding loading area scope of the current network state;It is determined that the road condition data in the range of the loading area for finding;Road condition data in the range of the loading area scope and the loading area of determination is returned into the user terminal, so that the user terminal is based on the loading area scope and loads the road condition data in the range of the loading area and show.The embodiment of the invention also discloses a kind of road condition data loading device.Using the embodiment of the present invention, the success rate of road condition data loading can be improved, while saving data traffic and electric quantity consumption.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of road condition data loading method and device.
Background technology
Common map software, for example:Tengxun's map, moral map high etc., all support real-time road data
Display, according to real-time road condition information, user can more reasonably arrange travel route, improve effect of handling affairs
Rate.Road condition data is real-time change, and in order to more accurately show road conditions, front end termination needs periodically
Interacted with background server, load road condition data and then more variation route road conditions.Frequently data interaction,
The continuous consuming of flow and electricity can be caused.
In the prior art scheme, the strategy of loading road condition data includes:First, the loading of whole city city, the party
Method is that disposably all of road condition data in whole city is all loaded into, and the advantage of this method is to realize
Logic is simple, has the disadvantage that the road condition data not in the visual field is not utilized, and causes flow to waste, if
In the case of network quality difference, because flow is bigger than normal, the mortality of road condition data loading increases.Second, base
In the loading strategy of present viewing field, the method is that appropriate expansion, the purpose of expansion are carried out to the current visual field
It is the frequent loading of the road condition data caused by the minor variations in order to avoid present viewing field scope.Common expansion
It is that 9 palace lattice expand to fill strategy, as shown in figure 1, due to having carried out appropriate expansion, present viewing field is upper and lower
When carrying out a range of mobile on 8 directions such as left and right, road condition data need not be loaded.But, 9 palace lattice
There are the following problems for loading road condition data:The problem that flow may be produced excessive or too small;When not accounting for
Between factor, for example:In different times such as early evening peak, the difference of road condition data amount is larger in same range
, cause the unstable of flow;Different wireless network environments are not accounted for, for example:In different network bars
Under part (2G/3G/4G/WIFI), the possibility of the data volume loading failure of same range size is different;
The jam situation of different cities is not accounted for.
The content of the invention
The embodiment of the present invention provides a kind of road condition data loading method and device.May be referred to different time sections,
The history loading record of the road condition data under different network environments and different location, to current road condition data
Loaded, so as to improve the success rate of road condition data loading, while saving data traffic and electricity disappears
Consumption.
A kind of road condition data loading method is the embodiment of the invention provides, including:
Receive the road condition data request that user terminal sends, road condition data request includes location point, currently
Time point and current network state;
According to the location point, the current point in time and the current network state, from preset loading
Searched in tables of data with the location point, the current point in time and the current network state it is corresponding plus
Regional extent is carried, wherein, the preset loading tables of data includes positional information, time interval and network
Multiple corresponding relations of environment and loading area scope;
It is determined that the road condition data in the range of the loading area for finding;
Road condition data in the range of the loading area scope and the loading area of determination is returned into institute
User terminal is stated, so that the user terminal is based on the loading area scope and loads the loading area scope
Interior road condition data simultaneously shows.
Wherein, the road condition data request also includes request regional extent, described from preset loading tables of data
Middle lookup and the location point, the current point in time and the corresponding loading area of the current network state
After scope, methods described also includes:
The loading area scope that will be found is made comparisons with the request regional extent;
If the loading area scope for finding is more than the request regional extent, to the request region
Scope is enlarged;
It is determined that expand after the request regional extent in road condition data;
The road conditions number in the request regional extent after the request regional extent and expansion after will be enlarged by
According to returning to the user terminal.
Wherein, before the road condition data request for receiving user terminal transmission, methods described also includes:
Obtain target position information;
Default time span is divided into multiple time intervals, statistics target in the multiple time interval
The average discharge of the interior road condition data loaded using objective network in the regional extent being pre-configured with of time interval;
By the object time interval interior road conditions number loaded using objective network in the regional extent being pre-configured with
According to average discharge made comparisons with the preset flow thresholding of the objective network;
According to comparative result, target loading area scope is determined;
Set up the interval target position information, the object time and the target networking and the target
The corresponding relation of loading area scope and then obtain the preset loading tables of data.
Wherein, it is described according to comparative result, determine that target loading area scope includes:
If using the regional extent being pre-configured with described in objective network loading in the object time is interval
Preset flow thresholding of the average discharge of interior road condition data less than the objective network, it is determined that described advance
Whether the regional extent of configuration includes designated area scope;
When it is determined that the regional extent being pre-configured with is comprising the designated area scope, by the specified area
Domain scope is used as the target loading area scope.
Wherein, the object time is interval including multiple report cycles, and the statistics is in the multiple time zone
Between middle object time it is interval in putting down for road condition data in the regional extent being pre-configured with is loaded using objective network
Equal flow includes:
Receive the user terminal described pre- every the use objective network loading that the report cycle sends
The data traffic of the road condition data in regional extent for first configuring;
According to the data traffic received every the report cycle, the average discharge is calculated.
Wherein, methods described also includes:
The preset loading tables of data is updated according to default time interval.
Correspondingly, a kind of road condition data loading device is the embodiment of the invention provides, including:
Request receiving module, the road condition data request for receiving user terminal transmission, the road condition data please
Ask including location point, current point in time and current network state;
Range-based searching module, for according to the location point, the current point in time and the current network
State, searched from preset loading tables of data with the location point, the current point in time and it is described work as
The corresponding loading area scope of preceding network state, wherein, the preset loading tables of data include positional information,
Multiple corresponding relations of time interval and network environment and loading area scope;
Data determining module, the road condition data in the range of the loading area found for determination;
Data transmission blocks, for by the range of the loading area of the loading area scope and determination
Road condition data return to the user terminal so that the user terminal is added based on the loading area scope
Carry the road condition data in the range of the loading area and show.
Wherein, the road condition data request also includes request regional extent, and described device is also including scope treatment
Module, the scope processing module is used for:
The loading area scope that will be found is made comparisons with the request regional extent;
If the loading area scope for finding is more than the request regional extent, to the request region
Scope is enlarged;
It is determined that expand after the request regional extent in road condition data;
The road conditions number in the request regional extent after the request regional extent and expansion after will be enlarged by
According to returning to the user terminal.
Wherein, described device also includes:
Data obtaining module, for obtaining target position information;
Flow statistical module, for default time span to be divided into multiple time intervals, counts described
The object time interval interior road loaded using objective network in the regional extent being pre-configured with multiple time intervals
The average discharge of condition data;
Flow comparison module, for by the object time it is interval in be pre-configured with using objective network loading
The average discharge of the road condition data in regional extent is made comparisons with the preset flow thresholding of the objective network;
Range determination module, for according to comparative result, determining target loading area scope;
Relation sets up module, interval and described for setting up the target position information, the object time
The corresponding relation of target networking and the target loading area scope and then obtain the preset loading data
Table.
Wherein, the range determination module specifically for:
If using the regional extent being pre-configured with described in objective network loading in the object time is interval
Preset flow thresholding of the average discharge of interior road condition data less than the objective network, it is determined that described advance
Whether the regional extent of configuration includes designated area scope;
When it is determined that the regional extent being pre-configured with is comprising the designated area scope, by the specified area
Domain scope is used as the target loading area scope.
Wherein, object time it is interval include multiple report cycles, the flow statistical module specifically for:
Receive the user terminal described pre- every the use objective network loading that the report cycle sends
The data traffic of the road condition data in regional extent for first configuring;
According to the data traffic received every the report cycle, the average discharge is calculated.
Wherein, described device also includes data update module, and the data update module is used for:
The preset loading tables of data is updated according to default time interval.
Implement the embodiment of the present invention, the road condition data request that user terminal sends is received first, road condition data please
Ask including location point, current point in time and current network state;Then according to location point, current point in time
And current network state, from preset loading tables of data search with location point, current point in time and work as
The corresponding loading area scope of preceding network state, wherein, preset loading tables of data include positional information, when
Between interval and network environment and loading area scope multiple corresponding relations;Secondly the loading for finding is determined
Road condition data in regional extent;Finally by the road in the range of loading area scope and the loading area of determination
Condition data return to user terminal, so that user terminal is based in the range of loading area scope loading loading area
Road condition data and show.May be referred to the road under different time sections, different network environments and different location
The history loading record of condition data, loads to current road condition data, adds so as to improve road condition data
The success rate of load, while saving data traffic and electric quantity consumption.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to needed for embodiment description
The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are more of the invention
Embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, may be used also
Other accompanying drawings are obtained with according to these accompanying drawings.
Fig. 1 is a kind of loading schematic diagram of road condition data of offer in prior art;
Fig. 2 is a kind of flow chart of the first embodiment of road condition data loading method proposed by the present invention;
Fig. 3 is a kind of flow chart of the second embodiment of road condition data loading method proposed by the present invention;
Fig. 4 is a kind of structural representation of road condition data loading device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is a part of embodiment of the invention, rather than whole
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor
The every other embodiment obtained under the premise of dynamic, belongs to the scope of protection of the invention.
Fig. 2 is refer to, Fig. 2 is a kind of stream of the first embodiment of road condition data loading method proposed by the present invention
Cheng Tu.As illustrated, the executive agent in the embodiment of the present invention can be server.In the embodiment of the present invention
Method include:
S201, receives the road condition data request that user terminal sends, road condition data request include location point,
Current point in time and current network state.
In implementing, user terminal can determine to be currently needed for first the road condition data of loading location point,
Current point in time and current network state, then send to server and carry location point, current point in time
And the road condition data request of current network state, the road condition data request that server reception user terminal sends.
Wherein, current network state can include multiple network formats, such as:2G/3G/4G/WIFI etc..The road
Condition request of data can also include request regional extent, the request regional extent by user terminal display screen
The scaling size of curtain size and map determines.
S202, according to the location point, the current point in time and the current network state, from preset
Loading tables of data in search and the location point, the current point in time and the current network state pair
The loading area scope answered, wherein, the preset loading tables of data include positional information, time interval with
And multiple corresponding relations of network environment and loading area scope.
In implementing, position corresponding with location point can be searched first in the preset loading tables of data
Confidence ceases, after positional information determination, the time interval where searching current point in time, in time interval
It is determined that afterwards, search the corresponding network environment of current network state, thus finally find with location point, when
Preceding time point and the corresponding loading area scope of current network state.
Optionally, position letter corresponding with location point can be searched first in the preset loading tables of data
Breath, after positional information determination, searches the corresponding network environment of current network state, true in network environment
After fixed, the time interval where searching current point in time so that finally find with location point, it is current when
Between point and the corresponding loading area scope of current network state.
For example:Preset loading tables of data includes multiple time intervals, multiple positional informations and multiple network
Environment.Because the uninterrupted of road condition data in the time is different, the time can be divided into 4
Time interval, interval 1 [7:30,9:30), interval 2 [9:30,16:30), interval 3 [16:30,20:00), area
Between 4 [20:00,7:30), due under the different network environments of 2G/3G/4G/WIFI, loading formed objects data
The mortality of amount is different, therefore may be set in the traffic threshold under different network environments, such as:2G
(5K);3G(10K);4G(20K);WIFI(40K).Multiple positional informations can be different cities.
Therefore preset loading tables of data can include:Interval 1 [7:30,9:30), 2G (5K), Beijing correspondence are loaded
Regional extent 1, interval 1 [7:30,9:30), 3G (10K), the corresponding loading area scope 2 in Shenzhen, interval 2
[9:30,16:30), 4G (20K), the corresponding loading area scope 3 in Shenzhen etc..When location point be Shenzhen, when
Preceding time point is that 10 points and current network state are 4G, then can be found from preset loading tables of data
Loading area scope 3.
S203, it is determined that the road condition data in the range of the loading area for finding.
S204, the road condition data in the range of the loading area scope and the loading area of determination is returned
Back to the user terminal, so that the user terminal is based on the loading area scope and loads the loading zone
Road condition data in the range of domain simultaneously shows.
In implementing, what user terminal the reception server in the case where current network state is met sent adds
The road condition data in the range of the loading area of regional extent and determination is carried, therefore, reduce road conditions number
According to the probability of loading failure.The loading area model of loading area scope and determination is received in user terminal
After road condition data in enclosing, the road condition data in the range of loading area is only shown in display screen, due to ginseng
The history loading record of the road condition data under different time sections, different network environments and different location is examined, is made
The loading area scope that shows of display screen is more reasonable.
Optionally, searched from preset loading tables of data with the location point, the current point in time and
After the corresponding loading area scope of the current network state, the loading area model that will can be found
Enclose and made comparisons with the request regional extent;If the loading area scope for finding is more than the request area
Domain scope, then be enlarged to the request regional extent, further, can keep request central point not
Become and request regional extent is enlarged, until loading area scope is not more than request regional extent;It is determined that expanding
The road condition data in the request regional extent after big;The request regional extent and expansion after will be enlarged by
The road condition data in the request regional extent after big returns to the user terminal.
In embodiments of the present invention, the road condition data request that user terminal sends is received first, and road condition data please
Ask including location point, current point in time and current network state;Then according to location point, current point in time
And current network state, from preset loading tables of data search with location point, current point in time and work as
The corresponding loading area scope of preceding network state, wherein, preset loading tables of data include positional information, when
Between interval and network environment and loading area scope multiple corresponding relations;Secondly the loading for finding is determined
Road condition data in regional extent;Finally by the road in the range of loading area scope and the loading area of determination
Condition data return to user terminal, so that user terminal is based in the range of loading area scope loading loading area
Road condition data and show.May be referred to the road under different time sections, different network environments and different location
The history loading record of condition data, loads to current road condition data, adds so as to improve road condition data
The success rate of load, while saving data traffic and electric quantity consumption.
Fig. 3 is refer to, Fig. 3 is a kind of stream of the second embodiment of road condition data loading method proposed by the present invention
Cheng Tu.As illustrated, the method in the embodiment of the present invention includes:
S301, obtains target position information.
In implementing, positional information can include multiple cities, can set given city as target position
Confidence ceases, and then completes the data statistics in given city.
S302, multiple time intervals are divided into by default time span, are counted in the multiple time interval
The road condition data in regional extent being pre-configured with using objective network loading in middle object time is interval it is average
Flow.
In implementing, because the uninterrupted of road condition data in the time is different, can be by the time
It is divided into 4 time intervals, interval 1 [7:30,9:30), interval 2 [9:30,16:30), interval 3 [16:30,
20:00), interval 4 [20:00,7:30), objective network can be set as 2G/3G/4G/WIFI etc., match somebody with somebody in advance
The regional extent put can be the regional extent of first setting, high 300 meters such as centered on the point of down town,
It is wide 400 meters, or the prime area scope after expansion.The user terminal can be received every described
The road condition data in regional extent being pre-configured with described in the use objective network loading that report cycle sends
Data traffic;According to the data traffic received every the report cycle, the mean flow is calculated
Amount.Wherein, object time interval can include multiple report cycles, for example:Interval 1 [7:30,9:30)
In can report a road condition data every 1 minute or 5 minutes, statistics uses the target network each time
The data traffic of the road condition data in regional extent being pre-configured with described in network loading, then calculates data traffic
Sum, finally obtains average discharge by data traffic sum divided by the total degree for reporting.
S303, by the object time it is interval in the regional extent that is pre-configured with using objective network loading
The average discharge of road condition data is made comparisons with the preset flow thresholding of the objective network.
For example, objective network can be 2G/3G/4G/WIFI, the traffic threshold for setting 2G networks is 5K;
The traffic threshold of 3G network is 10K;The traffic threshold of 4G networks is 20K;The traffic threshold of WIFI network
It is 40K., but it is not limited to above-mentioned value.
S304, according to comparative result, determines target loading area scope.
In implementing, if matching somebody with somebody in advance using objective network loading is described in the object time is interval
The average discharge of the road condition data in regional extent put is less than the preset flow thresholding of the objective network, then
It is determined that whether the regional extent being pre-configured with is comprising designated area scope;When it is determined that described be pre-configured with
When regional extent includes the designated area scope, using the designated area scope as the target loading zone
Domain scope.When it is determined that the regional extent being pre-configured with not all comprising the designated area scope when, it is right
The regional extent of first setting is enlarged, and such as centered on the point of down town, height expands 400 meters, expansion wide
300 meters are filled, S302 is re-executed, statistics is loaded after expanding in the object time is interval using objective network
The average discharge of the road condition data in regional extent, will be loaded using objective network in the object time is interval and expanded
The average discharge of the road condition data in regional extent after big is made to compare with the preset flow thresholding of the objective network
Compared with, and then both are compared again.If after loading expansion using objective network in the object time is interval
Regional extent in road condition data average discharge not less than the objective network preset flow thresholding, then
Using the regional extent before expansion as target loading area scope.
S305, sets up the interval target position information, the object time and the target networking and institute
State the corresponding relation of target loading area scope and then obtain the preset loading tables of data.
For example:The loading tables of data of foundation can be:Interval 1 [7:30,9:30), 2G (5K), Beijing correspondence
Loading area scope 1, interval 1 [7:30,9:30), 3G (10K), the corresponding loading area scope 2 in Shenzhen, area
Between 2 [9:30,16:30), 4G (20K), the corresponding loading area scope 3 in Shenzhen etc..
Optionally, the preset loading tables of data is updated according to default time interval.Due to road
Condition data are continuous in renewal, therefore in order to meet the loading requirement of newest road condition data, it is necessary to periodically to preset
Loading tables of data be updated.Wherein, default time interval can not be one month or two weeks, but not
It is confined to above-mentioned value.
S306, receives the road condition data request that user terminal sends, road condition data request include location point,
Current point in time and current network state.
In implementing, user terminal can determine to be currently needed for first the road condition data of loading location point,
Current point in time and current network state, then send to server and carry location point, current point in time
And the road condition data request of current network state, the road condition data request that server reception user terminal sends.
Wherein, current network state can include multiple network formats, such as:2G/3G/4G/WIFI etc..The road
Condition request of data can also include request regional extent, the request regional extent by user terminal display screen
The scaling size of curtain size and map determines.
S307, according to the location point, the current point in time and the current network state, from preset
Loading tables of data in search and the location point, the current point in time and the current network state pair
The loading area scope answered, wherein, the preset loading tables of data include positional information, time interval with
And multiple corresponding relations of network environment and loading area scope.
In implementing, position corresponding with location point can be searched first in the preset loading tables of data
Confidence ceases, after positional information determination, the time interval where searching current point in time, in time interval
It is determined that afterwards, search the corresponding network environment of current network state, thus finally find with location point, when
Preceding time point and the corresponding loading area scope of current network state.
Optionally, position letter corresponding with location point can be searched first in the preset loading tables of data
Breath, after positional information determination, searches the corresponding network environment of current network state, true in network environment
After fixed, the time interval where searching current point in time so that finally find with location point, it is current when
Between point and the corresponding loading area scope of current network state.
For example:Preset loading tables of data includes multiple time intervals, multiple positional informations and multiple network
Environment.Because the uninterrupted of road condition data in the time is different, the time can be divided into 4
Time interval, interval 1 [7:30,9:30), interval 2 [9:30,16:30), interval 3 [16:30,20:00), area
Between 4 [20:00,7:30);Due under the different network environments of 2G/3G/4G/WIFI, loading formed objects data
The mortality of amount is different, therefore may be set in the traffic threshold under different network environments, such as:2G
(5K);3G(10K);4G(20K);WIFI(40K).Multiple positional informations can be different cities.
Therefore preset loading tables of data can include:Interval 1 [7:30,9:30), 2G (5K), Beijing correspondence are loaded
Regional extent 1, interval 1 [7:30,9:30), 3G (10K), the corresponding loading area scope 2 in Shenzhen, interval 2
[9:30,16:30), 4G (20K), the corresponding loading area scope 3 in Shenzhen etc..When location point be Shenzhen, when
Preceding time point is that 10 points and current network state are 4G, then can be found from preset loading tables of data
Loading area scope 3.
S308, it is determined that the road condition data in the range of the loading area for finding.
S309, the road condition data in the range of the loading area scope and the loading area of determination is returned
Back to the user terminal, so that the user terminal is based on the loading area scope and loads the loading zone
Road condition data in the range of domain simultaneously shows.
In implementing, what user terminal the reception server in the case where current network state is met sent adds
The road condition data in the range of the loading area of regional extent and determination is carried, therefore, reduce road conditions number
According to the probability of loading failure.The loading area model of loading area scope and determination is received in user terminal
After road condition data in enclosing, the road condition data in the range of loading area is only shown in display screen, due to ginseng
The history loading record of the road condition data under different time sections, different network environments and different location is examined, is made
The loading area scope that shows of display screen is more reasonable.
Optionally, searched from preset loading tables of data with the location point, the current point in time and
After the corresponding loading area scope of the current network state, the loading area model that will can be found
Enclose and made comparisons with the request regional extent;If the loading area scope for finding is more than the request area
Domain scope, then be enlarged to the request regional extent, further, can keep request central point not
Become and request regional extent is enlarged, until loading area scope is not more than request regional extent;It is determined that expanding
The road condition data in the request regional extent after big;The request regional extent and expansion after will be enlarged by
The road condition data in the request regional extent after big returns to the user terminal.
In embodiments of the present invention, the road condition data request that user terminal sends is received first, and road condition data please
Ask including location point, current point in time and current network state;Then according to location point, current point in time
And current network state, from preset loading tables of data search with location point, current point in time and work as
The corresponding loading area scope of preceding network state, wherein, preset loading tables of data include positional information, when
Between interval and network environment and loading area scope multiple corresponding relations;Secondly the loading for finding is determined
Road condition data in regional extent;Finally by the road in the range of loading area scope and the loading area of determination
Condition data return to user terminal, so that user terminal is based in the range of loading area scope loading loading area
Road condition data and show.May be referred to the road under different time sections, different network environments and different location
The history loading record of condition data, loads to current road condition data, adds so as to improve road condition data
The success rate of load, while saving data traffic and electric quantity consumption.
Fig. 4 is refer to, Fig. 4 is a kind of structural representation of road condition data loading device provided in an embodiment of the present invention
Figure.As illustrated, the device in the embodiment of the present invention can include:
Request receiving module 401, the road condition data request for receiving user terminal transmission, the road condition data
Request includes location point, current point in time and current network state.
In implementing, user terminal can determine to be currently needed for first the road condition data of loading location point,
Current point in time and current network state, then send to server and carry location point, current point in time
And the road condition data request of current network state, the road condition data request that server reception user terminal sends.
Wherein, current network state can include multiple network formats, such as:2G/3G/4G/WIFI etc..The road
Condition request of data can also include request regional extent, the request regional extent by user terminal display screen
The scaling size of curtain size and map determines.
Range-based searching module 402, for according to the location point, the current point in time and the current net
Network state, searches and the location point, the current point in time and described from preset loading tables of data
The corresponding loading area scope of current network state, wherein, the preset loading tables of data is believed including position
Multiple corresponding relations of breath, time interval and network environment and loading area scope.
In implementing, position corresponding with location point can be searched first in the preset loading tables of data
Confidence ceases, after positional information determination, the time interval where searching current point in time, in time interval
It is determined that afterwards, search the corresponding network environment of current network state, thus finally find with location point, when
Preceding time point and the corresponding loading area scope of current network state.
Optionally, position letter corresponding with location point can be searched first in the preset loading tables of data
Breath, after positional information determination, searches the corresponding network environment of current network state, true in network environment
After fixed, the time interval where searching current point in time so that finally find with location point, it is current when
Between point and the corresponding loading area scope of current network state.
For example:Preset loading tables of data includes multiple time intervals, multiple positional informations and multiple network
Environment.Because the uninterrupted of road condition data in the time is different, the time can be divided into 4
Time interval, interval 1 [7:30,9:30), interval 2 [9:30,16:30), interval 3 [16:30,20:00), area
Between 4 [20:00,7:30);Due under the different network environments of 2G/3G/4G/WIFI, loading formed objects data
The mortality of amount is different, therefore may be set in the traffic threshold under different network environments, such as:2G
(5K);3G(10K);4G(20K);WIFI(40K).Multiple positional informations can be different cities.
Therefore preset loading tables of data can include:Interval 1 [7:30,9:30), 2G (5K), Beijing correspondence are loaded
Regional extent 1, interval 1 [7:30,9:30), 3G (10K), the corresponding loading area scope 2 in Shenzhen, interval 2
[9:30,16:30), 4G (20K), the corresponding loading area scope 3 in Shenzhen etc..When location point be Shenzhen, when
Preceding time point is that 10 points and current network state are 4G, then can be found from preset loading tables of data
Loading area scope 3.
Data determining module 403, the road condition data in the range of the loading area found for determination.
Data transmission blocks 404, for by the loading area scope of the loading area scope and determination
Interior road condition data returns to the user terminal, so that the user terminal is based on the loading area scope
Load the road condition data in the range of the loading area and show.
In implementing, what user terminal the reception server in the case where current network state is met sent adds
The road condition data in the range of the loading area of regional extent and determination is carried, therefore, reduce road conditions number
According to the probability of loading failure.The loading area model of loading area scope and determination is received in user terminal
After road condition data in enclosing, the road condition data in the range of loading area is only shown in display screen, due to ginseng
The history loading record of the road condition data under different time sections, different network environments and different location is examined, is made
The loading area scope that shows of display screen is more reasonable.
Optionally, searched from preset loading tables of data with the location point, the current point in time and
After the corresponding loading area scope of the current network state, the loading area model that will can be found
Enclose and made comparisons with the request regional extent;If the loading area scope for finding is more than the request area
Domain scope, then be enlarged to the request regional extent, further, can keep request central point not
Become and request regional extent is enlarged, until loading area scope is not more than request regional extent;It is determined that expanding
The road condition data in the request regional extent after big;The request regional extent and expansion after will be enlarged by
The road condition data in the request regional extent after big returns to the user terminal.
Optionally, as shown in figure 4, the device in the embodiment of the present invention can further include:
Data obtaining module 405, for obtaining target position information.
In implementing, positional information can include multiple cities, can set given city as target position
Confidence ceases, and then completes the data statistics in given city.
Flow statistical module 406, for default time span to be divided into multiple time intervals, counts in institute
State the object time in multiple time intervals it is interval in the regional extent that is pre-configured with using objective network loading
The average discharge of road condition data.
In implementing, because the uninterrupted of road condition data in the time is different, can be by the time
It is divided into 4 time intervals, interval 1 [7:30,9:30), interval 2 [9:30,16:30), interval 3 [16:30,
20:00), interval 4 [20:00,7:30), objective network can be set as 2G/3G/4G/WIFI etc., match somebody with somebody in advance
The regional extent put can be the regional extent of first setting, high 300 meters such as centered on the point of down town,
It is wide 400 meters, or the prime area scope after expansion.The user terminal can be received every described
The road condition data in regional extent being pre-configured with described in the use objective network loading that report cycle sends
Data traffic;According to the data traffic received every the report cycle, the mean flow is calculated
Amount.Wherein, object time interval can include multiple report cycles, for example:Interval 1 [7:30,9:30)
In can report a road condition data every 1 minute or 5 minutes, statistics uses the target network each time
The data traffic of the road condition data in regional extent being pre-configured with described in network loading, then calculates data traffic
Sum, finally obtains average discharge by data traffic sum divided by the total degree for reporting.
Flow comparison module 407, for the object time interval interior loading using objective network to be pre-configured with
Regional extent in the average discharge of road condition data made comparisons with the preset flow thresholding of the objective network.
For example, objective network can be 2G/3G/4G/WIFI, the traffic threshold for setting 2G networks is 5K;
The traffic threshold of 3G network is 10K;The traffic threshold of 4G networks is 20K;The traffic threshold of WIFI network
It is 40K., but it is not limited to above-mentioned value.
Range determination module 408, for according to comparative result, determining target loading area scope.
In implementing, if matching somebody with somebody in advance using objective network loading is described in the object time is interval
The average discharge of the road condition data in regional extent put is less than the preset flow thresholding of the objective network, then
It is determined that whether the regional extent being pre-configured with is comprising designated area scope;When it is determined that described be pre-configured with
When regional extent includes the designated area scope, using the designated area scope as the target loading zone
Domain scope.When it is determined that the regional extent being pre-configured with not all comprising the designated area scope when, it is right
The regional extent of first setting is enlarged, and such as centered on the point of down town, height expands 400 meters, expansion wide
300 meters are filled, flow statistical module 406 is re-executed, statistics is added in the object time is interval using objective network
The average discharge of the road condition data in the regional extent after expanding is carried, target will be used in the object time is interval
The average discharge of the road condition data in regional extent after network loading expansion and the default stream of the objective network
Amount thresholding is made comparisons, and then both are compared again.If using objective network in the object time is interval
The default stream of the average discharge not less than the objective network of the road condition data in regional extent after loading expansion
Amount thresholding, then use the regional extent before expanding as target loading area scope.
Relation sets up module 409, for setting up the target position information, object time interval and institute
State the corresponding relation at target networking and the target loading area scope and then obtain the preset loading data
Table.
For example:The loading tables of data of foundation can be:Interval 1 [7:30,9:30), 2G (5K), Beijing correspondence
Loading area scope 1, interval 1 [7:30,9:30), 3G (10K), the corresponding loading area scope 2 in Shenzhen, area
Between 2 [9:30,16:30), 4G (20K), the corresponding loading area scope 3 in Shenzhen etc..
Optionally, as shown in figure 4, the device in the embodiment of the present invention can further include:
Data update module 410, for being carried out to the preset loading tables of data according to default time interval
Update.Because road condition data is constantly in renewal, therefore in order to meet the loading requirement of newest road condition data, need
Periodically preset loading tables of data is updated.Wherein, default time interval can for one month or
Two weeks, but it is not limited to above-mentioned value.
In embodiments of the present invention, the road condition data request that user terminal sends is received first, and road condition data please
Ask including location point, current point in time and current network state;Then according to location point, current point in time
And current network state, from preset loading tables of data search with location point, current point in time and work as
The corresponding loading area scope of preceding network state, wherein, preset loading tables of data include positional information, when
Between interval and network environment and loading area scope multiple corresponding relations;Secondly the loading for finding is determined
Road condition data in regional extent;Finally by the road in the range of loading area scope and the loading area of determination
Condition data return to user terminal, so that user terminal is based in the range of loading area scope loading loading area
Road condition data and show.May be referred to the road under different time sections, different network environments and different location
The history loading record of condition data, loads to current road condition data, adds so as to improve road condition data
The success rate of load, while saving data traffic and electric quantity consumption.
It should be noted that for each foregoing embodiment of the method, in order to be briefly described, therefore by its all table
It is a series of combination of actions to state, but those skilled in the art should know, the present invention is not by described
Sequence of movement limitation because according to the present invention, certain some step can using other order or simultaneously
Carry out.Secondly, those skilled in the art should also know, embodiment described in this description belongs to excellent
Embodiment is selected, necessary to involved action and the module not necessarily present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed in certain embodiment
The part of thin description, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment
Program be can be by instruct the hardware of correlation to complete, the program can be stored in a computer-readable and deposit
In storage media, storage medium can include:Flash disk, read-only storage (English:Read-Only Memory,
Referred to as:ROM), random access device (English:Random Access Memory, referred to as:RAM), magnetic
Disk or CD etc..
The content download method and relevant device that are there is provided the embodiment of the present invention above, system have been carried out in detail
Introduce, specific case used herein is set forth to principle of the invention and implementation method, above reality
The explanation for applying example is only intended to help and understands the method for the present invention and its core concept;Simultaneously for this area
Those skilled in the art, according to thought of the invention, have change in specific embodiments and applications
Become part, in sum, this specification content should not be construed as limiting the invention.
Claims (12)
1. a kind of road condition data loading method, it is characterised in that methods described includes:
Receive the road condition data request that user terminal sends, road condition data request includes location point, currently
Time point and current network state;
According to the location point, the current point in time and the current network state, from preset loading
Searched in tables of data with the location point, the current point in time and the current network state it is corresponding plus
Regional extent is carried, wherein, the preset loading tables of data includes positional information, time interval and network
Multiple corresponding relations of environment and loading area scope;
It is determined that the road condition data in the range of the loading area for finding;
Road condition data in the range of the loading area scope and the loading area of determination is returned into institute
User terminal is stated, so that the user terminal is based on the loading area scope and loads the loading area scope
Interior road condition data simultaneously shows.
2. the method for claim 1, it is characterised in that the road condition data request also includes request
Regional extent, it is described searched from preset loading tables of data with the location point, the current point in time with
And after the corresponding loading area scope of the current network state, methods described also includes:
The loading area scope that will be found is made comparisons with the request regional extent;
If the loading area scope for finding is more than the request regional extent, to the request region
Scope is enlarged;
It is determined that expand after the request regional extent in road condition data;
The road conditions number in the request regional extent after the request regional extent and expansion after will be enlarged by
According to returning to the user terminal.
3. the method for claim 1, it is characterised in that the road conditions that the reception user terminal sends
Before request of data, methods described also includes:
Obtain target position information;
Default time span is divided into multiple time intervals, statistics target in the multiple time interval
The average discharge of the interior road condition data loaded using objective network in the regional extent being pre-configured with of time interval;
By the object time interval interior road conditions number loaded using objective network in the regional extent being pre-configured with
According to average discharge made comparisons with the preset flow thresholding of the objective network;
According to comparative result, target loading area scope is determined;
Set up the interval target position information, the object time and the target networking and the target
The corresponding relation of loading area scope and then obtain the preset loading tables of data.
4. method as claimed in claim 3, it is characterised in that described according to comparative result, determines target
Loading area scope includes:
If using the regional extent being pre-configured with described in objective network loading in the object time is interval
Preset flow thresholding of the average discharge of interior road condition data less than the objective network, it is determined that described advance
Whether the regional extent of configuration includes designated area scope;
When it is determined that the regional extent being pre-configured with is comprising the designated area scope, by the specified area
Domain scope is used as the target loading area scope.
5. method as claimed in claim 3, it is characterised in that the object time is interval to be included in multiple
Report cycle, statistics object time in the multiple time interval is interval interior pre- using objective network loading
The average discharge of the road condition data in regional extent for first configuring includes:
Receive the user terminal described pre- every the use objective network loading that the report cycle sends
The data traffic of the road condition data in regional extent for first configuring;
According to the data traffic received every the report cycle, the average discharge is calculated.
6. the method as described in claim 1-5 any one, it is characterised in that methods described also includes:
The preset loading tables of data is updated according to default time interval.
7. a kind of road condition data loading device, it is characterised in that described device includes:
Request receiving module, the road condition data request for receiving user terminal transmission, the road condition data please
Ask including location point, current point in time and current network state;
Range-based searching module, for according to the location point, the current point in time and the current network
State, searched from preset loading tables of data with the location point, the current point in time and it is described work as
The corresponding loading area scope of preceding network state, wherein, the preset loading tables of data include positional information,
Multiple corresponding relations of time interval and network environment and loading area scope;
Data determining module, the road condition data in the range of the loading area found for determination;
Data transmission blocks, for by the range of the loading area of the loading area scope and determination
Road condition data return to the user terminal so that the user terminal is added based on the loading area scope
Carry the road condition data in the range of the loading area and show.
8. device as claimed in claim 7, it is characterised in that the road condition data request also includes request
Regional extent, described device also includes scope processing module, and the scope processing module is used for:
The loading area scope that will be found is made comparisons with the request regional extent;
If the loading area scope for finding is more than the request regional extent, to the request region
Scope is enlarged;
It is determined that expand after the request regional extent in road condition data;
The road conditions number in the request regional extent after the request regional extent and expansion after will be enlarged by
According to returning to the user terminal.
9. device as claimed in claim 7, it is characterised in that described device also includes:
Data obtaining module, for obtaining target position information;
Flow statistical module, for default time span to be divided into multiple time intervals, counts described
The object time interval interior road loaded using objective network in the regional extent being pre-configured with multiple time intervals
The average discharge of condition data;
Flow comparison module, for by the object time it is interval in be pre-configured with using objective network loading
The average discharge of the road condition data in regional extent is made comparisons with the preset flow thresholding of the objective network;
Range determination module, for according to comparative result, determining target loading area scope;
Relation sets up module, interval and described for setting up the target position information, the object time
The corresponding relation of target networking and the target loading area scope and then obtain the preset loading data
Table.
10. device as claimed in claim 9, it is characterised in that the range determination module specifically for:
If using the regional extent being pre-configured with described in objective network loading in the object time is interval
Preset flow thresholding of the average discharge of interior road condition data less than the objective network, it is determined that described advance
Whether the regional extent of configuration includes designated area scope;
When it is determined that the regional extent being pre-configured with is comprising the designated area scope, by the specified area
Domain scope is used as the target loading area scope.
11. devices as claimed in claim 9, it is characterised in that the object time is interval including multiple
Report cycle, the flow statistical module specifically for:
Receive the user terminal described pre- every the use objective network loading that the report cycle sends
The data traffic of the road condition data in regional extent for first configuring;
According to the data traffic received every the report cycle, the average discharge is calculated.
12. device as described in claim 7-11 any one, it is characterised in that described device also includes
Data update module, the data update module is used for:
The preset loading tables of data is updated according to default time interval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510883208.7A CN106850709B (en) | 2015-12-03 | 2015-12-03 | A kind of road condition data loading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510883208.7A CN106850709B (en) | 2015-12-03 | 2015-12-03 | A kind of road condition data loading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106850709A true CN106850709A (en) | 2017-06-13 |
CN106850709B CN106850709B (en) | 2018-12-07 |
Family
ID=59150254
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510883208.7A Active CN106850709B (en) | 2015-12-03 | 2015-12-03 | A kind of road condition data loading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106850709B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110046210A (en) * | 2019-03-29 | 2019-07-23 | 北京三快在线科技有限公司 | Map information updating method, device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103376117A (en) * | 2012-04-26 | 2013-10-30 | 高德软件有限公司 | Information search method, system and global positioning system navigation server |
CN104348864A (en) * | 2013-07-31 | 2015-02-11 | 上海博泰悦臻电子设备制造有限公司 | Road condition data downloading method and apparatus of vehicle-mounted navigation system, and vehicle-mounted device |
CN104807466A (en) * | 2014-01-24 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Map information display method and map information display apparatus |
US9158861B1 (en) * | 2012-05-23 | 2015-10-13 | Google Inc. | Indicators for entities corresponding to search suggestions |
-
2015
- 2015-12-03 CN CN201510883208.7A patent/CN106850709B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103376117A (en) * | 2012-04-26 | 2013-10-30 | 高德软件有限公司 | Information search method, system and global positioning system navigation server |
US9158861B1 (en) * | 2012-05-23 | 2015-10-13 | Google Inc. | Indicators for entities corresponding to search suggestions |
CN104348864A (en) * | 2013-07-31 | 2015-02-11 | 上海博泰悦臻电子设备制造有限公司 | Road condition data downloading method and apparatus of vehicle-mounted navigation system, and vehicle-mounted device |
CN104807466A (en) * | 2014-01-24 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Map information display method and map information display apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110046210A (en) * | 2019-03-29 | 2019-07-23 | 北京三快在线科技有限公司 | Map information updating method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106850709B (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102571910B (en) | Method for searching nearby users in social network, and server | |
CA2865666C (en) | Content sharing method, terminal, server, and system, and computer storage medium | |
CN104284201A (en) | Video content processing method and device | |
CN103747431B (en) | Method and device for realizing rapid roaming based on neighbor detection | |
CN104378800A (en) | Method, device and system for joining in neighbor awareness network cluster | |
CN105718465A (en) | Geofence generation method and device | |
CN109815419B (en) | Interest point indexing method, device, medium and electronic equipment based on geographic position | |
CN104102637B (en) | A kind of method and device of generation hot spot region | |
CN106575294A (en) | Trajectory data inquiry method and apparatus | |
CN101771964A (en) | Information correlation based opportunistic network data distributing method | |
CN110019622A (en) | A kind of real time mass map point polymerization and device | |
CN108566674A (en) | Automatic networking register method based on the LORA communication technologys | |
CN106850709A (en) | A kind of road condition data loading method and device | |
CN104281646A (en) | Urban water-logging detecting method on basis of microblog data | |
CN108153827B (en) | Traffic congestion area determination method and device | |
CN104168174A (en) | Method and apparatus for information transmission | |
CN101996488B (en) | Schematic diagram drawing method suitable for traffic information expression | |
US20180324273A1 (en) | Data Access Method and Device | |
US11722594B2 (en) | Mobile service information display method and apparatus, mobile service information server and system, and terminal | |
CN106652440A (en) | Method and apparatus for determining frequent activity area of vehicle | |
CN115348587B (en) | Networking planning method, device, equipment and storage medium | |
CN101882179B (en) | Method and device for drawing topological graph | |
Mukherjee et al. | DAS: An intelligent three dimensional cost effective movement prediction of active users in heterogeneous mobile network | |
CN104125605A (en) | Implementing method and device for request of building WIFI connection | |
CN104765888B (en) | A kind of data access system, method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230619 Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd. Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |