Method for measuring and calculating quantity of oil products purchased in gas station according to hazardous chemical substance transport vehicle track and waybill data
By analyzing the trajectory information of hazardous chemical transport vehicles and electronic waybill data, and combining the electronic fence data of the gas station, accurately calculate the amount of oil purchased by the gas station, solving the problem of inaccurate calculations in the existing technology and improving the accuracy of inventory management and cost accounting.
Patent Information
- Application Number
- CN202411902144.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-05-30
AI Technical Summary
It is difficult for the prior art to accurately calculate the quantity of oil purchased at the gas station through the waybill data of hazardous chemical transport vehicles, resulting in inaccurate inventory records, cost accounting deviations and potential risk of interruption of oil supply.
By analyzing the trajectory information of hazardous chemical transport vehicles and electronic waybill data, the vehicles transporting designated oil products are selected, combined with the electronic fence data of the gas station, and the trajectory information is aggregated, the vehicle's stay at the gas station is judged, and the quantity of oil products is calculated.
Accurate calculation of the amount of oil purchased at the gas station has been achieved, the accuracy of inventory management has been improved, the deviation in cost accounting has been reduced, and the risk of interruption of oil supply has been reduced.
Smart Images

Figure CN120069769A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of oil product transportation and gas station management. More specifically, the present invention relates to a method for calculating the quantity of oil products purchased by gas stations based on the trajectories of hazardous chemical transport vehicles and waybill data. Background Art
[0002] The oil product supply of gas stations usually depends on the transportation of hazardous chemical transport vehicles. Accurately calculating the quantity of oil products purchased by gas stations is of great significance for the inventory management, cost accounting, and oil product supply guarantee of gas stations.
[0003] Since most of the data items in the electronic waybills for hazardous chemical transportation are filled in manually by transportation personnel, and a large number of key information such as the consignor and consignee use abbreviations, it is impossible to distinguish the actual consignee, so it is impossible to analyze and verify the actual quantity of oil products purchased by gas stations through waybill data, and it is difficult to accurately determine the actual quantity of oil products purchased by gas stations according to the transportation situation of hazardous chemical transport vehicles. This may lead to problems such as inaccurate inventory records, cost accounting deviations, and potential risks of oil product supply interruptions in gas stations.
[0004] To solve the above problems, a technical solution is provided now. Summary of the Invention
[0005] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a method for calculating the quantity of oil products purchased by gas stations based on the trajectories of hazardous chemical transport vehicles and waybill data to solve the problems raised in the above background art.
[0006] To achieve the above object, the present invention provides the following technical solutions: A method for calculating the quantity of oil products purchased by gas stations based on the trajectories of hazardous chemical transport vehicles and waybill data, comprising the following steps: Step S1, screening the transport vehicles that transport the specified oil products from the electronic waybills, and obtaining the weight of the goods that the transport vehicles can carry; Step S2, screening out these vehicles from the trajectory information according to the vehicles that transport gasoline and diesel obtained from the electronic waybills; Step S3, processing the obtained gas station electronic fence data, uniformly converting the coordinate system of the gas station electronic fence into the coordinate system used in the trajectory information, and unifying it with the coordinate data system of the trajectory information; Step S4, aggregating the trajectory information by vehicle and date, screening out the daily stay time periods of the vehicles according to the vehicle speed and coordinate change characteristics recorded in the trajectory information, including the coordinates and stay time when staying, combining with the geographical coordinate fence of the gas station, filtering out interference data according to the length of stay, judging the relevant information of the vehicles staying at the gas station and the number of gas stations stayed at every day, and calculating the number of vehicles and the quantity of oil products staying at the gas station.
[0007] In a preferred embodiment, step S1 specifically includes the following: Access the electronic waybill database system containing various hazardous chemical transportation operations, filter by setting the oil product name, and accurately find the records related to the transportation vehicles of the designated oil product from the electronic waybill records; For each transportation vehicle transporting the designated oil product screened out, obtain the weight of the goods it can carry from the corresponding electronic waybill record.
[0008] In a preferred embodiment, step S2 specifically includes the following: After screening the electronic waybills to obtain the list of vehicles transporting gasoline and diesel, turn to the database or data set storing the trajectory information of hazardous chemical transport vehicles; The trajectory information includes the geographical location coordinates, speed, and driving direction corresponding to each vehicle at different time points, and each piece of trajectory data is associated with the corresponding vehicle number; Using the vehicle number of the vehicles transporting gasoline and diesel as the association condition, and using the association query operation of the database, screen out the driving trajectory records of these specific vehicles from the trajectory information data to form a subset data only containing the trajectories of the vehicles transporting gasoline and diesel.
[0009] In a preferred embodiment, step S3 specifically includes the following: First, collect the electronic fence data set by each gas station, analyze the coordinate data of the gas station electronic fence obtained, and identify the type of its original coordinate system; Determine the coordinate system adopted by the trajectory information.
[0010] In a preferred embodiment, step S3 specifically further includes the following: According to the determined coordinate system situation, with the help of the coordinate conversion function module provided by the geographic information system software, convert the coordinate data of the gas station electronic fence from its original coordinate system to the coordinate system consistent with the trajectory information.
[0011] In a preferred embodiment, step S4 specifically includes the following: Perform an aggregation operation on the filtered trajectory information according to the two dimensions of vehicle number and date; For the trajectory information of each group of vehicles per day, judge the staying situation based on the vehicle speed and coordinate change characteristics in the record; If the vehicle speed continuously approaches zero within a certain time range, set a speed threshold for approaching zero, the speed threshold is 5 km / h, and the coordinates basically remain unchanged during this time period, then it is determined that the vehicle is in a staying state; Record the start and end times of each stop, the corresponding coordinate positions, and the stop duration to form a detailed data list of the vehicle's daily stop time periods.
[0012] In a preferred embodiment, step S4 specifically further includes the following content: Compare the coordinate position where the vehicle stops with the electronic fence of the gas station after unifying the coordinate system to determine whether the vehicle stops within the range of the gas station; Further filter out interference data according to the length of the stop time. Set a stop time threshold, which is 15 minutes. If the stop duration exceeds this threshold and the position is within the electronic fence of the gas station, it is determined that the vehicle is performing oil-related operations at this gas station; Count the number of gas stations where each vehicle has stopped every day and the relevant detailed information of the stops at each gas station.
[0013] In a preferred embodiment, step S4 specifically further includes the following content Through the above accurate judgment of the vehicle's stop situation at the gas station, count the number of vehicles stopping at each gas station; Combined with the weight of the goods carried by the vehicle obtained in step S1, comprehensively calculate the quantity of oil delivered when actually stopping at each gas station; Calculate all the vehicles stopping at the gas station, and finally obtain the quantity of oil corresponding to each gas station; When the trajectory information is aggregated by vehicle and date, the relevant information about the vehicle's stop at the gas station is analyzed, and after determining the effective stop of the vehicle at the gas station in combination with the electronic fence of the gas station, use the electronic fence to draw the vehicle's driving trajectory data on the visualization map, and mark the stop points of the vehicle at the gas station with different colors or icons; The electronic fence shows the range of the gas station on the map in a specific graph. When the vehicle trajectory point enters the electronic fence area and the stop time meets the judgment conditions, it is highlighted on the visualization interface; Intuitively see the vehicle's driving path and the stop situation at each gas station on the visualization map, including the order of stops and the stop duration. Compare the calculated data of the quantity of oil purchased by the gas station with the vehicle stop information displayed on the visualization map.
[0014] The technical effects and advantages of a method for calculating the quantity of oil purchased by a gas station according to the trajectory and waybill data of a hazardous chemical transport vehicle in the present invention: 1. Through the analysis and processing of the trajectory data, aggregate the information of the vehicle's stops, and combine the electronic fence data of the gas station to screen out the information of the vehicle's stops at the gas station. Combine the oil product information filled in the waybill to calculate the quantity of oil purchased by the gas station; 2. By combining the map coordinate positions with the vehicle transportation trajectory point data, calculate the residence time of the vehicle at the gas station during transportation, measure the quantity of purchased oil products at the gas station, and use it for comparison with the declared data of the gas station to achieve tax risk analysis of the gas station. Dynamically display the trajectory information passed by the vehicle on the map to visually show whether the vehicle has passed by or stayed at the gas station. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic flow chart of a method for calculating the quantity of purchased oil products at a gas station according to the trajectory of a hazardous chemical transport vehicle and waybill data in the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0016] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention. Embodiment
[0017] Figure 1 A method for calculating the quantity of purchased oil products at a gas station according to the trajectory of a hazardous chemical transport vehicle and waybill data in the present invention is given, which specifically includes the following steps: Step S1: Screen the transport vehicles for designated oil products from the electronic waybills and obtain the weight of the goods that the transport vehicles can carry; Step S2: Screen out these vehicles from the trajectory information according to the vehicles transporting gasoline and diesel obtained from the electronic waybills; Step S3: Process the obtained gas station electronic fence data, uniformly convert the coordinate system of the gas station electronic fence into the coordinate system used for the trajectory information, and unify it with the coordinate data system of the trajectory information; Step S4: Aggregate the trajectory information by vehicle and date. According to the vehicle speed and coordinate change characteristics recorded in the trajectory information, screen out the daily residence time periods of the vehicles, including the coordinates and residence time when staying. Combine with the geographical coordinate fence of the gas station, filter out interference data according to the length of the residence time, judge the relevant information of the vehicle staying at the gas station and the number of gas stations stayed at every day, and calculate the number of vehicles and the quantity of oil products staying at the gas station.
[0018] Step S1 specifically includes the following content: Connect to the electronic waybill database system containing various hazardous chemical transport operations, and screen by setting the oil product name to accurately find the relevant records of the transport vehicles for designated oil products from the electronic waybill records; For each transport vehicle selected for transporting designated oil products, obtain the weight of the goods it can carry from the corresponding electronic waybill record.
[0019] It should be added that by setting the oil product name to screen the electronic waybill database, it is possible to precisely focus on the vehicles transporting designated oil products. This can avoid the interference of irrelevant vehicle data and ensure that the data for subsequent analysis is directly related to the transportation of the target oil products. For example, if you only want to analyze the transportation of gasoline, you can extract only the vehicle records transporting gasoline, without mixing in the vehicle information of those transporting other hazardous chemicals (such as liquefied petroleum gas, chemical raw materials, etc.), making the data more accurate and targeted.
[0020] Obtaining the weight of the goods carried from the electronic waybill records corresponding to the selected vehicles provides crucial basic data for subsequent calculation of the quantity of oil products purchased by gas stations. This weight data is the theoretical maximum transportation volume of the oil product under full load of the vehicle and is an important starting value for calculating the actual delivered quantity of oil products, ensuring the accuracy of the calculation from the source data.
[0021] Step S2 specifically includes the following content: After screening the electronic waybills, obtain the list of vehicles transporting gasoline and diesel, and turn to the database or data set storing the trajectory information of hazardous chemical transport vehicles; The trajectory information includes the geographical location coordinates, speed, and driving direction corresponding to each vehicle at different time points, and each trajectory data is associated with the corresponding vehicle number; By using the vehicle numbers of the vehicles transporting gasoline and diesel as the association conditions and performing an association query operation on the database, screen out the driving trajectory records of these specific vehicles from the trajectory information data to form a subset of data containing only the trajectories of vehicles transporting gasoline and diesel.
[0022] It should be added that by combining the list of vehicles transporting gasoline and diesel screened from the electronic waybills, it is possible to accurately extract the vehicle trajectories related to the transportation of the target oil products from the vast trajectory information of hazardous chemical transport vehicles. This avoids the interference of irrelevant vehicle trajectory data, enabling subsequent analysis to focus on the vehicles truly involved in the oil product transportation to gas stations and improving the pertinence of the data. For example, in a database recording the trajectories of various hazardous chemical transports, focusing only on the trajectories of vehicles transporting gasoline and diesel can more effectively mine information related to the oil product supply to gas stations.
[0023] Ensure that the analyzed trajectory data is exactly matched with the vehicles transporting gasoline and diesel determined in the previous steps. This precise matching is crucial for accurately calculating the quantity of oil products purchased by gas stations because only by clarifying the vehicle trajectories transporting gasoline and diesel can we further analyze the stay situation of these vehicles at gas stations and thus infer the delivery situation of the oil products.
[0024] Only the track records of vehicles transporting gasoline and diesel are filtered out, which greatly reduces the amount of data that needs to be processed. Compared with processing the track data of all hazardous chemical transport vehicles, this targeted screening can simplify the subsequent data processing process and reduce the complexity of data processing. For example, processing a database containing thousands of tracks of hazardous chemical transport vehicles may be very time-consuming and complicated, but by filtering out hundreds of track records related to gasoline and diesel transportation, data analysis can be performed more efficiently.
[0025] Step S3 specifically includes the following contents: First, collect the electronic fence data set up by each gas station, parse the obtained coordinate data of the gas station electronic fence, and identify its original coordinate system type; Determines the coordinate system used for the trajectory information.
[0026] Step S3 specifically also includes the following contents: According to the determined coordinate system, with the help of the coordinate conversion function module provided by the geographic information system software, the coordinate data of the gas station electronic fence is converted from its original coordinate system to a coordinate system consistent with the trajectory information.
[0027] It should be added that by converting the coordinate system of the gas station electronic fence into a coordinate system consistent with the trajectory information, it is ensured that the two use the same "language" to describe the spatial position. This is like marking on the same map, so that when judging the relationship between the vehicle trajectory and the gas station location later, it can be accurately compared based on a unified spatial reference standard. For example, before there is a unified coordinate system, the vehicle trajectory shows that the vehicle is at a certain longitude and latitude, while the coordinates of the gas station electronic fence are in another system that cannot be directly compared, so it is difficult to determine whether the vehicle has entered the gas station range; after unification, it can be accurately judged.
[0028] After the unified coordinate system, it is possible to accurately determine whether the vehicle has entered the electronic fence of the gas station. This is crucial to determine whether the vehicle is loading and unloading oil at the gas station. For example, when analyzing the vehicle trajectory, only when it is accurately determined that the vehicle has entered the gas station and the stay time meets the conditions can it be reasonably inferred that the vehicle is delivering oil, thereby improving the accuracy of the calculation of the amount of oil purchased by the gas station.
[0029] Step S4 specifically includes the following contents: Aggregate the filtered trajectory information according to the two dimensions of vehicle number and date; For each group of vehicles’ daily trajectory information, the stay status is determined based on the recorded vehicle speed and coordinate change characteristics; If the vehicle speed remains close to zero within a certain time range, a speed threshold close to zero is set, the speed threshold is 5 km / h, and the coordinates remain basically unchanged during this time period, it is determined that the vehicle is in a stationary state; Record the start and end times of each stop, the corresponding coordinate positions, and the stop duration to form a detailed data list of the vehicle's daily stop time periods.
[0030] It should be added that by judging the stop situation based on the vehicle speed and coordinate change characteristics, and setting a reasonable speed threshold (5 km / h) and coordinate change judgment conditions, the vehicle's true stationary state can be more accurately identified. This avoids misjudgments caused by factors such as positioning errors and short-term low-speed creeping, making the judgment of whether the vehicle is parked more in line with the actual situation. For example, when the vehicle is waiting for a red light at an intersection, it may decelerate briefly but not stop. By comprehensively considering the speed and coordinate changes, this situation can be accurately distinguished from a true stop, providing a reliable basis for subsequent analysis of key behaviors such as the vehicle's stop at a gas station.
[0031] Recording the start and end times of each stop, the corresponding coordinate positions, and the stop duration to form a detailed data list can completely restore the whole process of the vehicle's stop. These detailed information is crucial for further analyzing the purpose of the vehicle's stop. For example, it can be judged whether the vehicle is temporarily parked or staying for a long time for operations such as loading and unloading oil products by the stop duration, and it can be determined whether the stop location is in a key area such as a gas station by the coordinate position, providing accurate and rich data support for accurately calculating the amount of oil purchased by the gas station.
[0032] Step S4 specifically further includes the following content: Compare the coordinate position of the vehicle's stop with the electronic fence of the gas station after unifying the coordinate system to determine whether the vehicle is parked within the gas station range; Further filter out interference data according to the length of the stop time. Set a stop time threshold, the stop time threshold is 15 minutes. If the stop duration exceeds this threshold and the position is within the electronic fence of the gas station, it is determined that the vehicle is performing oil-related operations at this gas station; Count the number of gas stations where each vehicle has stopped every day and the relevant detailed information of the stops at each gas station.
[0033] It should be added that by counting the number of gas stations that each vehicle stops at every day and the detailed information of each gas station, we can fully understand the interaction between vehicles and gas stations from both macro and micro levels. From a macro perspective, we can understand the overall transportation network layout information such as the distribution range of different vehicles, the number of gas stations involved, etc.; from a micro perspective, detailed stop information (such as the specific start and end time of the stop, the order of stop at each gas station, etc.) helps to deeply analyze the specific situation of each oil delivery, such as whether there are frequent vehicles staying at a certain gas station for a long time, which may indicate that the gas station has a large business volume or has some special operating conditions, etc., providing valuable data basis for further optimizing oil distribution plans and gas station management.
[0034] By comparing the spatial position of the vehicle's stop coordinates with the gas station's electronic fence after the unified coordinate system, and combining it with the set stop time threshold (15 minutes) for screening, it is possible to accurately determine whether the vehicle is actually performing oil-related operations at the gas station. This can effectively eliminate interference caused by temporary parking of vehicles (such as drivers taking a short break, avoiding other vehicles, and other situations that are not related to oil loading and unloading), making the judgment results more in line with the actual oil transportation and delivery scenarios. For example, a vehicle may have only stopped briefly on the roadside near a gas station for a few minutes. Through this dual screening mechanism of time and location, it will not be mistakenly judged as loading and unloading oil, thereby accurately locking in key stop situations related to the oil business.
[0035] Step S4 specifically includes the following contents: Through the above accurate judgment of the vehicles' stay at gas stations, the number of vehicles staying at each gas station is counted; Combined with the weight of the cargo carried by the vehicle obtained in step S1, the amount of oil products actually delivered at each gas station is comprehensively calculated; Calculate all vehicles that stop at gas stations and eventually get the amount of fuel corresponding to each gas station; After the trajectory information is aggregated by vehicle and date, the relevant information of the vehicle's stay at the gas station is analyzed and combined with the gas station electronic fence to determine the effective stay of the vehicle at the gas station, the vehicle's driving trajectory data is plotted on a visual map using the electronic fence, and the vehicle's stop point at the gas station is marked with different colors or icons; The electronic fence displays the scope of the gas station in a specific graphic on the map. When the vehicle trajectory point enters the electronic fence area and the stay time meets the judgment conditions, it will be highlighted on the visual interface; Intuitively see the vehicle's driving path and its stops at various gas stations on the visual map, including the order and duration of the stops. Correlate and compare the calculated data on the quantity of oil purchased by the gas station with the vehicle stop information displayed on the visual map.
[0036] It should be added that by accurately judging the stay situation of vehicles at gas stations to count the number of staying vehicles and combining the weight of the goods carried by the vehicles to calculate the quantity of oil products, the actual quantity of oil products purchased by each gas station can be obtained comprehensively and accurately. This calculation method based on the actual staying vehicles and their carrying capacity fully considers the actual oil product delivery situation. Compared with rough estimation or relying on inaccurate records, it greatly improves the accuracy of the calculation results and provides reliable data support for the inventory management, cost accounting and subsequent operation decision-making of gas stations.
[0037] Calculating each vehicle staying at the gas station one by one ensures that no possible oil product delivery behavior is missed, making the final statistics of the quantity of oil products corresponding to each gas station more complete and accurate, which helps to accurately grasp the inflow situation of oil products and timely discover possible quantity differences or abnormal situations.
[0038] Combining the vehicle driving trajectory data with the electronic fence and plotting them on a visual map, and marking the staying points of vehicles at gas stations with different colors or icons, can enable relevant personnel (such as gas station managers, supervisors, etc.) to very intuitively see the entire driving path of the vehicles and the specific staying situations at each gas station. Through the visual interface, complex trajectory and staying information are clear at a glance, eliminating the need to analyze and interpret from a large amount of boring data, reducing the difficulty of understanding and improving the efficiency of information acquisition.
[0039] Specific applications: The company's electronic waybill database system stores all hazardous chemical transportation records in the past month, including vehicle information and waybill details of vehicles transporting various oil products such as gasoline, diesel, and kerosene. At the same time, advanced positioning systems are installed on its hazardous chemical transport vehicles, and the trajectory information is uploaded to the company's data center in real time.
[0040] First, in step S1, the oil product analyst accesses the electronic waybill database system, sets the screening condition as "gasoline", and the system quickly screens out the relevant records of 50 transport vehicles transporting gasoline in the past month and obtains the information on the weight of the goods carried by each vehicle. The carrying capacity of these vehicles ranges from 15 tons to 30 tons.
[0041] Next, in step S2, according to the list of these 50 vehicles transporting gasoline, a related query operation is carried out in the trajectory information database. The trajectory information in the database includes data such as the geographical location coordinates, speed, and driving direction recorded every 3 minutes for each vehicle in the past month. After screening, a detailed subset of the driving trajectory records of these 50 vehicles in that month is obtained, and the total data volume is about 300,000 records (compared with the possible millions of records of processing all hazardous chemical transport vehicle trajectory data, the processing volume is greatly reduced).
[0042] Then, in step S3, the electronic fence data of 100 gas stations served by the company are collected. After parsing, it is found that the coordinate system of the electronic fences of 60 gas stations is the Beijing 54 coordinate system, while the trajectory information uses the WGS84 coordinate system. By using the coordinate conversion function module of the geographic information system software, the electronic fence coordinate data of these 60 gas stations are converted into the WGS84 coordinate system, achieving the unification of the coordinate system.
[0043] In step S4, the filtered trajectory information is aggregated according to the vehicle number and date. For the trajectory information of a certain vehicle on a certain day, such as the trajectory data of the vehicle with the vehicle number "GAS001" on May 10, when it is found that its speed remains below 5 km / h during the period from 10:30 to 11:00 and the coordinates remain basically unchanged within a certain area, it is determined that the vehicle is in a stationary state, and the start time 10:30, end time 11:00, coordinate position (longitude [X1], latitude [Y1]) of this stationary period and the stationary duration of 30 minutes are recorded. By comparing the stationary coordinate position with the electronic fence of the gas station after the unified coordinate system, it is found that this position is within the electronic fence range of the "Station005" gas station and the stationary duration exceeds 15 minutes, so it is determined that the vehicle has carried out oil-related operations at this gas station. After similar analysis of the trajectory information of these 50 vehicles within a month, the number of gas stations where each vehicle has stopped every day and the detailed information of the stops at each gas station are counted. It is found that the vehicle with the vehicle number "GAS003" has delivered gasoline to 15 gas stations within a month and has stopped at the "Station008" gas station the most times, a total of 8 times.
[0044] Finally, combining with the vehicle load information obtained in step S1, assuming that the vehicle with the vehicle number "GAS001" is carrying 20 tons of gasoline, the quantity of gasoline delivered when it stays at the "Station005" gas station is calculated to be 19.8 tons (after considering transportation losses and other factors). Similar calculations are performed for all vehicles staying at the gas station, and finally the gasoline purchase quantity corresponding to each gas station is obtained. For example, the "Station005" gas station purchased a total of 300 tons of gasoline through these vehicles in that month. At the same time, the driving trajectory data of the vehicle is plotted on a visual map using an electronic fence, and the stay points of the vehicle at the gas station are marked with green icons. When the vehicle trajectory point enters the electronic fence area and the stay time meets the determination conditions, it is highlighted with a flashing red box on the visual interface. The gas station management personnel and the oil product transportation dispatching personnel can intuitively see the driving path of the vehicle and the stay situation at each gas station on the visual map, including the order and duration of stays, and correlate and compare the calculated gasoline purchase quantity data of the gas station with the vehicle stay information displayed on the visual map. It is found that there is a deviation between the measured oil product quantity and the expectation during a vehicle stay at the "Station009" gas station. Further investigation reveals that a small amount of gasoline leaked during the vehicle's transportation due to road bumps. Timely measures were taken for handling and record correction, thus ensuring the accuracy and safety of the gas station inventory management and oil product transportation.
[0045] As described above, it is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claimed rights.
[0046] Finally: The above is only the preferred embodiment of the present invention and is not used to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for calculating the quantity of oil purchased by a gas station based on the trajectory of a hazardous chemical transport vehicle and waybill data, characterized in that: The steps include: Step S1, selecting a transport vehicle for transporting a specified oil product from the electronic waybill, and obtaining the weight of the goods that the transport vehicle can carry; Step S2, according to the vehicles transporting gasoline and diesel obtained from the electronic waybill, these vehicles are screened out from the track information; Step S3, processing the acquired gas station electronic fence data, converting the coordinate system of the gas station electronic fence into the coordinate system used by the trajectory information, and unifying it with the coordinate data system of the trajectory information; Step S4, aggregates trajectory information by vehicle and date, and based on the vehicle speed and coordinate change characteristics recorded in the trajectory information, screens out the vehicle's daily stay time period, including the coordinates and stay time of the vehicle, and combines the geographical coordinate fence of the gas station to filter out interference data according to the length of stay, determines the relevant information of the vehicle's stay at the gas station and the number of gas stations it stops at every day, and calculates the number of vehicles and the amount of oil products that stop at the gas station.
2. According to claim 1, a method for calculating the quantity of oil purchased by a gas station based on the trajectory of a hazardous chemical transport vehicle and waybill data, characterized in that: Step S1 specifically includes the following contents: Access the electronic waybill database system that includes all types of hazardous chemicals transportation business, filter by setting the oil product name, and accurately find the relevant records of the transport vehicle transporting the specified oil product from the electronic waybill records; For each selected transport vehicle transporting the specified oil product, the weight of the cargo that it can carry is obtained from the corresponding electronic waybill record.
3. According to claim 2, a method for calculating the quantity of oil purchased by a gas station based on the trajectory of a hazardous chemical transport vehicle and waybill data is characterized in that: Step S2 specifically includes the following contents: After screening the electronic waybills, obtain a list of vehicles transporting gasoline and diesel, and turn to a database or data set that stores the trajectory information of hazardous chemicals transport vehicles; The trajectory information includes the geographic location coordinates, speed and driving direction of each vehicle at different time points, and each trajectory data is associated with the corresponding vehicle number; By taking the serial number of the gasoline and diesel transport vehicle as the association condition and utilizing the association query operation of the database, the driving track records of these specific vehicles are screened out from the track information data to form a subset data containing only the tracks of the gasoline and diesel transport vehicles.
4. According to claim 3, a method for calculating the quantity of oil purchased by a gas station based on the trajectory of a hazardous chemical transport vehicle and waybill data is characterized in that: Step S3 specifically includes the following contents: First, collect the electronic fence data set up by each gas station, parse the obtained coordinate data of the gas station electronic fence, and identify its original coordinate system type; Determines the coordinate system used for the trajectory information.
5. According to claim 4, a method for calculating the quantity of oil purchased by a gas station based on the trajectory of a hazardous chemical transport vehicle and waybill data is characterized in that: Step S3 specifically also includes the following contents: According to the determined coordinate system, with the help of the coordinate conversion function module provided by the geographic information system software, the coordinate data of the gas station electronic fence is converted from its original coordinate system to a coordinate system consistent with the trajectory information.
6. According to claim 5, a method for calculating the quantity of oil purchased by a gas station based on the trajectory of a hazardous chemical transport vehicle and waybill data is characterized in that: Step S4 specifically includes the following contents: Aggregate the filtered trajectory information according to the two dimensions of vehicle number and date; For each group of vehicles’ daily trajectory information, the stay status is determined based on the recorded vehicle speed and coordinate change characteristics; If the vehicle speed is close to zero for a certain period of time, a speed threshold close to zero is set, which is 5 km / h. If the coordinates remain basically unchanged during this period of time, the vehicle is considered to be in a stationary state. The start and end time of each stop, the corresponding coordinate position and the duration of the stop are recorded to form a detailed data list of the vehicle's daily stop time period.
7. A method for calculating the quantity of oil purchased by a gas station based on the trajectory of a hazardous chemical transport vehicle and waybill data according to claim 6, characterized in that: Step S4 specifically also includes the following contents: Compare the coordinates of the vehicle's stop position with the gas station's electronic fence after the coordinate system has been unified to determine whether the vehicle is within the gas station range; Further filter the interference data according to the length of stay, set a stay time threshold of 15 minutes, and if the stay time exceeds the threshold and the location is within the electronic fence of the gas station, it is determined that the vehicle is performing oil-related operations at the gas station; Count the number of gas stations each vehicle stops at each day and the detailed information about the stops at each gas station.
8. According to claim 7, a method for calculating the quantity of oil purchased by a gas station based on the trajectory of a hazardous chemical transport vehicle and waybill data is characterized in that: Step S4 specifically includes the following contents: Through the above accurate judgment of the vehicles' stay at gas stations, the number of vehicles staying at each gas station is counted; Combined with the weight of the cargo carried by the vehicle obtained in step S1, the amount of oil products actually delivered at each gas station is comprehensively calculated; Calculate all vehicles that stop at gas stations and eventually get the amount of fuel corresponding to each gas station; After the trajectory information is aggregated by vehicle and date, the relevant information of the vehicle's stay at the gas station is analyzed and combined with the gas station electronic fence to determine the effective stay of the vehicle at the gas station, the vehicle's driving trajectory data is plotted on a visual map using the electronic fence, and the vehicle's stop point at the gas station is marked with different colors or icons; The electronic fence displays the scope of the gas station in a specific graphic on the map. When the vehicle trajectory point enters the electronic fence area and the stay time meets the judgment conditions, it will be highlighted on the visual interface; Intuitively see the vehicle's driving path and its stops at various gas stations on the visual map, including the order and duration of the stops. Correlate and compare the calculated data on the quantity of oil purchased by the gas station with the vehicle stop information displayed on the visual map.