CN110749335B - Method and system for calculating average mileage from owner to unit in target area - Google Patents

Method and system for calculating average mileage from owner to unit in target area Download PDF

Info

Publication number
CN110749335B
CN110749335B CN201911015732.7A CN201911015732A CN110749335B CN 110749335 B CN110749335 B CN 110749335B CN 201911015732 A CN201911015732 A CN 201911015732A CN 110749335 B CN110749335 B CN 110749335B
Authority
CN
China
Prior art keywords
vehicle
unit
mileage
geohash
vehicles
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911015732.7A
Other languages
Chinese (zh)
Other versions
CN110749335A (en
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.)
Chengdu Luxingtong Information Technology Co ltd
Original Assignee
Chengdu Luxingtong Information Technology Co ltd
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 Chengdu Luxingtong Information Technology Co ltd filed Critical Chengdu Luxingtong Information Technology Co ltd
Priority to CN201911015732.7A priority Critical patent/CN110749335B/en
Publication of CN110749335A publication Critical patent/CN110749335A/en
Application granted granted Critical
Publication of CN110749335B publication Critical patent/CN110749335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Operations Research (AREA)
  • Probability & Statistics with Applications (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Algebra (AREA)
  • Evolutionary Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a system for calculating average mileage from owner to unit in a target area. The method comprises a step of filtering the vehicles at the home, a step of counting the driving mileage and calculating the average value in the on-duty and off-duty time, a step of correcting the average mileage and a step of calculating the average value of the driving mileage of the vehicles in the area. The system comprises an attribution unit, a filtering unit, a data query unit and a mileage calculation unit, wherein the attribution unit confirms the attribution of the vehicle, the filtering unit filters the vehicle in the target area according to conditions to obtain an analysis sample, the data query unit queries the vehicle driving data, and the mileage calculation unit is used for calculating the average mileage of the owner to the unit in the target area according to the commuting rule of going to and leaving work. The invention can accurately calculate the distance from each owner to the unit in the target area. And mining the regularity of the continuous historical data by using the continuous historical data as a reference so that the calculation result is consistent with the actual result.

Description

Method and system for calculating average mileage from owner to unit in target area
Technical Field
The invention relates to the field of big data processing, in particular to a method and a system for calculating the average mileage of a vehicle owner to a unit in a specific target area under big data.
Background
The current automobile has a larger base number and shows a remarkable growth trend. In the presence of a huge number of automobiles, if the accurate control on the state of the automobile can be realized, the system is used as an effective data support for a service provider to provide accurate service for an automobile owner in time.
With the increasing amount of automobiles, the number of owners of vehicles equipped with vehicle-mounted devices (such as positioning devices like GPS) is also increasing. For the vehicle provided with the vehicle-mounted equipment, under the Internet of vehicles big data platform, objective analysis can be carried out on multiple daily behaviors of the vehicle owner, wherein the analysis comprises the analysis of daily travel.
The current conventional solution for vehicle routine travel analysis is to perform linear distance statistics on the starting and ending points of the owner's vehicle. In fact, in the daily running process of the vehicle, the straight running condition almost does not exist, namely the current travel calculation method is not accurate enough.
Disclosure of Invention
The invention aims to: in order to solve the existing problems, a method and a system for calculating the average mileage from the owner to the unit of the vehicle in the target area are provided. So as to more accurately calculate the average travel of the actual curve of the target vehicle from the owner's home to the work unit.
The technical scheme adopted by the invention is as follows:
the invention provides a method for calculating average mileage from owner to unit in a target area, which comprises the following steps:
A. filtering out vehicles, the frequency of which is lower than a first number in a first historical period, in vehicles of which the vehicle attribution is a target area, and executing the following steps for the rest of the vehicles;
B. respectively inquiring the mileage of each vehicle in the working period and the working period every day in the second historical period, and calculating the average mileage of each vehicle in the working period and the working period every day in the second historical period;
C. taking the median of the average mileage of each vehicle in the second historical period as the mileage between the owner of the vehicle and the work unit;
D. and calculating the average value of the mileage of all vehicles.
The first and second history periods are the historical data of the statistical vehicle running, and a continuous period is required to display the regularity. The second history period may be included in the first history period. For each time period, there is a correlation (e.g., a positive correlation) between the set threshold (e.g., the first number) and the corresponding time period (e.g., the corresponding first history time period). The filtering step of the step A plays an important role in the method, and can filter out non-resident home vehicles, namely objects to be analyzed, so that the effectiveness of the sample can be ensured to a certain extent.
By the method, the commuting journey of the vehicle in the on-duty time and the off-duty time in the area is counted and calculated, the method has the characteristic of conforming to the natural rule, the median is taken for the average mileage of each vehicle, the interference of abnormal values can be eliminated, and the accuracy of data is improved. And further, the average value of the travel of each vehicle after screening, filtering and preprocessing is calculated, so that the average mileage between the owner and the unit of the vehicle in the area can be accurately calculated.
Further, the method for confirming the home location of the vehicle comprises the following steps:
for each vehicle, the following steps are performed:
a. geohash coding is carried out on the longitude and latitude in each data packet returned by the vehicle-mounted GNSS device, and a corresponding vehicle Geohash code is obtained; and storing each data packet and the corresponding vehicle Geohash code in a correlation manner;
b. inquiring all data packets in the third history period, and counting the Geohash codes of the vehicles corresponding to the data packets to obtain the frequency of the Geohash codes of the vehicles;
c. screening out the Geohash codes of the first and second quantity with the highest Geohash code frequency statistics;
d. and adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after addition as a vehicle attribution.
The Geohash coding is carried out on the longitude and the latitude, so that the two-dimensional matrix is converted into a character string, and the storage and the calculation of data are facilitated. The attribution determination method adopted by the invention is based on complete historical data, and utilizes regularity characteristics to ensure that the judgment result is accurate.
Furthermore, the encoding length of the Geohash encoding of the longitude and latitude is 5 bits.
The coding length of 5 bits can effectively balance the calculation precision and the calculation load.
Further, between steps a and B, the method further comprises:
and filtering out vehicles which are abnormally passed between the owner and the unit in the second historical period.
The design is to extract the vehicles between the daily normal commute and the home and the unit from the calculation samples, and further optimize the analysis samples, so that the calculation result is more accurate.
Further, the method for judging the vehicle abnormally passing between the owner's home and the unit comprises the following steps:
and in the second historical period, the number of passing days in the working period and the working period does not meet the preset condition.
The invention also provides a system for calculating the average mileage from owner to unit in a target area, which comprises the following steps:
a home unit for confirming a vehicle home;
the filtering unit is connected with the attribution unit and is used for filtering out vehicles with the frequency lower than the first number in the first historical period in the vehicles with the target areas;
the data query unit is connected with the filtering unit and used for querying the mileage of each vehicle which runs in the working time interval and the working time interval every day in the second historical time interval;
the mileage calculation unit is connected with the data query unit and is used for calculating the average mileage of each vehicle in the second historical period, wherein the average mileage is traveled every day in the working period and the working period; the mileage measuring system is also used for taking the median of the average mileage of each vehicle in the second historical period as the mileage between the owner of the vehicle and the work unit; and the method is also used for carrying out average value calculation on the mileage of all vehicles to obtain the average mileage from the owner to the unit in the target area.
By the system, the analysis samples are filtered, the vehicles which are very resident in the attribution place can be removed, and the samples are optimized. The commuting journey of the vehicles in the on-duty time and the off-duty time in the region is counted and calculated, the method has the characteristic of conforming to the natural law, the median is taken for the average mileage of each vehicle, the interference of abnormal values can be eliminated, and the accuracy of data is improved. And further, the average value of the travel of each vehicle after screening, filtering and preprocessing is calculated, so that the average mileage between the owner and the unit of the vehicle in the area can be accurately calculated.
Further, the home unit includes:
the configuration module is at least used for configuring the encoding length of Geohash encoding on the longitude and latitude;
the data packet receiving module is used for receiving each data packet returned by each vehicle-mounted GNSS device, and the data packet at least comprises longitude and latitude data;
the encoding module is respectively connected with the configuration module and the data packet receiving module and is used for carrying out Geohash encoding on the longitude and latitude in the data packet according to the encoding length configured by the configuration unit;
the storage module is respectively connected with the data packet receiving module and the coding module and is used for associating the storage data packet with the corresponding Geohash code;
the attribution confirmation module is connected with the storage module and used for inquiring all data packets in the third history period and counting the vehicle Geohash codes corresponding to the data packets to obtain the frequency of each vehicle Geohash code; the method is also used for screening the front second quantity of the Geohash codes with the highest Geohash coding frequency statistics; and the method is also used for adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after the addition as the attribution of the vehicles.
The home location unit of the design converts the two-dimensional matrix into a character string by performing Geohash coding on the longitude and latitude, so that the storage and calculation of data are facilitated. Meanwhile, the designed logic modules are matched with each other, so that the data can be positioned and calculated quickly.
Further, the code length of the configuration unit for configuring the Geohash code is 5 bits.
Further, the filtering unit is further configured to: and filtering out vehicles which are abnormally passed between the owner and the unit in the second historical period.
Further, the method for judging the vehicle abnormally passing between the owner's home and the unit comprises the following steps: and in the second historical period, the number of passing days in the working period and the working period does not meet the preset condition.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that:
1. the invention can accurately calculate the distance from each owner to the unit in the target area. And mining the regularity of the continuous historical data by using the continuous historical data as a reference so that the calculation result is consistent with the actual result.
2. The screening steps designed by the invention can realize the optimization of the analysis sample, so that the analysis sample is more consistent with the actual requirement, and the accuracy of the calculation result is improved.
3. The invention utilizes the Geohash coding method to position the vehicle attribution, skillfully utilizes the characteristics of the codes, can greatly reduce the calculation difficulty, and simultaneously, because the Geohash codes can be flexibly partitioned, the boundaries of the target area can be accurately partitioned, thereby accurately screening the analysis samples.
Drawings
The invention will now be described, by way of example, with reference to the accompanying drawings, in which:
FIG. 1 is one embodiment of GeoHash algorithm partitioning.
FIG. 2 is a flow chart of a method for calculating average mileage between a home and a work unit in a target area.
FIG. 3 is one embodiment of a vehicle home confirmation method.
FIG. 4 is one embodiment of a method for calculating average mileage between a host home and a work unit in a target area.
FIG. 5 is another embodiment of a method for calculating average mileage between a host home and a work unit in a target area.
FIG. 6 is a block diagram of a system for calculating average mileage between a main home and a work unit in a target area.
Fig. 7 is a block diagram of the home unit of fig. 6.
Detailed Description
All of the features disclosed in this specification, or all of the steps in any method or process so disclosed, may be combined in any combination, except combinations of features and/or steps that are mutually exclusive.
Any feature disclosed in this specification (including any accompanying claims, abstract) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
Basic introduction to the GeoHash algorithm:
GeoHash is an address coding method. The method can encode two-dimensional space longitude and latitude data into a character string. We divide the map into several rectangular areas of equal size. The GeoHash address codes of all longitudes and latitudes in the same rectangular area are the same, and the address codes of different rectangular areas are different. The size of the rectangular region (the accuracy of the Geohash code is higher when the rectangular region is smaller) can be manually modified in the algorithm according to the calculation requirements of the user. And the modification process is reversible, namely a corresponding longitude and latitude can be obtained through the Geohash code.
As shown in fig. 1, all the latitudes and longitudes within WX4ER are considered to be the same point (corresponding to the code WX4ER) at the time of calculation.
Meanwhile, experiments prove that the algorithm of the Geohash has certain errors. The longer the Geohash code length (5 bits in the figure) is according to the principle of the algorithm, the smaller the error is, but the larger the amount of calculation is. The comparison between the code length and the error is shown in the following table:
Figure BDA0002245643500000071
for different application scenarios, different code lengths are used to balance errors and computational load.
Example one
As shown in fig. 2, the present embodiment discloses a method for calculating an average mileage between a home and a work unit in a target area, which includes the following steps:
A. filtering out vehicles, of which the vehicle attribution is a target area, which occur less frequently than a first number in a first history period;
B. respectively inquiring the mileage of each vehicle in the working period and the working period every day in the second historical period, and calculating the average mileage of each vehicle in the working period and the working period every day in the second historical period;
C. taking the median of the average mileage of each vehicle in the second historical period as the mileage between the owner of the vehicle and the work unit;
D. and calculating the average value of the mileage of all vehicles.
Example two
The embodiment discloses a method for confirming a vehicle home, which comprises the following steps:
a. geohash coding is carried out on the longitude and latitude in each data packet returned by the vehicle-mounted GNSS device, and a corresponding vehicle Geohash code is obtained; and storing each data packet and the corresponding vehicle Geohash code in a correlation manner;
b. inquiring all data packets in the third history period, and counting the Geohash codes of the vehicles corresponding to the data packets to obtain the frequency of the Geohash codes of the vehicles;
c. screening out the Geohash codes of the first and second quantity with the highest Geohash code frequency statistics;
d. and adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after addition as a vehicle attribution.
And reversely analyzing the corresponding longitude and latitude corresponding to the area with the highest statistical frequency, and obtaining the corresponding attribution according to the longitude and latitude.
For example, the vehicle home location confirmation method includes the steps of:
a. geohash coding is carried out on the longitude and latitude in each data packet returned by the vehicle-mounted GNSS device, and a vehicle Geohash code is obtained; and storing each data packet in association with the corresponding vehicle Geohash code.
b. And inquiring all data packets in the last 3 months (adjustable), and counting the Geohash codes of the vehicles corresponding to the data packets to obtain the frequency of the Geohash codes of the vehicles.
c. Taking Geohash codes of the first 200 (adjustable) vehicles with the highest Geohash code frequency;
d. and adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after addition as a vehicle attribution.
EXAMPLE III
The embodiment discloses a method for calculating average mileage between a car owner and a work unit in a target area, which comprises the following steps:
as shown in fig. 3, the confirmation of the vehicle home: for each vehicle, the following procedures A-D are performed:
A. geohash coding is carried out on the longitude and latitude in each data packet returned by the vehicle-mounted GNSS device, and a vehicle Geohash code is obtained; and storing each data packet in association with the corresponding vehicle Geohash code.
B. And inquiring all data packets in the last 3 months (adjustable), and counting the Geohash codes of the vehicles corresponding to the data packets to obtain the frequency of the Geohash codes of the vehicles.
C. Taking Geohash codes of the first 200 (adjustable) vehicles with the highest Geohash code frequency;
D. and adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after addition as a vehicle attribution. And performing associated storage on the vehicle attribution, the longitude and latitude corresponding to the vehicle attribution, the Geohash code corresponding to the vehicle attribution and the occurrence frequency.
As shown in fig. 4, the calculation process of the average mileage per unit from the owner to the owner in the target area includes:
E. and filtering out vehicles to be analyzed in a vehicle attribution (target area), wherein the statistical frequency of the Geohash codes of the vehicles is lower than 1000 (adjustable), obtaining analysis sample vehicles, and recording the total amount as total. Taking the achievement as an example, the steps are as follows: and inquiring all vehicles of which the vehicle attributions are metropolis, filtering out vehicles of which the Geohash coding frequency is lower than 1000 (adjustable), and obtaining an analysis sample vehicle, wherein the total amount is total.
F. Query analysis for each vehicle in the sample vehicles for the last 30 days (tunable), 07: 00-09: the mileage of 00 (on duty) and 17:30-19:30 (off duty) and the average mileage per day is calculated, respectively.
G. The median of the average mileage traveled by each vehicle in the analysis sample vehicle in the last 30 days (tunable) was taken as the average distance between the owner of the individual vehicle and the work unit and recorded as mx.
H. And (4) carrying out average calculation (namely averaging after addition) on the average distances of all the vehicles in the analysis sample vehicle to obtain the average distance between the owner and the working unit in the target area. Namely:
M=(mx1+mx2+……+mxtotal)/total
example four
The embodiment discloses another method for calculating the average distance between a vehicle owner and a working unit in a target area, which comprises the following steps:
as shown in fig. 3, the confirmation of the vehicle home: for each vehicle, the following steps are performed:
A. geohash coding is carried out on the longitude and latitude in each data packet returned by the vehicle-mounted GNSS device, and a vehicle Geohash code is obtained; and storing each data packet in association with the corresponding vehicle Geohash code.
B. And inquiring all data packets in the last 3 months (adjustable), and counting the Geohash codes of the vehicles corresponding to the data packets to obtain the frequency of the Geohash codes of the vehicles.
C. Taking Geohash codes of the first 200 (adjustable) vehicles with the highest Geohash code frequency;
D. and adding frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after addition as a vehicle attribution.
As shown in fig. 5, the calculation process of the average mileage per unit from the owner to the owner in the target area includes:
E. and filtering out vehicles with the vehicle attribution places and the statistical vehicle Geohash coding frequency lower than 1000 to obtain the analysis sample vehicle.
F. Filter out the last 30 days (tunable) in the analysis sample vehicle, at 07: 00-09: and in the time interval of 00 (on duty) and 17:30-19:30 (off duty), the running times are less than 10 days (adjustable) or more than 26 days (adjustable). To filter out operation type vehicles and non-working unit vehicles.
G. For the remaining vehicles after F filtering, the last 30 days (tunable) were queried for 07: 00-09: the mileage of 00 (on duty) and 17:30-19:30 (off duty) and the average mileage per day is calculated, respectively.
H. For the remaining vehicles after F filtering, the median of the average mileage traveled by the last 30 days (tunable) vehicle was taken as the average distance between the owner of the individual vehicle and the work unit.
I. And (4) carrying out average calculation (namely, averaging after addition) on the average distances of all vehicles (the vehicles left after the filtering) to obtain the average distance between the owner and the working unit.
EXAMPLE five
The embodiment discloses a system for calculating average mileage from owner to unit in a target area, as shown in fig. 6, the system includes:
and the home location unit is used for confirming the home location of the vehicle.
And the filtering unit is connected with the attribution unit and is used for filtering out vehicles with the frequency lower than the first number in the first historical period in the vehicles with the target areas.
And the data query unit is connected with the filtering unit and is used for querying the mileage of each vehicle which runs in the working time interval and the working time interval every day in the second historical time interval.
The mileage calculation unit is connected with the data query unit and is used for calculating the average mileage of each vehicle in the second historical period, wherein the average mileage is traveled every day in the working period and the working period; the mileage measuring system is also used for taking the median of the average mileage of each vehicle in the second historical period as the mileage between the owner of the vehicle and the work unit; and the method is also used for carrying out average value calculation on the mileage of all vehicles to obtain the average mileage from the owner to the unit in the target area.
EXAMPLE six
The present embodiment discloses a structure of a home unit, as shown in fig. 7, the home unit includes:
and the configuration module is at least used for configuring the encoding length of Geohash encoding on the longitude and latitude.
And the data packet receiving module is used for receiving each data packet returned by each vehicle-mounted GNSS device, and the data packet at least comprises latitude and longitude data.
And the coding module is respectively connected with the configuration module and the data packet receiving module and is used for performing Geohash coding on the longitude and latitude in the data packet according to the coding length configured by the configuration unit.
And the storage module is respectively connected with the data packet receiving module and the coding module and is used for associating the storage data packet with the corresponding Geohash code.
The attribution confirmation module is connected with the storage module and used for inquiring all data packets in the third history period and counting the vehicle Geohash codes corresponding to the data packets to obtain the frequency of each vehicle Geohash code; the method is also used for screening the front second quantity of the Geohash codes with the highest Geohash coding frequency statistics; and the method is also used for adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after the addition as the attribution of the vehicles. Correspondingly, after the area with the highest vehicle Geohash code counting frequency is counted, the corresponding area address can be obtained by reversely analyzing the vehicle Geohash code.
EXAMPLE seven
The embodiment discloses a system for calculating average mileage from owner to unit in a target area, as shown in fig. 6, the system includes:
a home location unit for confirming a home location of the vehicle, as shown in fig. 7, the home location unit includes:
and the configuration module is at least used for configuring the encoding length of Geohash encoding on the longitude and latitude.
And the data packet receiving module is used for receiving each data packet returned by each vehicle-mounted GNSS device, and the data packet at least comprises latitude and longitude data.
And the coding module is respectively connected with the configuration module and the data packet receiving module and is used for performing Geohash coding on the longitude and latitude in the data packet according to the coding length configured by the configuration unit.
And the storage module is respectively connected with the data packet receiving module and the coding module and is used for associating the storage data packet with the corresponding Geohash code.
The attribution confirmation module is connected with the storage module and used for inquiring all data packets in the third history period and counting the vehicle Geohash codes corresponding to the data packets to obtain the frequency of each vehicle Geohash code; the method is also used for screening the front second quantity of the Geohash codes with the highest Geohash coding frequency statistics; and the method is also used for adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after the addition as the attribution of the vehicles.
The computing system further comprises:
and the filtering unit is connected with the attribution unit and is used for filtering out vehicles with the frequency lower than the first number in the first historical period in the vehicles with the target areas. Taking the achievement as an example, the filtering unit is used for filtering out vehicles which occur less frequently than the first number in the first historical period in the vehicles whose attribution is metropolis.
And the data query unit is connected with the filtering unit and is used for querying the mileage of each vehicle which runs in the working time interval and the working time interval every day in the second historical time interval.
The mileage calculation unit is connected with the data query unit and is used for calculating the average mileage of each vehicle in the second historical period, wherein the average mileage is traveled every day in the working period and the working period; the mileage measuring system is also used for taking the median of the average mileage of each vehicle in the second historical period as the mileage between the owner of the vehicle and the work unit; and the method is also used for carrying out average value calculation on the mileage of all vehicles to obtain the average mileage from the owner to the unit in the target area.
For example, as shown in FIG. 6, a computing system includes:
a home location unit for confirming a home location of the vehicle, as shown in fig. 7, the home location unit includes:
and the configuration module is used for configuring the encoding length of Geohash encoding on the longitude and latitude into 5 bits.
And the data packet receiving module is used for receiving each data packet returned by each vehicle-mounted GNSS device, and the data packet at least comprises latitude and longitude data.
And the coding module is respectively connected with the configuration module and the data packet receiving module and is used for performing Geohash coding on the longitude and latitude in the data packet according to the coding length configured by the configuration unit.
And the storage module is respectively connected with the data packet receiving module and the coding module and is used for associating the storage data packet with the corresponding Geohash code.
The attribution confirmation module is connected with the storage module and used for inquiring all data packets in the last 3 months (adjustable) and counting the vehicle GeoHash codes corresponding to the data packets to obtain the frequency of each vehicle GeoHash code; the method is also used for screening the first 200 (adjustable) Geohash codes with the highest Geohash code frequency statistics; and the method is also used for adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after the addition as the attribution of the vehicles.
The computing system further comprises:
and the filtering unit is connected with the home location unit and is used for filtering the vehicles with the frequency of less than 1000 in the last 3 months (adjustable). Taking an achievement as an example, the filtering unit is used for filtering out vehicles which have a frequency of less than 1000 in the last three months (adjustable) in vehicles whose vehicle attribution is urban.
And the data query unit is connected with the filtering unit and is used for querying the mileage of each vehicle which runs in the working time period and the working time period every day in the last 30 days (adjustable).
And the mileage calculation unit is connected with the data inquiry unit and is used for calculating the speed ratio of each vehicle in the second historical period, namely 07: 00-09: 00 (on duty) and 17:30-19:30 (off duty); the system is also used for taking the median of the average mileage of each vehicle in the last 30 days (adjustable) as the mileage between the owner and the work unit of the vehicle; and the method is also used for carrying out average value calculation on the mileage of all vehicles to obtain the average mileage from the owner to the unit in the target area.
Example eight
The embodiment discloses another system for calculating average mileage between a driver and a unit in a target area, as shown in fig. 6, the system includes:
a home location unit for confirming a home location of the vehicle, as shown in fig. 7, the home location unit includes:
and the configuration module is used for configuring the encoding length of Geohash encoding on the longitude and latitude into 5 bits.
And the data packet receiving module is used for receiving each data packet returned by each vehicle-mounted GNSS device, and the data packet at least comprises latitude and longitude data.
And the coding module is respectively connected with the configuration module and the data packet receiving module and is used for performing Geohash coding on the longitude and latitude in the data packet according to the coding length configured by the configuration unit.
And the storage module is respectively connected with the data packet receiving module and the coding module and is used for associating the storage data packet with the corresponding Geohash code.
The attribution confirmation module is connected with the storage module and used for inquiring all data packets in the last 3 months (adjustable) and counting the vehicle GeoHash codes corresponding to the data packets to obtain the frequency of each vehicle GeoHash code; the method is also used for screening the first 200 (adjustable) Geohash codes with the highest Geohash code frequency statistics; and the method is also used for adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after the addition as the attribution of the vehicles.
The computing system further comprises:
and the filtering unit is connected with the home location unit and is used for filtering the vehicles with the frequency of less than 1000 in the last 3 months (adjustable). Taking an achievement as an example, the filtering unit is used for filtering out vehicles which have a frequency of less than 1000 in the last three months (adjustable) in vehicles whose vehicle attribution is urban. Also used to filter out the last 30 days (tunable), at 07: 00-09: and (5) vehicles which run less than 10 days (adjustable, corresponding to vehicles without fixed work units) or more than 26 days (adjustable, corresponding to operation type vehicles) within 00 (working hours) and 17:30-19:30 (working hours). I.e. to filter vehicles that are not normally passing between the owner's home and the organization.
And the data query unit is connected with the filtering unit and is used for querying the mileage of each vehicle which runs in the working time period and the working time period every day in the last 30 days (adjustable).
And the mileage calculation unit is connected with the data inquiry unit and is used for calculating the speed ratio of each vehicle in the second historical period, namely 07: 00-09: 00 (on duty) and 17:30-19:30 (off duty); the system is also used for taking the median of the average mileage of each vehicle in the last 30 days (adjustable) as the mileage between the owner and the work unit of the vehicle; and the method is also used for carrying out average value calculation on the mileage of all vehicles to obtain the average mileage from the owner to the unit in the target area.
The invention is not limited to the foregoing embodiments. The invention extends to any novel feature or any novel combination of features disclosed in this specification and any novel method or process steps or any novel combination of features disclosed.

Claims (8)

1. A method for calculating average mileage from home to unit of a vehicle owner in a target area is characterized by comprising the following steps:
A. filtering out vehicles, the frequency of which is lower than a first number in a first historical period, in vehicles of which the vehicle attribution is a target area, and executing the following steps for the rest of the vehicles;
B. respectively inquiring the mileage of each vehicle in the working period and the working period every day in the second historical period, and calculating the average mileage of each vehicle in the working period and the working period every day in the second historical period;
C. taking the median of the average mileage of each vehicle in the second historical period as the mileage between the owner of the vehicle and the work unit;
D. calculating the average value of the mileage of all vehicles;
the method for confirming the home location of the vehicle comprises the following steps:
for each vehicle, the following steps are performed:
a. geohash coding is carried out on the longitude and latitude in each data packet returned by the vehicle-mounted GNSS device, and a corresponding vehicle Geohash code is obtained; and storing each data packet and the corresponding vehicle Geohash code in a correlation manner;
b. inquiring all data packets in the third history period, and counting the Geohash codes of the vehicles corresponding to the data packets to obtain the frequency of the Geohash codes of the vehicles;
c. screening out the Geohash codes of the first and second quantity with the highest Geohash code frequency statistics;
d. and adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after addition as a vehicle attribution.
2. The method for calculating the average mileage between a driver and a unit in a target area according to claim 1, wherein the Geohash encoding of the latitude and longitude is 5 bits.
3. The method for calculating the average mileage between the owner's home and the unit in the target area according to claim 1, wherein between the steps A and B, the method further comprises:
and filtering out vehicles which are abnormally passed between the owner and the unit in the second historical period.
4. The method for calculating the average mileage between the owner's home and the unit in the target area according to claim 3, wherein the method for judging the vehicle which normally passes between the owner's home and the unit comprises:
and in the second historical period, the number of passing days in the working period and the working period does not meet the preset condition.
5. A system for calculating average home-to-unit mileage of a vehicle within a target area, comprising:
a home unit for confirming a vehicle home;
the filtering unit is connected with the attribution unit and is used for filtering out vehicles with the frequency lower than the first number in the first historical period in the vehicles with the target areas;
the data query unit is connected with the filtering unit and used for querying the mileage of each vehicle which runs in the working time interval and the working time interval every day in the second historical time interval;
the mileage calculation unit is connected with the data query unit and is used for calculating the average mileage of each vehicle in the second historical period, wherein the average mileage is traveled every day in the working period and the working period; the mileage measuring system is also used for taking the median of the average mileage of each vehicle in the second historical period as the mileage between the owner of the vehicle and the work unit; the system is also used for carrying out average value calculation on the mileage of all vehicles to obtain the average mileage from the owner to the unit of the vehicle in the target area;
the home unit includes:
the configuration module is at least used for configuring the encoding length of Geohash encoding on the longitude and latitude;
the data packet receiving module is used for receiving each data packet returned by each vehicle-mounted GNSS device, and the data packet at least comprises longitude and latitude data;
the encoding module is respectively connected with the configuration module and the data packet receiving module and is used for carrying out Geohash encoding on the longitude and latitude in the data packet according to the encoding length configured by the configuration unit;
the storage module is respectively connected with the data packet receiving module and the coding module and is used for associating the storage data packet with the corresponding Geohash code;
the attribution confirmation module is connected with the storage module and used for inquiring all data packets in the third history period and counting the vehicle Geohash codes corresponding to the data packets to obtain the frequency of each vehicle Geohash code; the method is also used for screening the front second quantity of the Geohash codes with the highest Geohash coding frequency statistics; and the method is also used for adding the statistical frequencies of the Geohash codes of the vehicles corresponding to the same area, and taking the area with the highest frequency after the addition as the attribution of the vehicles.
6. The system for calculating the average home-to-unit mileage within a target area as claimed in claim 5, wherein the code length of the configuration unit for the Geohash code is 5 bits.
7. The system for calculating average home-to-unit mileage for a vehicle within a target area of claim 5, wherein the filter unit is further configured to: and filtering out vehicles which are abnormally passed between the owner and the unit in the second historical period.
8. The system for calculating the average mileage of the owner's home to the unit in the target area as claimed in claim 7, wherein the method for judging the vehicle which is abnormally passed between the owner's home and the unit is: and in the second historical period, the number of passing days in the working period and the working period does not meet the preset condition.
CN201911015732.7A 2019-10-24 2019-10-24 Method and system for calculating average mileage from owner to unit in target area Active CN110749335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911015732.7A CN110749335B (en) 2019-10-24 2019-10-24 Method and system for calculating average mileage from owner to unit in target area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911015732.7A CN110749335B (en) 2019-10-24 2019-10-24 Method and system for calculating average mileage from owner to unit in target area

Publications (2)

Publication Number Publication Date
CN110749335A CN110749335A (en) 2020-02-04
CN110749335B true CN110749335B (en) 2021-05-04

Family

ID=69279680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911015732.7A Active CN110749335B (en) 2019-10-24 2019-10-24 Method and system for calculating average mileage from owner to unit in target area

Country Status (1)

Country Link
CN (1) CN110749335B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959759A (en) * 2006-11-17 2007-05-09 上海城市综合交通规划科技咨询有限公司 Traffic analysis method based on fluctuated data of vehicles
CN101777258A (en) * 2009-12-24 2010-07-14 南京信息工程大学 Urban vehicle control method and device of carrying out statistics of driving mileage
CN105513351A (en) * 2015-12-17 2016-04-20 北京亚信蓝涛科技有限公司 Traffic travel characteristic data extraction method based on big data
CN105913656A (en) * 2016-04-28 2016-08-31 泰华智慧产业集团股份有限公司 Distributed statistics based method and system for frequently passing vehicles
CN106557963A (en) * 2015-09-30 2017-04-05 百度在线网络技术(北京)有限公司 Process method, device and the server for using car order
CN106971534A (en) * 2017-02-09 2017-07-21 江苏智通交通科技有限公司 Commuter characteristic analysis method based on number plate data
CN106982416A (en) * 2017-03-21 2017-07-25 深圳广联赛讯有限公司 The method and apparatus for determining vehicle ownership place
CN107066458A (en) * 2016-08-26 2017-08-18 北京车网互联科技有限公司 A kind of Spatial dimensionality user portrait analysis method based on car networking data
CN109858567A (en) * 2019-03-06 2019-06-07 上海赢科信息技术有限公司 The judgment method and system of the trip form of car owner

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9171327B2 (en) * 2012-03-23 2015-10-27 Ebay Inc. Systems and methods for in-vehicle navigated shopping

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959759A (en) * 2006-11-17 2007-05-09 上海城市综合交通规划科技咨询有限公司 Traffic analysis method based on fluctuated data of vehicles
CN101777258A (en) * 2009-12-24 2010-07-14 南京信息工程大学 Urban vehicle control method and device of carrying out statistics of driving mileage
CN106557963A (en) * 2015-09-30 2017-04-05 百度在线网络技术(北京)有限公司 Process method, device and the server for using car order
CN105513351A (en) * 2015-12-17 2016-04-20 北京亚信蓝涛科技有限公司 Traffic travel characteristic data extraction method based on big data
CN105913656A (en) * 2016-04-28 2016-08-31 泰华智慧产业集团股份有限公司 Distributed statistics based method and system for frequently passing vehicles
CN107066458A (en) * 2016-08-26 2017-08-18 北京车网互联科技有限公司 A kind of Spatial dimensionality user portrait analysis method based on car networking data
CN106971534A (en) * 2017-02-09 2017-07-21 江苏智通交通科技有限公司 Commuter characteristic analysis method based on number plate data
CN106982416A (en) * 2017-03-21 2017-07-25 深圳广联赛讯有限公司 The method and apparatus for determining vehicle ownership place
CN109858567A (en) * 2019-03-06 2019-06-07 上海赢科信息技术有限公司 The judgment method and system of the trip form of car owner

Also Published As

Publication number Publication date
CN110749335A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
US11869091B2 (en) Recording and reporting of driving characteristics using wireless mobile device
CN107067722B (en) Method for constructing vehicle running condition
CN107977476B (en) Method for estimating remaining endurance mileage of automobile
US8489433B2 (en) System and method for estimating loss propensity of an insured vehicle and providing driving information
US7991549B2 (en) Traffic information system based on travel history
CN103278833A (en) Line recommendation system and method based on Beidou satellite/GPS (global positioning system) data
CN108803559B (en) Vehicle fault analysis method, device and system
CN105632222A (en) Method and system for predicting station arrival time
EP2740080A1 (en) System and method for estimating loss costs and propensity of an insured vehicle and providing driving information
CN108922170B (en) Intersection safety evaluation method based on electronic police snapshot data
CN110749335B (en) Method and system for calculating average mileage from owner to unit in target area
CN113094388B (en) Method and related device for detecting user workplace and residence
CN116481560B (en) Vehicle driving mileage calculation method, device, terminal and storage medium
CN111680888A (en) Method for determining road network capacity based on RFID data
DE102017002305A1 (en) Determining a vehicle usage mode
CN111291095A (en) Data processing method, device and equipment
CN108268678A (en) Driving behavior analysis method, apparatus and system
CN115909752A (en) Sharp turn recognition and statistics method based on historical data of vehicle user
CN112347376B (en) Taxi passenger carrying point recommendation method based on multi-time-space clustering
CN108346299B (en) Vehicle speed evaluation method and device
CN112729863B (en) Vehicle actual measurement road selection method
CN113946718A (en) Air monitoring data storage method, equipment and storage system
CN110688436B (en) Improved GeoHash road clustering method based on driving track
CN116109145B (en) Risk assessment method, risk assessment device, risk assessment terminal and risk assessment storage medium for vehicle driving route
CN110956820A (en) Highway passenger traffic overload real-time early warning system based on passenger mobile phone GPS positioning

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