CN105371864A - Method and system for obtaining vehicle mileage by reporting GPS information - Google Patents

Method and system for obtaining vehicle mileage by reporting GPS information Download PDF

Info

Publication number
CN105371864A
CN105371864A CN201410428083.4A CN201410428083A CN105371864A CN 105371864 A CN105371864 A CN 105371864A CN 201410428083 A CN201410428083 A CN 201410428083A CN 105371864 A CN105371864 A CN 105371864A
Authority
CN
China
Prior art keywords
longitude
latitude
lon
module
lat
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.)
Pending
Application number
CN201410428083.4A
Other languages
Chinese (zh)
Inventor
丁伟
王志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ChinaGPS Co Ltd Shenzhen
Original Assignee
ChinaGPS Co Ltd Shenzhen
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ChinaGPS Co Ltd Shenzhen filed Critical ChinaGPS Co Ltd Shenzhen
Priority to CN201410428083.4A priority Critical patent/CN105371864A/en
Publication of CN105371864A publication Critical patent/CN105371864A/en
Pending legal-status Critical Current

Links

Landscapes

  • Navigation (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention discloses a method and system for obtaining vehicle mileage by reporting GPS information. The method comprises the following steps that S1, the frequency f for reporting the longitude and latitude of real-time points in the running process of a vehicle is preset; S2, the longitude and latitude of the real-time point A1 to An are continuously reported within a certain running time frame T according to the frequency f; S3, the distance Lm between the point Am and the point Am+1 is calculated through the longitude and latitude of the continuous point Am (m=1) and point Am+1; S4, whether m is equal to n-1 or not is judged, if m is equal to n-1, the running mileage L within certain running time T is calculated, L is approximately equal to L1+L2+...+Ln-1, or otherwise, the step 3 is executed, wherein m=m+1. According to the method, when no mileage information exists in the information reported by the vehicle or the mileage information in the information reported by the vehicle is lost and cannot be restored, the mileage information can be acquired easily and conveniently, and the method can also be used for detecting whether the reported mileage information is true or not.

Description

A kind of method and system by reporting GPS information to obtain vehicle mileage
Technical field
The present invention relates to intelligent transportation field, more particularly, relating to a kind of method and system by reporting GPS information to obtain vehicle mileage.
Background technology
Vehicle maintenance and newness degree, often using distance travelled as judgement, therefore, seem more and more important to the acquisition of Vehicle-Miles of Travel.If lose mileage information in the information of relevant mileage or the information that reports at vehicle in the information that vehicle reports, and want to obtain the fare register travelled in a period of time, or when needing to report the authenticity of mileage by test, need a kind of computing method of vehicle mileage, the mileage of the following period of time vehicle before calculating.
Summary of the invention
The technical problem to be solved in the present invention is, lose for mileage information in the information not having mileage information in the above-mentioned information reported at vehicle of prior art or report at vehicle and cannot recover to cause the defect that cannot obtain vehicle mileage information, there is provided a kind of method and system by reporting GPS information to obtain vehicle mileage, whether the mileage information that the method and system report before can also being used for checking is true.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of method by reporting GPS information to obtain vehicle mileage, adopt and be arranged on car-mounted terminal and the setting module be electrically connected successively, GPS locating module, computing module and judge module, said method comprising the steps of:
S1, to be set in advance in by described setting module the locating module of GPS described in vehicle travel process report in real time some longitude and latitude to the frequency f of described computing module;
S2, described GPS locating module report the longitude and latitude of some A1 to some An in real time to described computing module continuously according to the described frequency f in step S1 in a certain running time section T, wherein, n is the number of times that described GPS locating module reports some longitude and latitude in real time in a certain running time section T, and n=T × f;
S3, described computing module receive the longitude and latitude of the described some A1 to described some An that described GPS locating module reports in a certain running time section T, and distance Lm between Am and described some Am+1 is put described in the calculation of longitude & latitude of continuous two some Am (m=1) and some Am+1, wherein, m is positive integer and 1≤m≤n;
S4, judge whether m equals n-1 by described judge module, if m equals n-1, then described computing module calculates the mileage L ≈ L1+L2+...+Ln-1 run in a certain running time T, n is larger, and then L is more accurate, if m is less than n-1, then returns step S3, wherein, m=m+1.
Of the present invention by reporting GPS information to obtain in the method for vehicle mileage, suppose that the earth is one desirable spherical, when described some Am in described step S3 and described some Am+1 is in same longitude or Same Latitude, the distance Lm between described some Am and described some Am+1 defines by following computing formula:
Lm=2sin (a m/ 2) R; Wherein,
Lm represents the air line distance between described some Am and described some Am+1;
R represents the radius of the earth;
A mrepresent the angle between two isosceles limits in the isosceles triangle that described some Am and described some Am+1 and these three points of earth center point are formed.
Of the present invention by reporting GPS information to obtain in the method for vehicle mileage, namely described computing module passes through Am (lat_m by the longitude and latitude of described some Am and described some Am+1, lon_m) and Am+1 (lat_m+1, lon_m+1) calculate described a m, wherein,
Lat_m is the longitude of an Am;
Lon_m is the latitude of an Am;
Lat_m+1 is the longitude of an Am+1;
Lon_m+1 is the latitude of an Am+1.
Of the present invention by reporting GPS information to obtain in the method for vehicle mileage, when described some Am and described some Am+1 be in same longitude and different latitude time, described a mdefine by following computing formula:
a m=|(lon_m+1)-(lon_m)|。
Of the present invention by reporting GPS information to obtain in the method for vehicle mileage, when described some Am and described some Am+1 is in Same Latitude and different Longitude In System, described am defines by following computing formula:
a m=|(lat_m+1)-(lat_m)|。
Of the present invention by reporting GPS information to obtain in the method for vehicle mileage, suppose that the earth is one desirable spherical, when described some Am in described step S3 and described some Am+1 is in different longitude and different latitude, get 1 B identical with the longitude of described some Am, and described some B is identical with the latitude of described some Am+1, the distance Lm between described some Am and described some Am+1 defines by following computing formula:
Lm = [ 2 sin ( β 1 / 2 ) R ] 2 + [ 2 sin ( β 2 / 2 ) R ] 2 ; Wherein,
β 1represent the angle between two isosceles limits in the isosceles triangle that described some B and described some Am and these three points of earth center point are formed, and β 1=| (lon_b)-(lon_m) |, lon_b is the latitude of described some B, and lon_m is the latitude of described some Am;
β 2represent the angle between two isosceles limits in the isosceles triangle that described some B and described some Am+1 and these three points of earth center point are formed, and β 2=| (lat_b)-(lat_m+1) |, lat_b is the longitude of described some B, and lat_m+1 is the longitude of described some Am+1.
Of the present invention by reporting GPS information to obtain in the method for vehicle mileage, suppose that the earth is one desirable spherical, when described some Am in described step S3 and described some Am+1 is in different longitude and different latitude, get 1 C identical with the latitude of described some Am, and described some C is identical with the longitude of described some Am+1, the distance Lm between described some Am and described some Am+1 defines by following computing formula:
Lm = [ 2 sin ( β 3 / 2 ) R ] 2 + [ 2 sin ( β 4 / 2 ) R ] 2 ; Wherein,
β 3represent the angle between two isosceles limits in the isosceles triangle that described some C and described some Am and these three points of earth center point are formed, and β 3=| (lat_c)-(lat_m) |, lat_c is the longitude of described some C, and lat_m is the longitude of described some Am;
β 4represent the angle between two isosceles limits in the isosceles triangle that described some C and described some Am+1 and these three points of earth center point are formed, and β 4=| (lon_c)-(lon_m+1) |, lon_c is the latitude of described some C, and lon_m+1 is the latitude of described some Am+1.
The present invention also provides a kind of system by reporting GPS information to obtain vehicle mileage, comprises and is arranged on car-mounted terminal and the setting module be electrically connected successively, GPS locating module, computing module and judge module, wherein,
Described setting module reports the frequency f of some longitude and latitude in real time for being set in advance in the locating module of GPS described in vehicle travel process;
Described GPS locating module is used for peace in a certain running time section T and reports the longitude and latitude of some A1 to some An in real time to described computing module according to described frequency f, wherein, n is the number of times that described GPS locating module reports some longitude and latitude in real time in a certain running time section T, and n=T × f;
The longitude and latitude that described computing module reports for receiving described GPS locating module, and by continuous two some Am and the calculation of longitude & latitude point Am putting Am+1 and the distance Lm put between Am+1, wherein, m is positive integer and 1≤m≤n, and described computing module is also for calculating the mileage L run in a certain running time T;
Described judge module is for judging whether m equals n-1, if m equals n-1, then described computing module calculates the mileage L run in a certain running time T, and n is larger, and then L is more accurate.
Of the present invention by reporting GPS information to obtain in the system of vehicle mileage, suppose that the earth is one desirable spherical, described computing module comprises the first computing unit, the second computing unit and the 3rd computing unit, wherein,
Described first computing unit is used for when described some Am and described some Am+1 is in same longitude or Same Latitude, by putting the distance Lm between Am and described some Am+1 described in the calculation of longitude & latitude of described some Am and described some Am+1;
Described second computing unit is used for when described some Am and described some Am+1 is in different longitude and different latitude, get 1 B identical with the longitude of described some Am, and described some B is identical with the latitude of described some Am+1, by putting the distance Lm between Am and described some Am+1 described in the calculation of longitude & latitude of described some B, described some Am and described some Am+1;
Described 3rd computing unit is used for when described some Am and described some Am+1 is in different longitude and different latitude, get 1 C identical with the latitude of described some Am, and described some C is identical with the longitude of described some Am+1, by putting the distance Lm between Am and described some Am+1 described in the calculation of longitude & latitude of described some C, described some Am and described some Am+1.
By reporting GPS information to obtain in the system of vehicle mileage, described first computing unit comprises the first computation subunit and the second computation subunit of the present invention, wherein,
Described first computation subunit be used for when described some Am and described some Am+1 be in same longitude and different latitude time, calculate the distance Lm between described some Am and described some Am+1 by the latitude of described some Am and described some Am+1;
Described second computation subunit is used for being in Same Latitude and different Longitude In System as described some Am and described some Am+1, calculates the distance Lm between described some Am and described some Am+1 by the longitude of described some Am and described some Am+1.
Implement a kind of method and system by reporting GPS information to obtain vehicle mileage of the present invention, there is following beneficial effect: the earth is regarded as a desirable spheroid, the distance of point-to-point transmission can be calculated by the longitudes and latitudes of continuous 2, by the superposition of the distance between the point in a period of time, the mileage in a period of time can be calculated, therefore, if can according to the calculation of longitude & latitude mileage information reported when losing mileage information in the information reported, also the mileage information reported can be checked whether true simultaneously, within a period of time, report the frequency of longitude and latitude larger by GPS locating module, the mileage information then drawn by the calculation of longitude & latitude reported is more accurate, in addition, simple by the continuous method regularly reporting GPS information to obtain vehicle mileage, cost is lower.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the structural representation by reporting GPS information to obtain the system of vehicle mileage of the present invention;
Fig. 2 is the structural representation of computing module of the present invention;
Fig. 3 is the structural representation of the first computing unit of the present invention;
Fig. 4 is the method flow diagram by reporting GPS information to obtain vehicle mileage of the present invention;
Fig. 5 is the schematic diagram that the distance Lm between the some Am of first embodiment of the invention and some Am+1 calculates;
Fig. 6 is the schematic diagram that the distance Lm between the some Am of second embodiment of the invention and some Am+1 calculates;
Fig. 7 is the schematic diagram that the distance Lm between the some Am of third embodiment of the invention and some Am+1 calculates;
Fig. 8 is the schematic diagram that the distance Lm between the some Am of fourth embodiment of the invention and some Am+1 calculates.
Embodiment
In order to solve in the information reported at vehicle that exists in prior art there is no mileage information or report at vehicle information in mileage information lose and cannot recover to cause the defect that cannot obtain vehicle mileage information, the invention provides a kind of by regularly reporting GPS information to obtain the method and system of vehicle mileage continuously, whether the mileage information that the method and system report before can also being used for checking is true.The earth is regarded as a desirable spheroid, the distance of point-to-point transmission can be calculated by the longitudes and latitudes of continuous 2, by the superposition of the distance between the point in a period of time, the mileage in a period of time can be calculated, therefore, if can according to the calculation of longitude & latitude mileage information reported when losing mileage information in the information reported, also the mileage information reported can be checked whether true simultaneously, within a period of time, report the frequency of longitude and latitude larger by GPS locating module, the mileage information then drawn by the calculation of longitude & latitude reported is more accurate, in addition, simple by the continuous method regularly reporting GPS information to obtain vehicle mileage, cost is lower.
In order to make object of the present invention clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, the system by reporting GPS information to obtain vehicle mileage of the present invention comprises and is arranged on car-mounted terminal and the setting module 100 be electrically connected successively, GPS locating module 200, computing module 300 and judge module 400.
This setting module 100 reports the frequency f of some longitude and latitude in real time for being set in advance in GPS locating module 200 in vehicle travel process.Be understandable that, frequency f is larger, GPS locating module 200 reports the speed of some longitude and latitude in real time larger, the data reported within a certain period of time are also more, and the calculating of the data volume reported vehicle mileage is more at most more accurate, but data volume also can increase the difficulty of calculating while increasing, therefore need to choose suitable frequency f, in the present invention, frequency f is preferably 1 time/second, namely reports p.s. and once puts longitude and latitude in real time.
This GPS locating module 200 for reporting the longitude and latitude of some A1 to some An in real time to described computing module 300 according to frequency f in a certain running time section T, wherein, n is the number of times that GPS locating module 200 reports some longitude and latitude in real time in a certain running time section T, and n=T × f.
The longitude and latitude that this computing module 300 reports for receiving GPS locating module 200, and by continuous two some Am and the calculation of longitude & latitude point Am putting Am+1 and the distance Lm put between Am+1, wherein, m is positive integer and 1≤m≤n, and computing module 300 is also for calculating the mileage L run in a certain running time T.
This judge module 400 is for judging whether m equals n-1, if m equals n-1, then computing module 300 calculates the mileage L run in a certain running time T, and n is larger, and then L is more accurate.If m is less than n-1, then computing module 300 continues through the distance Lm between the calculation of longitude & latitude point Am of continuous two some Am and some Am+1 and some Am+1, until computing module 300 calculates Ln-1.
As shown in Figure 2, computing module 300 of the present invention comprises the first computing unit 301, second computing unit 302 and the 3rd computing unit 303, wherein, the first computing unit 301, second computing unit 302 and the 3rd computing unit 303 are separated three computing units, can calculate by complete independently.
This first computing unit 301 for when some Am and some Am+1 be in same longitude or Same Latitude time, by an Am and some Am+1 calculation of longitude & latitude point Am and some Am+1 between distance Lm.
This second computing unit 302 is for when some Am and some Am+1 is in different longitude and different latitude, get 1 B identical with the longitude of some Am, and some B is identical with the latitude of some Am+1, by a B, some Am and the calculation of longitude & latitude point Am putting Am+1 and the distance Lm put between Am+1.
3rd computing unit 303 is for when some Am and some Am+1 is in different longitude and different latitude, get 1 C identical with the latitude of some Am, and some C is identical with the longitude of some Am+1, by a C, some Am and the calculation of longitude & latitude point Am putting Am+1 and the distance Lm put between Am+1.
As shown in Figure 3, first computing unit 301 of the present invention comprises the first computation subunit 3011 and the second computation subunit 3012, wherein, the first computation subunit 3011 and the second computation subunit 3012 are separated two computation subunit, can calculate by complete independently.
This first computation subunit 3011 for when some Am and some Am+1 be in same longitude and different latitude time, by an Am and some Am+1 latitude calculation level Am and some Am+1 between distance Lm.
This second computation subunit 3012 is in Same Latitude and different Longitude In System for working as some Am and putting Am+1, by an Am and the longitude calculation level Am putting Am+1 and the distance Lm put between Am+1.
The present invention adopts said system to obtain vehicle mileage, and lower mask body introduction obtains the method for vehicle mileage.As shown in Figure 4, the method by reporting GPS information to obtain vehicle mileage of the present invention, comprises the following steps:
S101, to be set in advance in GPS locating module 200 in vehicle travel process to report in real time that some longitude and latitude is to the frequency f of computing module 300 by setting module 100, in the present invention, frequency f is preferably 1 time/second, namely reports p.s. 1 time;
S102, GPS locating module 200 reports continuously according to the frequency f in step S101 and puts A1 in real time to putting the longitude and latitude of An (n is positive integer and n > 1) to computing module 300 in a certain running time section T, wherein, n is the number of times that GPS locating module 200 reports some longitude and latitude in real time in a certain running time section T, and n=T × f, running time section T selects according to actual needs, in the present invention, running time section T can be vehicle any time period in the process of moving, the size of running time section T also can be selected arbitrarily according to actual needs,
S103, computing module 300 receive the longitude and latitude of the some A1 to some An that GPS locating module 200 reports in a certain running time section T;
S104, computing module 300 are by continuous two some Am (m=1) and the calculation of longitude & latitude point Am putting Am+1 and the distance Lm put between Am+1, and wherein, m is positive integer and 1≤m≤n;
S105, judge whether m equals n-1 by judge module 400, from step S102, known GPS locating module 200 has reported the longitude and latitude put in real time for n time in a certain running time section T, n-1 part is divide into by the distance travelled in running time section T, when vehicle remains a constant speed traveling, the distance of said n-1 part is identical, therefore there is the distance L1 of n-1 part, L2, L3...Ln-1 part distance superposes and obtain the mileage of vehicle in a certain running time section T, if m equals n-1, then perform next step S106, otherwise, return step S104, and m=m+1;
S106, computing module 300 calculate the mileage L ≈ L1+L2+...+Ln-1 run in a certain running time section T, the mileage L1+L2+...+Ln-1 that computing module 300 calculates herein approximates the actual mileage L that vehicle travels, because earth surface is certain radian, the actual state of road is also in certain radian, and what calculate in this step is the air line distance of 2, the result therefore calculated approximates the actual mileage that vehicle travels.
In step S101, frequency f is larger, then the n in step S102 is larger, and the number n by the mileage segmentation travelled in a certain running time section T is more, in this case, the mileage L1+L2+...+Ln-1 that calculates of step S106 is more close to the actual mileage L that vehicle travels.
How lower mask body introduces computing module 300 by continuous two some Am and the calculation of longitude & latitude point Am putting Am+1 and the distance Lm put between Am+1.In concrete condition, some Am and some Am+1 may be in same longitude different latitude, or the different longitude of Same Latitude, or different longitude different latitude, and therefore, the method for the distance Lm between calculation level Am and some Am+1 is also different.
As shown in Figure 5, in the first embodiment of the present invention, suppose that the earth is one desirable spherical, when the some Am in step S104 and some Am+1 is in same longitude different latitude, the distance Lm between some Am and some Am+1 defines by following computing formula:
Lm=2sin (a m/ 2) R; Wherein,
Lm represents the air line distance between an Am and some Am+1;
R represents the radius of the earth;
A mrepresent the angle between two isosceles limits in the isosceles triangle that some Am and these three points of some Am+1 and earth center point O are formed.
In the present embodiment, Lm is the air line distance between an Am and some Am+1, works as a mtime enough little, namely Lm equals the actual range between an Am and some Am+1.
In the present embodiment, namely computing module 300 calculates described a by Am (lat_m, lon_m) and Am+1 (lat_m+1, lon_m+1) by the longitude and latitude of some Am and some Am+1 m, wherein,
Lat_m is the longitude of an Am;
Lon_m is the latitude of an Am;
Lat_m+1 is the longitude of an Am+1;
Lon_m+1 is the latitude of an Am+1.
Above-mentioned formula Lm=2sin (a m/ 2) in R, R=6370.856Km, a mdefine by following computing formula: a m=| (lon_m+1)-(lon_m) |.Therefore, Lm can be calculated when an Am and latitude lon_m and lon_m+1 of some Am+1 are known.Because lon_m+1 may be greater than lon_m, also lon_m may be less than, therefore at calculating a min time, needs to add absolute value, namely ensures a mbe on the occasion of.
As shown in Figure 6, in the second embodiment of the present invention, suppose that the earth is one desirable spherical, when the some Am in step S104 is in the different Longitude In System of Same Latitude with some Am+1, some Am and the distance Lm put between Am+1 defines by following computing formula:
Lm=2sin (a m/ 2) R; Wherein,
Lm represents the air line distance between an Am and some Am+1;
R represents the radius of the earth;
A mrepresent the angle between two isosceles limits in the isosceles triangle that some Am and these three points of some Am+1 and earth center point O are formed.
In the present embodiment, Lm is the air line distance between an Am and some Am+1, works as a mtime enough little, namely Lm equals the actual range between an Am and some Am+1.
In the present embodiment, namely computing module 300 calculates described a by Am (lat_m, lon_m) and Am+1 (lat_m+1, lon_m+1) by the longitude and latitude of some Am and some Am+1 m, wherein,
Lat_m is the longitude of an Am;
Lon_m is the latitude of an Am;
Lat_m+1 is the longitude of an Am+1;
Lon_m+1 is the latitude of an Am+1.
Above-mentioned formula Lm=2sin (a m/ 2) in R, R=6370.856Km, a mdefine by following computing formula: a m=| (lat_m+1)-(lat_m) |.Therefore, Lm can be calculated when an Am and longitude lat_m and latm+1 of some Am+1 are known.Because lat_m may be greater than lat_m+1, also lat_m+1 may be less than, therefore at calculating a min time, needs to add absolute value, namely ensures a mbe on the occasion of.
As shown in Figure 7, in the third embodiment of the present invention, suppose that the earth is one desirable spherical, when the some Am in step S104 is in different longitude and different latitude with some Am+1, get 1 B identical with the longitude of some Am, and some B is identical with the latitude of some Am+1, now, the distance Lm between some Am and some Am+1 defines by following computing formula:
Lm = [ 2 sin ( β 1 / 2 ) R ] 2 + [ 2 sin ( β 2 / 2 ) R ] 2 ; Wherein,
β 1represent the angle between two isosceles limits in the isosceles triangle that some B and these three points of some Am and earth center point O are formed, and β 1=| (lon_b)-(lon_m) |, lon_b is the latitude of a B, and lon_m is the latitude of an Am, because lon_b may be greater than lon_m, also may be less than lon_m, therefore at calculating β 1in time, needs to add absolute value to ensure β 1be on the occasion of;
β 2represent the angle between two isosceles limits in the isosceles triangle that some B and some Am+1 and these three points of earth center point 0 are formed, and β 2=| (lat_b)-(lat_m+1) |, lat_b is the longitude of a B, and lat_m+1 is the longitude of an Am+1, because lat_b may be greater than lat_m+1, also may be less than lat_m+1, therefore at calculating β 2in time, needs to add absolute value to ensure β 2be on the occasion of.
Above-mentioned formula Lm = [ 2 sin ( β 1 / 2 ) R ] 2 + [ 2 sin ( β 2 / 2 ) R ] 2 Be that two right-angle side BAm and BAm+1 of the right-angle triangle formed based on a B, some Am and these three points of some Am+1 calculate hypotenuse Lm, have employed Pythagorean theorem at this.In addition, Lm is the air line distance between an Am and some Am+1, at angle β 1with angle β 2enough hour, namely Lm equaled the actual range between an Am and some Am+1.
As shown in Figure 8, in the fourth embodiment of the present invention, suppose that the earth is one desirable spherical, when the some Am in step S104 is in different longitude and different latitude with some Am+1, get 1 C identical with the latitude of some Am, and some C is identical with the longitude of some Am+1, now, the distance Lm between some Am and some Am+1 defines by following computing formula:
Lm = [ 2 sin ( β 3 / 2 ) R ] 2 + [ 2 sin ( β 4 / 2 ) R ] 2 ; Wherein,
β 3represent the angle between two isosceles limits in the isosceles triangle that some C and these three points of some Am and earth center point O are formed, and β 3=| (lat_c)-(lat_m) |, lat_c is the longitude of a C, and lat_m is the longitude of an Am, because lat_c may be greater than lat_m, also may be less than lat_m, therefore at calculating β 3in time, needs to add absolute value to ensure β 3be on the occasion of.
β 4represent the angle between two isosceles limits in the isosceles triangle that some C and these three points of some Am+1 and earth center point O are formed, and β 4=| (lon_c)-(lon_m+1) |, lon_c is the latitude of a C, and lon_m+1 is the latitude of an Am+1, because lon_c may be greater than lon_m+1, also may be less than lon_m+1, therefore at calculating β 4in time, needs to add absolute value to ensure β 4be on the occasion of.
Above-mentioned formula Lm = [ 2 sin ( β 3 / 2 ) R ] 2 + [ 2 sin ( β 4 / 2 ) R ] 2 Be that two right-angle side CAm and CAm+1 of the right-angle triangle formed based on a C, some Am and these three points of some Am+1 calculate hypotenuse Lm, have employed Pythagorean theorem at this.In addition, Lm is the air line distance between an Am and some Am+1, at angle β 3with angle β 4enough hour, namely Lm equaled the actual range between an Am and some Am+1.
In sum, implement of the present invention a kind of method and system by reporting GPS information to obtain vehicle mileage, there is following beneficial effect: the earth is regarded as a desirable spheroid, the distance of point-to-point transmission can be calculated by the longitudes and latitudes of continuous 2, as the distance Lm between an Am and some Am+1, by the superposition of the distance between the point in a period of time, the mileage in a period of time can be calculated, therefore, if can according to the calculation of longitude & latitude mileage information reported when losing mileage information in the information reported, also the mileage information reported can be checked whether true simultaneously, within a period of time, report the frequency of longitude and latitude larger by GPS locating module 200, the mileage information then drawn by the calculation of longitude & latitude reported is more accurate, in addition, simple by the continuous method regularly reporting GPS information to obtain vehicle mileage, cost is lower.
By reference to the accompanying drawings embodiments of the invention are described above; but the present invention is not limited to above-mentioned embodiment; above-mentioned embodiment is only schematic; instead of it is restrictive; those of ordinary skill in the art is under enlightenment of the present invention; do not departing under the ambit that present inventive concept and claim protect, also can make a lot of form, these all belong within protection of the present invention.

Claims (10)

1. the method by reporting GPS information to obtain vehicle mileage, adopt and be arranged on car-mounted terminal and the setting module (100) be electrically connected successively, GPS locating module (200), computing module (300) and judge module (400), it is characterized in that, said method comprising the steps of:
S1, to be set in advance in by described setting module (100) locating module of GPS described in vehicle travel process (200) report in real time some longitude and latitude to the frequency f of described computing module (300);
S2, described GPS locating module (200) report the longitude and latitude of some A1 to some An in real time to described computing module (300) continuously according to the described frequency f in step S1 in a certain running time section T, wherein, n is the number of times that described GPS locating module (200) reports some longitude and latitude in real time in a certain running time section T, and n=T × f;
S3, described computing module (300) receive the longitude and latitude of the described some A1 to described some An that described GPS locating module (200) reports in a certain running time section T, and distance Lm between Am and described some Am+1 is put described in the calculation of longitude & latitude of continuous two some Am (m=1) and some Am+1, wherein, m is positive integer and 1≤m≤n;
S4, judge whether m equals n-1 by described judge module (400), if m equals n-1, then described computing module (300) calculates the mileage L ≈ L1+L2+...+Ln-1 run in a certain running time T, n is larger, and then L is more accurate, if m is less than n-1, then return step S3, wherein, m=m+1.
2. the method by reporting GPS information to obtain vehicle mileage according to claim 1, it is characterized in that, suppose that the earth is one desirable spherical, when described some Am in described step S3 and described some Am+1 is in same longitude or Same Latitude, the distance Lm between described some Am and described some Am+1 defines by following computing formula:
Lm=2sin (a m/ 2) R; Wherein,
Lm represents the air line distance between described some Am and described some Am+1;
R represents the radius of the earth;
A mrepresent the angle between two isosceles limits in the isosceles triangle that described some Am and described some Am+1 and these three points of earth center point are formed.
3. the method by reporting GPS information to obtain vehicle mileage according to claim 2, it is characterized in that, described computing module (300) namely passes through Am (lat_m by the longitude and latitude of described some Am and described some Am+1, lon_m) and Am+1 (lat_m+1, lon_m+1) calculate described a m, wherein,
Lat_m is the longitude of an Am;
Lon_m is the latitude of an Am;
Lat_m+1 is the longitude of an Am+1;
Lon_m+1 is the latitude of an Am+1.
4. the method by reporting GPS information to obtain vehicle mileage according to claim 3, is characterized in that, when described some Am and described some Am+1 be in same longitude and different latitude time, described a mdefine by following computing formula:
a m=|(lon_m+1)-(lon_m)|。
5. the method by reporting GPS information to obtain vehicle mileage according to claim 3, is characterized in that, when described some Am and described some Am+1 is in Same Latitude and different Longitude In System, described a mdefine by following computing formula:
a m=|(lat_m+1)-(lat_m)|。
6. the method by reporting GPS information to obtain vehicle mileage according to claim 1, it is characterized in that, suppose that the earth is one desirable spherical, when described some Am in described step S3 and described some Am+1 is in different longitude and different latitude, get 1 B identical with the longitude of described some Am, and described some B is identical with the latitude of described some Am+1, the distance Lm between described some Am and described some Am+1 defines by following computing formula:
Lm = [ 2 sin ( β 1 / 2 ) R ] 2 + [ 2 sin ( β 2 / 2 ) R ] 2 ; Wherein,
β 1represent the angle between two isosceles limits in the isosceles triangle that described some B and described some Am and these three points of earth center point are formed, and β 1=| (lon_b)-(lon_m) |, lon_b is the latitude of described some B, and lon_m is the latitude of described some Am;
β 2represent the angle between two isosceles limits in the isosceles triangle that described some B and described some Am+1 and these three points of earth center point are formed, and β 2=| (lat_b)-(lat_m+1) |, lat_b is the longitude of described some B, and lat_m+1 is the longitude of described some Am+1.
7. the method by reporting GPS information to obtain vehicle mileage according to claim 1, it is characterized in that, suppose that the earth is one desirable spherical, when described some Am in described step S3 and described some Am+1 is in different longitude and different latitude, get 1 C identical with the latitude of described some Am, and described some C is identical with the longitude of described some Am+1, the distance Lm between described some Am and described some Am+1 defines by following computing formula:
Lm = [ 2 sin ( β 3 / 2 ) R ] 2 + [ 2 sin ( β 4 / 2 ) R ] 2 ; Wherein,
β 3represent the angle between two isosceles limits in the isosceles triangle that described some C and described some Am and these three points of earth center point are formed, and β 3=| (lat_c)-(lat_m) |, lat_c is the longitude of described some C, and lat_m is the longitude of described some Am;
β 4represent the angle between two isosceles limits in the isosceles triangle that described some C and described some Am+1 and these three points of earth center point are formed, and β 4=| (lon_c)-(lon_m+1) |, lon_c is the latitude of described some C, and lon_m+1 is the latitude of described some Am+1.
8. the system by reporting GPS information to obtain vehicle mileage, it is characterized in that, comprise and be arranged on car-mounted terminal and the setting module (100) be electrically connected successively, GPS locating module (200), computing module (300) and judge module (400), wherein
Described setting module (100) reports the frequency f of some longitude and latitude in real time for being set in advance in the locating module of GPS described in vehicle travel process (200);
Described GPS locating module (200) reports the longitude and latitude of some A1 to some An in real time to described computing module (300) for peace in a certain running time section T according to described frequency f, wherein, n is the number of times that described GPS locating module (200) reports some longitude and latitude in real time in a certain running time section T, and n=T × f;
The longitude and latitude that described computing module (300) reports for receiving described GPS locating module (200), and by continuous two some Am and the calculation of longitude & latitude point Am putting Am+1 and the distance Lm put between Am+1, wherein, m is positive integer and 1≤m≤n, and described computing module (300) is also for calculating the mileage L run in a certain running time T;
Described judge module (400) is for judging whether m equals n-1, if m equals n-1, then described computing module (300) calculates the mileage L run in a certain running time T, and n is larger, and then L is more accurate.
9. the system by reporting GPS information to obtain vehicle mileage according to claim 8, it is characterized in that, suppose that the earth is one desirable spherical, described computing module (300) comprises the first computing unit (301), the second computing unit (302) and the 3rd computing unit (303), wherein
Described first computing unit (301) for when described some Am and described some Am+1 is in same longitude or Same Latitude, by putting the distance Lm between Am and described some Am+1 described in the calculation of longitude & latitude of described some Am and described some Am+1;
Described second computing unit (302) is for when described some Am and described some Am+1 is in different longitude and different latitude, get 1 B identical with the longitude of described some Am, and described some B is identical with the latitude of described some Am+1, by putting the distance Lm between Am and described some Am+1 described in the calculation of longitude & latitude of described some B, described some Am and described some Am+1;
Described 3rd computing unit (303) is for when described some Am and described some Am+1 is in different longitude and different latitude, get 1 C identical with the latitude of described some Am, and described some C is identical with the longitude of described some Am+1, by putting the distance Lm between Am and described some Am+1 described in the calculation of longitude & latitude of described some C, described some Am and described some Am+1.
10. the system by reporting GPS information to obtain vehicle mileage according to claim 9, it is characterized in that, described first computing unit (301) comprises the first computation subunit (3011) and the second computation subunit (3012), wherein
Described first computation subunit (3011) for be in same longitude as described some Am and described some Am+1 and different latitude time, calculate the distance Lm between described some Am and described some Am+1 by the latitude of described some Am and described some Am+1;
Described second computation subunit (3012), for being in Same Latitude and different Longitude In System as described some Am and described some Am+1, calculates the distance Lm between described some Am and described some Am+1 by the longitude of described some Am and described some Am+1.
CN201410428083.4A 2014-08-27 2014-08-27 Method and system for obtaining vehicle mileage by reporting GPS information Pending CN105371864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410428083.4A CN105371864A (en) 2014-08-27 2014-08-27 Method and system for obtaining vehicle mileage by reporting GPS information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410428083.4A CN105371864A (en) 2014-08-27 2014-08-27 Method and system for obtaining vehicle mileage by reporting GPS information

Publications (1)

Publication Number Publication Date
CN105371864A true CN105371864A (en) 2016-03-02

Family

ID=55374271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410428083.4A Pending CN105371864A (en) 2014-08-27 2014-08-27 Method and system for obtaining vehicle mileage by reporting GPS information

Country Status (1)

Country Link
CN (1) CN105371864A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108475362A (en) * 2018-03-21 2018-08-31 深圳市元征软件开发有限公司 Vehicle appraisal procedure, device and equipment
CN108924766A (en) * 2018-08-07 2018-11-30 天津五八到家科技有限公司 Position data method for uploading, Method for Calculate Mileage and device
CN110299018A (en) * 2019-07-29 2019-10-01 安徽文康科技有限公司 A kind of vehicle positioning method applied to traffic monitoring
CN110411451A (en) * 2019-07-29 2019-11-05 安徽文康科技有限公司 A kind of vehicle precise positioning system
CN110954130A (en) * 2019-12-20 2020-04-03 深圳市昊岳科技有限公司 Method for calculating mileage of vehicle tire through positioning module
CN113916249A (en) * 2021-09-17 2022-01-11 华能伊敏煤电有限责任公司 Automatic driving mileage statistical method of mining truck under V2X protocol

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003337047A (en) * 2002-05-21 2003-11-28 Nippon Telegr & Teleph Corp <Ntt> Method and system for remotely monitoring position of moving body
CN101149273A (en) * 2006-09-19 2008-03-26 厦门雅迅网络股份有限公司 Method for calculating vehicle travel mileage
CN101267260A (en) * 2007-12-18 2008-09-17 ***通信集团河北有限公司 Intelligent automatic road measuring device mileage statistical method in mobile network
CN102853845A (en) * 2012-09-10 2013-01-02 无锡坦程物联网科技有限公司 Method for statistics of vehicle driving mileage based on GPS position information
CN103047995A (en) * 2012-11-29 2013-04-17 江苏鸿信***集成有限公司 GPS (global positioning system) terminal mileage statistical method based on satellite positioning technology
WO2014068975A1 (en) * 2012-11-05 2014-05-08 パナソニック株式会社 Autonomous traveling device traveling-information generation device, method, and program, and autonomous traveling device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003337047A (en) * 2002-05-21 2003-11-28 Nippon Telegr & Teleph Corp <Ntt> Method and system for remotely monitoring position of moving body
CN101149273A (en) * 2006-09-19 2008-03-26 厦门雅迅网络股份有限公司 Method for calculating vehicle travel mileage
CN101267260A (en) * 2007-12-18 2008-09-17 ***通信集团河北有限公司 Intelligent automatic road measuring device mileage statistical method in mobile network
CN102853845A (en) * 2012-09-10 2013-01-02 无锡坦程物联网科技有限公司 Method for statistics of vehicle driving mileage based on GPS position information
WO2014068975A1 (en) * 2012-11-05 2014-05-08 パナソニック株式会社 Autonomous traveling device traveling-information generation device, method, and program, and autonomous traveling device
CN103047995A (en) * 2012-11-29 2013-04-17 江苏鸿信***集成有限公司 GPS (global positioning system) terminal mileage statistical method based on satellite positioning technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐丰: "《津桥教育•2014高考牛皮书•高考深度复习:地理》", 31 March 2013, 新世界出版社 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108475362A (en) * 2018-03-21 2018-08-31 深圳市元征软件开发有限公司 Vehicle appraisal procedure, device and equipment
US11295561B2 (en) 2018-03-21 2022-04-05 Shenzhen Launch Software Co., Ltd Vehicle evaluation method, vehicle evaluation equipment and computer readable storage medium
CN108924766A (en) * 2018-08-07 2018-11-30 天津五八到家科技有限公司 Position data method for uploading, Method for Calculate Mileage and device
CN110299018A (en) * 2019-07-29 2019-10-01 安徽文康科技有限公司 A kind of vehicle positioning method applied to traffic monitoring
CN110411451A (en) * 2019-07-29 2019-11-05 安徽文康科技有限公司 A kind of vehicle precise positioning system
CN110954130A (en) * 2019-12-20 2020-04-03 深圳市昊岳科技有限公司 Method for calculating mileage of vehicle tire through positioning module
CN113916249A (en) * 2021-09-17 2022-01-11 华能伊敏煤电有限责任公司 Automatic driving mileage statistical method of mining truck under V2X protocol

Similar Documents

Publication Publication Date Title
CN105371864A (en) Method and system for obtaining vehicle mileage by reporting GPS information
CN103247199B (en) Precise measuring method for moving position and moving gesture of motor vehicle
US20200154248A1 (en) Using ranging over c-v2x to supplement and enhance gps performance
US10775187B2 (en) Method, apparatus, and computer program product for determining lane level traffic information
CN104464375B (en) It is a kind of to recognize the method that vehicle high-speed is turned
CN103047995B (en) Based on the GPS terminal mileage statistical method of satellite positioning tech
CN104318781B (en) Based on the travel speed acquisition methods of RFID technique
CN105070056A (en) Intersection traffic congestion index calculation method based on floating car
CN104916129A (en) Method for calculating real-time traffic speed of road based on large-scale data about vehicles passing through gates
CN103453913A (en) Integrated positioning method of vehicle in parking lot
CN103413437A (en) Method and system for identifying road intersection steering based on vehicle data collection
CN101937616B (en) Method for fusing traffic flow data in real time and device
CN107195178A (en) A kind of method and device for determining vehicle running path
CN103093088A (en) Safety evaluation method for steep slope and winding road
CN106710281A (en) Vehicle positioning data acquisition method and device
CN104316059A (en) Dead-reckoning navigation positioning method and system for acquiring longitude and latitude of automobile by using speedometer
CN105427641A (en) Accurate safety driving behavior recording analysis apparatus and analysis method based on internet-of-vehicles Beidou at different fields
CN102226700B (en) Method for matching electronic map of flyover road network
CN108351220A (en) The polymerization of lane information for numerical map service
DE102007039200B4 (en) Vehicle position detection system and method
CN102800190A (en) Bus transportation velocity extraction method based GPS (Global Positioning System) data of bus
DE102005023266A1 (en) Method and device for improving the GPS-based positioning of vehicles on roads
CN114912689A (en) Map grid index and XGBOST-based over-limit vehicle destination prediction method and system
CN102436742A (en) Method and device for evaluating traffic information service level of floating vehicle system
Tsurushiro et al. Vehicle localization using its vibration caused by road surface roughness

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160302

RJ01 Rejection of invention patent application after publication