Summary of the invention
The invention provides a kind of method for exhibiting data and data display system, to realize rapid calculating vehicle data, and carry out showing vehicle data visual and clearly, thereby realize the fast query to vehicle data.
In order to address the above problem, the invention discloses a kind of method for exhibiting data, comprising:
The current location data that receiving terminal sends;
Described current location data is converted to current location coding;
Add up described current location coding according to predetermined condition;
Show the current location coding after described statistics.
Alternatively, describedly described current location data be converted to current location coding comprise:
Invocation map data, described map datum comprises geographic position data and zoning coding corresponding to geographic position data;
Geographic position data in described current location data and described map datum is compared, obtain the geographic position data after comparison;
Search zoning coding corresponding to geographic position data after described comparison, encode as current location.
Alternatively, before the current location data that described receiving terminal sends, also comprise:
The raw position data that receiving terminal sends;
Described raw position data is converted to original position coding.
Alternatively, described predetermined condition comprises following any one or several:
Departure condition, entry requirements, this province local conditional, this province other places condition and this province work as precondition.
Alternatively, adding up described current location coding according to departure condition comprises:
Judge whether described current location coding is consistent with described original position coding;
Encode when consistent when described current location coding and described original position, ignore described current location and encode;
Encode when inconsistent when described current location coding and described original position, record sends the terminal of described current location coding.
Alternatively, the coding of the current location after the described statistics of described displaying comprises:
Invocation map data, compare the current location coding after described statistics and the zoning coding in described map datum;
When the current location coding after described statistics and the zoning in described map datum are encoded when consistent, show that in the described zoning corresponding geographical location of encoding the current location after described statistics encodes.
Alternatively, after the current location data that described receiving terminal sends, also comprise:
Described current location data is carried out to verification;
Describedly described current location data be converted to current location coding comprise:
By described verification by after current location data be converted to current location coding.
The invention also discloses a kind of data display system, comprising:
Current receiver module, the current location data sending for receiving terminal;
Current modular converter, for being converted to described current location data current location coding;
Statistical module, for adding up described current location coding according to predetermined condition;
Display module, for showing the current location coding after described statistics.
Alternatively, described current modular converter comprises:
Call submodule, for invocation map data, described map datum comprises geographic position data and zoning coding corresponding to geographic position data;
Comparer module, for the geographic position data of described current location data and described map datum is compared, obtains the geographic position data after comparison;
Search submodule, for searching zoning coding corresponding to geographic position data after described comparison, encode as current location.
Alternatively, also comprise:
Primary reception module, the raw position data sending for receiving terminal;
Original conversion module, for being converted to described raw position data original position coding.
Compared with prior art, the present invention includes following advantage:
The method for exhibiting data that the embodiment of the present invention provides, the current location data sending by receiving terminal, then described current location data is converted to current location coding, can understand online number of terminals in a region by statistics current location coding, the quantity of the vehicle of car-mounted terminal is installed.And owing to current location data being converted into current location coding, can on map, show the number of the current location coding after described statistics simple and clearly, show vehicle data visual and clearly, thereby realize the fast query to vehicle data.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to Fig. 1, show the process flow diagram of a kind of method for exhibiting data of the present invention, the present embodiment specifically can comprise the following steps:
Step 100, the current location data that receiving terminal sends;
Terminal can be passed through GPS (Global Positioning System, GPS) and obtain current location data, and then current location data is sent to server by timing.The current location data that server receiving terminal sends.
In the present embodiment, current location data can represent by the mode of longitude and latitude.
Step 102, is converted to current location coding by described current location data;
According to the description in step 100, in the present embodiment, current location data can represent by the mode of longitude and latitude.And current location coding can adopt administrative division coded representation in the present embodiment, also can encode voluntarily according to actual needs.Described current location data is converted to current location coding, can be understood as longitude and latitude is converted to administrative division coding.
In the present embodiment, can first all administrative divisions on map be converted to multiple polygons and encode and be numbered with administrative division, then judge in which administrative division of longitude and latitude on map that terminal sends, just encode as current location with the coding of corresponding administrative division.
Particularly, describedly described current location data is converted to current location coding can comprises following sub-step:
Sub-step 1, invocation map data, described map datum comprises geographic position data and zoning coding corresponding to geographic position data;
Here said geographic position data represents with longitude and latitude equally, is the longitude and latitude at administrative division place in map; The zoning coding that geographic position data is corresponding encodes to represent with zoning corresponding to administrative division.
Sub-step 2, compares the geographic position data in described current location data and described map datum, obtains the geographic position data after comparison;
Current location data is the form of longitude and latitude, geographic position data in map datum is also longitude and latitude form, the two is compared, judge that current location data is consistent with which geographic position data, the geographic position data consistent with current location data is as the geographic position data after comparing.
Sub-step 3, searches zoning coding corresponding to geographic position data after described comparison, encodes as current location.
Search zoning coding corresponding to geographic position data after comparison, can be used as the current location coding of current location data.
Step 104, adds up described current location coding according to predetermined condition;
For example, can add up the number of online terminal in an administrative division, send the terminal number of current location information to server.Can be by searching the current location coding of terminal, whether the current location coding zoning corresponding with the administrative division that will add up that judges terminal encodes consistent, the unified current location coding zoning corresponding with the administrative division that will the add up consistent terminal of encoding, as the online number of terminals of a described administrative division.
Step 106, shows the current location coding after described statistics.
Described in the present embodiment, show that the current location coding after described statistics specifically can comprise following sub-step:
Sub-step 1, invocation map data, compare the current location coding after described statistics and the zoning coding in described map datum;
For example, added up the online number of terminals that A economizes, the current location coding of the online terminal that described A is economized is compared with the zoning coding in map datum.
Sub-step 2, when the current location coding after described statistics and the zoning in described map datum are encoded when consistent, shows that in the described zoning corresponding geographical location of encoding the current location after described statistics encodes.
The administrative division coding that the current location coding of the online terminal that A economizes is economized with A is consistent, and on map, A provinces and regions domain views A economizes the number of the current location coding of online terminal.
It should be noted that, show that the current location coding after described statistics can show as the number of the current location coding of showing on map after statistics.Also can otherwise show current location coding, the present embodiment is not restricted this.
The method for exhibiting data that the present embodiment provides, the current location data sending by receiving terminal, then described current location data is converted to current location coding, can understand online number of terminals in a region by statistics current location coding, the quantity of the vehicle of car-mounted terminal is installed.And owing to current location data being converted into current location coding, can on map, show the number of the current location coding after described statistics simple and clearly, show vehicle data visual and clearly, thereby realize the fast query to vehicle data.
In a preferred embodiment of the present invention shown in Fig. 2, before the current location data that described receiving terminal sends, also comprise: the raw position data that receiving terminal sends; Described raw position data is converted to original position coding.Preferred embodiment shown in Fig. 2 specifically can comprise the following steps:
Step 201, the raw position data that receiving terminal sends;
Raw position data refers to the raw position data in the affiliated area of terminal, and raw position data is changeless.For example, a terminal is that A economizes, and the longitude and latitude that the raw position data of this terminal is just economized with A so represents, economizes the longitude and latitude that its raw position data is still economized for A even if this terminal is positioned at B at present.
Step 202, is converted to original position coding by described raw position data;
In the present embodiment, can first all administrative divisions on map be converted to multiple polygons and encode and be numbered with administrative division, then judge in which administrative division on map of the longitude and latitude of raw position data that terminal sends, just encode as original position with the coding of corresponding administrative division.
Step 203, the current location data that receiving terminal sends;
Current location data relevant with the residing position of terminal, in the time that terminal is positioned at A and economizes, the current location data that terminal sends can be the longitude and latitude of A province; In the time that terminal is positioned at B province, the current location data of terminal has just become the longitude and latitude of B province, and current location data can change.In step 200, said raw position data is changeless.
Terminal can be passed through GPS (Global Positioning System, GPS) and obtain current location data, and then current location data is sent to server by timing.The current location data that server receiving terminal sends.
Step 204, carries out verification to described current location data;
The current location data not only terminal being sent in the present embodiment is logined verification, judge whether terminal was registered on server, the current location data that can also send terminal is encrypted verification, data layout verification etc., and the present embodiment is not restricted this.
It should be noted that, current location data is carried out to data layout verification, is to judge whether current location data meets the data layout that display screen is supported.
Step 205, by described verification by after current location data be converted to current location coding.
In the present embodiment, can first all administrative divisions on map be converted to multiple polygons and encode and be numbered with administrative division, which then, in the administrative division of the longitude and latitude that judges the current location data after verification is passed through on map, just encode as current location with the coding of corresponding administrative division.
Step 206, adds up described current location coding according to predetermined condition;
Predetermined condition described in the present embodiment specifically can comprise following any one or several:
Departure condition, entry requirements, this province local conditional, this province other places condition and this province work as precondition.
Departure condition refers to when terminal enters into other provinces from Ben Sheng, adds up this terminal.This province is the province at terminal raw position data place, and other provinces are other provinces in addition of this province.For example, the raw position data of terminal 1 is in A province region, the current location data of this terminal economizes from A other provinces that become beyond A province, for example B economizes, terminal 1 meets departure condition, if according to going out to the greatest extent this condition statistics current location coding when, just need to add up the current location of terminal 1 and encode.
Entry requirements are contrary with departure condition, refer to when terminal enters into this province from other provinces, add up this terminal.This province is the province at terminal raw position data place, and other provinces are other provinces in addition of this province.
This province local conditional, refers to that to belong to the terminal of this province current at Ben Sheng, and for example raw position data is presented at A and economizes, and current location data is also shown in the terminal that A economizes and meets this province local conditional.
This province other places condition, refers to that not belong to the terminal of this province current at Ben Sheng, and for example raw position data shows to be economized at A, and current location data is presented at the terminal that A economizes and meets this province other places condition.
This province works as precondition, refers to the current terminal in this province, no matter whether raw position data is economized at A, economizes at A as long as terminal is current, and this province that just meets A province works as precondition.For example, as long as current location data is presented at the terminal that A economizes, all meets this province and work as precondition.This province when precondition be this province local conditional and this province other places condition and, when concrete statistics, the number of terminals that meets this province local conditional can be added as meeting this province and work as the number of terminals of precondition with the number of terminals that meets this province other places condition.
Describe as an example of departure condition example below, add up described current location coding according to departure condition and comprise following sub-step:
Sub-step 1, judges whether described current location coding is consistent with described original position coding;
Sub-step 2, encodes when consistent when described current location coding and described original position, ignores described current location and encodes;
Sub-step 3, encodes when inconsistent when described current location coding and described original position, and record sends the terminal of described current location coding.
Step 207, shows the current location coding after described statistics.
In the present embodiment, can show the number that the current location after described statistics is encoded by the correspondence position on map.
Be example below taking Guizhou Province, Guizhou Province is as this province, and the displaying result of the departure condition in step 206, entry requirements, this province local conditional, this province other places condition and this province being worked as to precondition describes respectively, specific as follows:
As shown in Figure 3, be this province departure displaying vehicle figure, drive towards counting online when vehicle in front of other each province, the whole nation from Guizhou Ben Sheng.In the time that the Vehicle Driving Cycle of Guizhou Ben Sheng arrives Yunnan, car-mounted terminal sends current location data to server, server receives described current location data, be shown as Yunnan, current place, current location data is converted to current location coding, be the coding in Yunnan Province, statistics Guizhou is counted online and shows by the mode of arrow and numeral to the vehicle in Yunnan, and example as shown in Figure 3 Guizhou is 47 to the vehicle in Yunnan.In addition, also have Guizhou to the number 42 in Sichuan, Guizhou to data such as Chongqing 68, can in the map shown in Fig. 3, display simple and clearly.
As shown in Figure 4, be other provinces immigration displaying vehicle figure, the vehicle in front of working as of driving towards Guizhou Ben Sheng from other each province, the whole nation is counted online.For example, in the time that the Vehicle Driving Cycle in Fujian arrives Guizhou, the current location data receiving is shown as Guizhou, current location is encoded to the coding in Guizhou Province, statistics is driven towards the online number of vehicle in Guizhou and is shown by the mode of reverse arrow and numeral from Fujian, example as shown in Figure 4 Fujian is 3 to the vehicle in Guizhou.In addition, also have Guangdong to the number 6 in Guizhou, Zhejiang to data such as the number in Guizhou are 4, can in the map shown in Fig. 4, display simple and clearly.
As shown in Figure 5, be the local displaying vehicle figure of this province, by showing in the mode of each districts and cities' reference numbers of this province.For example, the current local vehicle of Guiyang is 1242, and the current local vehicle of Anshun is 882 etc., can in the map shown in Fig. 5, display simple and clearly.
This province other places vehicle and this province are similar when the exhibition method of the local vehicle of vehicle in front and this province, are also by the mode in each districts and cities' reference numbers of this province, and therefore not to repeat here for the present embodiment.
This preferred embodiment can be added up current location coding when precondition according to departure condition, entry requirements, this province local conditional, this province other places condition and this province, and on map, shows that departure vehicle, immigration vehicle, the local vehicle of this province, this province other places vehicle and this province work as vehicle in front visual and clearly.Aspect people understand vehicle data, the efficiency that has improved vehicle data inquiry and shown.
With reference to Fig. 6, show the structured flowchart of a kind of data display system of the present invention, the present embodiment specifically can comprise: current receiver module 10, current modular converter 12, statistical module 14 and display module 16, wherein:
Current receiver module 10, the current location data sending for receiving terminal;
Terminal can be passed through GPS (Global Positioning System, GPS) and obtain current location data, and then current location data is sent to current receiver module 10 by timing.The current location data that current receiver module 10 receiving terminals send.In the present embodiment, current location data can represent by the mode of longitude and latitude.
Current modular converter 12, for being converted to described current location data current location coding;
In the present embodiment, first current modular converter 12 can be converted to all administrative divisions on map multiple polygons and encode and be numbered with administrative division, then judge in which administrative division of longitude and latitude on map that terminal sends, just encode as current location with the coding of corresponding administrative division.
Described current modular converter 12 specifically can comprise following submodule:
Call submodule, for invocation map data, described map datum comprises geographic position data and zoning coding corresponding to geographic position data;
Comparer module, for the geographic position data of described current location data and described map datum is compared, obtains the geographic position data after comparison;
Search submodule, for searching zoning coding corresponding to geographic position data after described comparison, encode as current location.
Statistical module 14, for adding up described current location coding according to predetermined condition;
In the present embodiment, statistical module 14 can be added up the number of online terminal in an administrative division, sends the terminal number of current location information to server.Can be by searching the current location coding of terminal, whether the current location coding zoning corresponding with the administrative division that will add up that judges terminal encodes consistent, the unified current location coding zoning corresponding with the administrative division that will the add up consistent terminal of encoding, as the online number of terminals of a described administrative division.
Display module 16, for showing the current location coding after described statistics.
Display module 16 described in the present embodiment specifically can comprise following submodule:
Submodule 1, for invocation map data, compares the current location coding after described statistics and the zoning coding in described map datum;
For example, added up the online number of terminals that A economizes, the current location coding of the online terminal that submodule 1 is economized described A is compared with the zoning coding in map datum.
Submodule 2, when consistent for encoding when the current location coding after described statistics and the zoning of described map datum, shows that in the described zoning corresponding geographical location of encoding the current location after described statistics encodes.
The administrative division that the current location coding of the online terminal that A economizes is economized with A is encoded when consistent, and submodule 2 A provinces and regions domain views A on map economizes the number that the current location of online terminal is encoded.
It should be noted that, show that the current location coding after described statistics can show as the number of the current location coding of showing on map after statistics.Also can otherwise show current location coding, the present embodiment is not restricted this.
The data display system that the present embodiment provides, the current location data sending by current receiver module 10 receiving terminals, then described current location data is converted to current location coding by current modular converter 12, statistical module 14 can be understood online number of terminals in a region by statistics current location coding, and the quantity of the vehicle of car-mounted terminal is installed.And owing to current location data being converted into current location coding, display module 16 can be shown the number of the current location coding after described statistics simple and clearly on map, show vehicle data visual and clearly, thereby realize the fast query to vehicle data.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of Fig. 1 embodiment of the method.
In a preferred embodiment of the present invention shown in Fig. 7, described data display system also comprises: primary reception module and original conversion module, preferred embodiment shown in Fig. 7 specifically can comprise: primary reception module 21, original conversion module 22, current receiver module 23, correction verification module 24, current modular converter 25, statistical module 26 and display module 27, wherein:
Primary reception module 21, the raw position data sending for receiving terminal;
Raw position data refers to the raw position data in the affiliated area of terminal, and raw position data is changeless.For example, a terminal is that A economizes, and the longitude and latitude that the raw position data of this terminal is just economized with A so represents, economizes the longitude and latitude that its raw position data is still economized for A even if this terminal is positioned at B at present.
Original conversion module 22, for being converted to described raw position data original position coding;
In the present embodiment, first original modular converter 22 can be converted to all administrative divisions on map multiple polygons and encode and be numbered with administrative division, then judge in which administrative division on map of the longitude and latitude of raw position data that terminal sends, just encode as original position with the coding of corresponding administrative division.
Current receiver module 23, the current location data sending for receiving terminal;
Current location data relevant with the residing position of terminal, in the time that terminal is positioned at A and economizes, the current location data that terminal sends can be the longitude and latitude of A province; In the time that terminal is positioned at B province, the current location data of terminal has just become the longitude and latitude of B province, and current location data can change.In step 200, said raw position data is changeless.
Terminal can be passed through GPS (Global Positioning System, GPS) and obtain current location data, and then current location data is sent to current receiver module 23 by timing.The current location data that current receiver module 23 receiving terminals send.
Correction verification module 24, for carrying out verification to described current location data;
The current location data that in the present embodiment, correction verification module 24 not only sends terminal is logined verification, judge whether terminal was registered on server, the current location data that can also send terminal is encrypted verification, data layout verification etc., and the present embodiment is not restricted this.
It should be noted that, correction verification module 24 carries out data layout verification to current location data, is to judge whether current location data meets the data layout that display screen is supported.
Current modular converter 25, for by described verification by after current location data be converted to current location coding.
In the present embodiment, first current modular converter 25 can be converted to all administrative divisions on map multiple polygons and encode and be numbered with administrative division, which then, in the administrative division of the longitude and latitude that judges the current location data after verification is passed through on map, just encode as current location with the coding of corresponding administrative division.
Statistical module 26, for adding up described current location coding according to predetermined condition;
Predetermined condition described in the present embodiment specifically can comprise following any one or several:
Departure condition, entry requirements, this province local conditional, this province other places condition and this province work as precondition.
Departure condition refers to when terminal enters into other provinces from Ben Sheng, adds up this terminal.This province is the province at terminal raw position data place, and other provinces are other provinces in addition of this province.For example, the raw position data of terminal 1 is in A province region, the current location data of this terminal economizes from A other provinces that become beyond A province, for example B economizes, terminal 1 meets departure condition, if according to going out to the greatest extent this condition statistics current location coding when, just need to add up the current location of terminal 1 and encode.
Entry requirements are contrary with departure condition, refer to when terminal enters into this province from other provinces, add up this terminal.This province is the province at terminal raw position data place, and other provinces are other provinces in addition of this province.
This province local conditional, refers to that to belong to the terminal of this province current at Ben Sheng, and for example raw position data is presented at A and economizes, and current location data is also shown in the terminal that A economizes and meets this province local conditional.
This province other places condition, refers to that not belong to the terminal of this province current at Ben Sheng, and for example raw position data shows to be economized at A, and current location data is presented at the terminal that A economizes and meets this province other places condition.
This province works as precondition, refers to the current terminal in this province, no matter whether raw position data is economized at A, economizes at A as long as terminal is current, and this province that just meets A province works as precondition.For example, as long as current location data is presented at the terminal that A economizes, all meets this province and work as precondition.This province when precondition be this province local conditional and this province other places condition and, when concrete statistics, the number of terminals that meets this province local conditional can be added as meeting this province and work as the number of terminals of precondition with the number of terminals that meets this province other places condition.
Display module 27, for showing the current location coding after described statistics.
In the present embodiment, display module 27 can be shown the number that the current location after described statistics is encoded by the correspondence position on map.
The data display system that this preferred embodiment provides, statistical module 26 can be added up current location coding when precondition according to departure condition, entry requirements, this province local conditional, this province other places condition and this province, and display module 27 can show on map that departure vehicle, immigration vehicle, the local vehicle of this province, this province other places vehicle and this province work as vehicle in front visual and clearly.Aspect people understand vehicle data, the efficiency that has improved vehicle data inquiry and shown.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of Fig. 2 embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
Above to a kind of method for exhibiting data provided by the present invention and data display system, be described in detail, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.