Travel distance acquisition method and device, storage medium and electronic equipment
By combining transportation data, historical transportation tasks and information feedback from GPS equipment, the mileage of transportation tasks is calculated, and the problem of poor mileage accuracy in the existing technology is solved and higher accuracy is achieved.
Patent Information
- Application Number
- CN202310786725.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2024-12-31
AI Technical Summary
In the prior art, the mileage accuracy of transportation tasks is poor, mainly due to the different algorithm accuracy of different GPS devices, which leads to high and low data.
By collecting transportation data for transportation tasks, empirical mileage is calculated based on transportation data and the mileage of historical transportation tasks, and combining the position information feedback from GPS equipment to correct the GPS mileage, and obtain navigation mileage, and comprehensively calculate the mileage of transportation tasks.
It improves the accuracy of mileage in transportation tasks and has higher accuracy than mileage obtained directly through GPS equipment.
Smart Images

Figure CN119223322A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of logistics technology, and in particular to a method and device for obtaining mileage, a storage medium, and an electronic device. Background Art
[0002] In the transportation scenario, the accuracy of the mileage of the transportation task is an important part of the company's refined management.
[0003] At present, the mileage of transportation tasks is generally obtained directly through the GPS device of the Internet of Vehicles. Due to the different algorithm accuracy of different GPS devices, there is a problem of high or low data, which leads to poor accuracy of mileage. Summary of the invention
[0004] The present application provides a method and device for obtaining mileage, a storage medium and an electronic device, the purpose of which is to solve the problem of poor accuracy of mileage in the prior art.
[0005] In order to achieve the above objectives, this application provides the following technical solutions:
[0006] A method for obtaining mileage, comprising:
[0007] Collect transportation data for transportation tasks;
[0008] Calculate the experience mileage of the transport task based on the transport data and the mileage of historical transport tasks;
[0009] Obtaining the GIS mileage and GPS mileage of the transport task; wherein the GIS mileage is the navigation mileage of the transport task, and the GPS mileage is obtained by correcting the position information fed back by the GPS device of the target vehicle during the execution of the transport task, and the target vehicle is the vehicle that executes the transport task;
[0010] The mileage of the transportation task is obtained according to the empirical mileage, the GIS mileage and the GPS mileage.
[0011] In the above method, optionally, the calculating the experience mileage of the transport task based on the transport data and the mileage of historical transport tasks includes:
[0012] Based on the transportation data, selecting historical transportation tasks that match the transportation data from historical transportation tasks;
[0013] Generate a normal distribution curve based on the mileage of the selected historical transportation tasks;
[0014] Determining a confidence interval of the normal distribution curve based on a preset confidence level;
[0015] Based on the driving mileage belonging to the confidence interval, the empirical mileage of the transport task is calculated.
[0016] In the above method, optionally, the step of obtaining the GPS mileage of the transportation task includes:
[0017] Calling the Internet of Things interface to obtain the location information fed back in real time by the GPS device of the target vehicle during the process of the target vehicle performing the transportation task;
[0018] Perform data preprocessing on each location information;
[0019] Performing trajectory fitting on the position information after data preprocessing to obtain the driving trajectory of the target vehicle;
[0020] Based on the driving track of the target vehicle, the GPS mileage of the transportation task is obtained.
[0021] In the above method, optionally, the step of obtaining the GIS mileage of the transportation task includes:
[0022] Based on the transportation data, calling a third-party interface to obtain the navigation mileage of the transportation task;
[0023] The navigation mileage is determined as the GIS mileage of the transportation task.
[0024] In the above method, optionally, obtaining the mileage of the transportation task according to the empirical mileage, the GIS mileage and the GPS mileage includes:
[0025] Determining whether any one of the experience mileage, the GIS mileage, and the GPS mileage has not been obtained;
[0026] If any one of the experience mileage, the GIS mileage and the GPS mileage is not obtained, the manually reported mileage input is received, and the manually reported mileage is reviewed by the review system. If the manually reported mileage passes the review, the manually reported mileage is used as the mileage of the transportation task;
[0027] If any one of the experience mileage, the GIS mileage and the GPS mileage is obtained, it is determined whether the number of the obtained mileage is greater than 1. If it is not greater than 1, the obtained mileage or the input manually reported mileage is used as the driving mileage of the transportation task;
[0028] If it is not greater than 1, one of the acquired mileages is used as the mileage of the transportation task.
[0029] In the above method, optionally, the step of using the acquired mileage or the input manually reported mileage as the mileage of the transportation task includes:
[0030] In the case where no manually reported mileage is received, the acquired mileage is used as the mileage of the transport task;
[0031] When the manually reported mileage is received, the deviation rate between the manually reported mileage and the acquired mileage is calculated. If the deviation rate is within a preset range, the manually reported mileage is used as the mileage of the transportation task.
[0032] In the above method, optionally, the step of using one of the acquired mileages as the driving mileage of the transportation task includes:
[0033] Determine whether the number of mileage obtained is greater than 2;
[0034] If it is greater than 2, when the deviation rate between the experience mileage and the GPS mileage is within the preset range, the experience mileage is used as the mileage of the transportation task; when the deviation rate between the experience mileage and the GPS mileage is not within the preset range, if the deviation rate between the GPS mileage and the GIS mileage is within the preset range, the GPS mileage is used as the mileage of the transportation task; otherwise, the GIS mileage is used as the mileage of the transportation task;
[0035] If it is greater than 2, when the acquired mileage includes experience mileage, if the deviation rate between the experience mileage and another mileage is within the preset range, the experience mileage is used as the driving mileage of the transportation task; if the deviation rate between the experience mileage and another mileage is not within the preset range, the other mileage is used as the driving mileage of the transportation task; when the acquired mileage does not include experience mileage, if the deviation rate between the GPS mileage and the GIS mileage is within the preset range, the GPS mileage is used as the driving mileage of the transportation task; otherwise, the GIS mileage is used as the driving mileage of the transportation task.
[0036] A mileage acquisition device, comprising:
[0037] A collection unit, used for collecting transportation data of transportation tasks;
[0038] A calculation unit, used for calculating the experience mileage of the transport task based on the transport data and the mileage of historical transport tasks;
[0039] An acquisition unit, used for acquiring the GIS mileage and GPS mileage of the transport task; wherein the GIS mileage is the navigation mileage of the transport task, and the GPS mileage is obtained by correcting the position information fed back by the GPS device of the target vehicle during the execution of the transport task, and the target vehicle is the vehicle that executes the transport task;
[0040] The determination unit obtains the mileage of the transportation task according to the empirical mileage, the GIS mileage and the GPS mileage.
[0041] A storage medium stores an instruction set, wherein the instruction set, when executed by a processor, implements the above-mentioned method for obtaining mileage.
[0042] An electronic device, comprising:
[0043] A memory for storing at least one set of instructions;
[0044] The processor is used to execute the instruction set stored in the memory, and implement the above-mentioned mileage acquisition method by executing the instruction set.
[0045] Compared with the prior art, this application has the following advantages:
[0046] The present application provides a method and device for obtaining mileage, a storage medium and an electronic device. The method collects the transportation data of the transportation task; calculates the empirical mileage of the transportation task based on the transportation data and the mileage of the historical transportation tasks; obtains the GIS mileage and GPS mileage of the transportation task; wherein the GIS mileage is the navigation mileage of the transportation task, and the GPS mileage is obtained by correcting the position information fed back by the GPS device of the target vehicle during the execution of the transportation task, and the target vehicle is the vehicle executing the transportation task; the mileage of the transportation task is obtained based on the empirical mileage, GIS mileage and GPS mileage. It can be seen that the present application scheme uses historical transportation tasks to mine empirical mileage, corrects the position information fed back by the GPS device to obtain the GPS mileage, and obtains the GIS mileage, and then combines the empirical mileage, GPS mileage and GIS mileage to obtain the mileage of the transportation task, which has higher accuracy than the mileage obtained directly through the GPS device in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0048] Figure 1 A method flow chart of a method for obtaining mileage provided in this application;
[0049] Figure 2 A flowchart of another method for obtaining mileage provided by the present application;
[0050] Figure 3 A flowchart of another method for obtaining mileage provided by the present application;
[0051] Figure 4 A flowchart of another method for obtaining mileage provided by the present application;
[0052] Figure 5 A flowchart of another method for obtaining mileage provided by the present application;
[0053] Figure 6 An example diagram of a method for obtaining mileage provided in this application;
[0054] Figure 7 A schematic diagram of the structure of a mileage acquisition device provided in this application;
[0055] Figure 8 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0058] It should be noted that the concepts such as "first" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0059] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0060] The present application can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or equipment, etc.
[0061] The embodiment of the present application provides a method for obtaining mileage, which can be applied to a variety of system platforms, and its execution subject can be a processor of a computer terminal or various mobile devices. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:
[0062] S101, collecting transportation data of the transportation task.
[0063] In this embodiment, transportation data of the transportation task is collected, wherein the transportation data at least includes the origin, destination, start time, end time, and model of the target vehicle.
[0064] Among them, the target vehicle is a vehicle that performs a transportation task.
[0065] S102: Calculate the experience mileage of the transportation task based on the transportation data and the mileage of historical transportation tasks.
[0066] In this embodiment, the experience mileage of the transport task is calculated based on the transport data and the mileage of historical transport tasks. Specifically, historical transport tasks that meet the conditions are screened from historical transport tasks according to the transport data, and the experience mileage of the transport task is calculated based on the mileage of the historical transport tasks that meet the conditions.
[0067] See also Figure 2 , based on the transportation data and the mileage of historical transportation tasks, the process of calculating the empirical mileage of the transportation task specifically includes the following steps:
[0068] S201. Based on the transportation data, select historical transportation tasks that match the transportation data from historical transportation tasks.
[0069] In this embodiment, based on the transportation data, historical transportation tasks that match the transportation data are screened from the historical transportation tasks. Specifically, based on the start time and end time in the transportation data, the execution time period of the transportation task is determined from various preset time periods, and the historical transportation tasks that are in the execution time period and have the same origin, destination and vehicle type are screened from the transportation data of the historical transportation tasks. The screened historical transportation tasks are the historical transportation tasks that match the transportation data.
[0070] Exemplarily, the process of determining the execution time period of a transport task from a preset time period based on the start time and end time in the transport data specifically includes: based on the start time and end time in the transport data, judging in turn whether the time included in each time period covers both the start time and end time; if so, determining the time period as the execution time period of the transport task.
[0071] S202: Generate a normal distribution curve based on the mileage corresponding to the selected historical transportation tasks.
[0072] In this embodiment, a normal distribution curve is drawn based on the mileage of the screened historical transportation tasks, thereby obtaining a normal distribution curve.
[0073] S203: Determine a confidence interval of the normal distribution curve based on a preset confidence level.
[0074] In this embodiment, the confidence level is preset, and the confidence level can be expressed as M. It should be noted that the confidence level can be adjusted according to needs;
[0075] In this embodiment, the confidence interval of the normal distribution curve is determined based on a preset confidence level.
[0076] It should be noted that the process of determining the confidence interval based on the confidence level can be found in the existing process of determining the confidence interval, which will not be repeated here.
[0077] S204: Calculate the empirical mileage of the transportation task based on the driving mileage within the confidence interval.
[0078] In this embodiment, the mileage falling within the confidence interval is determined, and based on the mileage falling within the confidence interval, the experience mileage of the transport task is calculated. Preferably, an average value is calculated for the mileage falling within the confidence interval, and the calculated average value is used as the experience mileage of the transport task.
[0079] S103. Obtain the GIS mileage and GPS mileage of the transportation task.
[0080] In this embodiment, the GIS mileage and GPS mileage of the transport task are obtained, wherein the GIS mileage is the navigation mileage of the transport task, and the GPS mileage is obtained by correcting the position information fed back by the GPS device of the target vehicle during the execution of the transport task, and the target vehicle is the vehicle that performs the transport task.
[0081] It should be noted that since the GPS mileage is obtained by correcting and fitting the location information fed back by the GPS device, the GPS mileage obtained in this application has higher accuracy than the mileage obtained directly through the GPS device in the prior art.
[0082] The process of obtaining the GIS mileage of a transportation task includes the following steps:
[0083] Based on the transportation data, call the third-party interface to obtain the navigation mileage of the transportation task;
[0084] Determine the navigation mileage as the GIS mileage of the transportation task.
[0085] In this embodiment, based on the transportation data, a third-party interface is called to obtain the navigation mileage of the transportation task, wherein the third-party interface is an interface of an application with a navigation function. Specifically, the starting place, destination, start time, end time and vehicle are used as the starting place, and the third-party API service is called to obtain the navigation mileage.
[0086] In this embodiment, the acquired navigation mileage is determined as the GIS mileage of the transportation task.
[0087] See also Figure 3 The process of obtaining the GPS mileage of the transportation task includes the following steps:
[0088] S301. Call the Internet of Things interface to obtain the location information fed back in real time by the GPS device of the target vehicle during the target vehicle's execution of the transportation task.
[0089] In this embodiment, the Internet of Things interface (i.e., IOT interface) is called to obtain the position information fed back in real time by the GPS device of the target vehicle during the process of the target vehicle performing the transportation task. The position information is the track points on the driving route of the target vehicle during the process of performing the transportation task.
[0090] Among them, the GPS device is the GPS device of the Internet of Vehicles.
[0091] S302: Perform data preprocessing on each piece of location information.
[0092] In this embodiment, data preprocessing is performed on each piece of position information. Specifically, thinning, denoising, outlier cleaning, and repeated road merging of the position information are performed based on the vertical distance limit method to reduce the amount of position information and redundant data.
[0093] S303: Perform trajectory fitting on the position information after data preprocessing to obtain the driving trajectory of the target vehicle.
[0094] In this embodiment, trajectory fitting is performed on the position information after data preprocessing to obtain the driving trajectory of the target vehicle. Specifically, the position information after data preprocessing is bound to the road network, and the probability confidence interval is set for the GPS sample point based on the probability information. The trajectory fitting is performed according to the distance between the position information after data preprocessing and the position of the GPS sample point within the probability confidence area.
[0095] S304: Based on the driving track of the target vehicle, obtain the GPS mileage of the transportation task.
[0096] In this embodiment, the GPS mileage of the transport task is obtained based on the driving trajectory of the target vehicle. Specifically, the GPS mileage of the transport task is calculated based on the driving trajectory of the target vehicle using a distributed cluster computing method.
[0097] In the method provided in the embodiment of the present application, data preprocessing is performed on the position information fed back by the GPS device in real time, and trajectory fitting is performed based on the position information after data preprocessing, and the GPS mileage of the transport task is obtained based on the driving trajectory of the target vehicle, thereby correcting the position information fed back by the GPS to obtain the GPS mileage of the transport task.
[0098] S104. Obtain the driving mileage of the transportation task based on the empirical mileage, GIS mileage and GPS mileage.
[0099] In this embodiment, the driving mileage of the transportation task is obtained based on the empirical mileage, GIS mileage, and GPS mileage.
[0100] See also Figure 4 ,The process of obtaining the mileage of the transportation task based on the empirical mileage, GIS mileage and GPS mileage specifically includes the following steps:
[0101] S401. Determine whether any of the experience mileage, GIS mileage and GPS mileage has not been obtained. If so, execute S402; if not, execute S403.
[0102] In this embodiment, it is determined whether any one of the experience mileage, GIS mileage and GPS mileage has not been acquired.
[0103] It should be noted that under certain conditions, experience mileage, GIS mileage and GPS mileage may not be obtained.
[0104] For example, if the route taken by the target vehicle to perform the transport task is a new route, there is no historical transport task matching the transport task, and the experience mileage cannot be obtained.
[0105] For example, if the route taken by the target vehicle to perform the transportation task is not covered by the network, it may result in the inability to obtain the navigation mileage of the transportation task.
[0106] For example, if the route taken by the target vehicle to perform a transportation task is not covered by the network, it may result in the inability to obtain the location information of the target vehicle, thereby resulting in the inability to obtain GPS mileage.
[0107] S402, receiving the manually reported mileage input, and using the review process to review the manually reported mileage, and if the manually reported mileage passes the review, using the manually reported mileage as the mileage of the transportation task.
[0108] If any of the experience mileage, GIS mileage and GPS mileage is not obtained, the manually reported mileage interface is opened, and the input manually reported mileage is received, and the manually reported mileage is reviewed by the audit system. If the manually reported mileage passes the review, the manually reported mileage will be used as the mileage of the transportation task.
[0109] Specifically, when the manually reported mileage is received, the manually reported mileage is sent to the review system, and the review system reviews the manually reported mileage and obtains the review results fed back by the review system. When the review results ensure that the manually reported mileage has passed the review, the manually reported mileage is used as the mileage of the transportation task.
[0110] S403, determine whether the number of mileage obtained is greater than 1, if not, execute S404, if so, execute S405.
[0111] If any one of the mileages in the experience mileage, GIS mileage and GPS mileage is obtained, it is further determined whether the number of mileages obtained is greater than 1. If not, it means that only one mileage is obtained. If greater than 1, it means that at least two mileages are obtained.
[0112] S404: The acquired mileage or the input manually reported mileage is used as the driving mileage of the transportation task.
[0113] In this embodiment, if the number of mileages acquired is not greater than 1, the manually reported mileage interface is opened, and the input manually reported mileage is received, and the acquired mileage or the input manually reported mileage is used as the driving mileage of the transport task. Specifically, after opening the manually reported mileage interface, if the input manually reported mileage is received, the acquired mileage is directly used as the driving mileage of the transport task, that is, when the acquired mileage is the experience mileage, the experience mileage is used as the driving mileage of the transport task, when the acquired mileage is the GIS mileage, the GIS mileage is used as the driving mileage of the transport task, and when the acquired mileage is the GPS mileage, the GPS mileage is used as the driving mileage of the transport task.
[0114] After the manual reporting interface is opened, the input manually reported mileage is received, and the deviation rate between the manually reported mileage and the acquired mileage is calculated. The deviation rate between the manually reported mileage and the acquired mileage = ((manually reported mileage - acquired mileage) / manually reported mileage) * 100%.
[0115] If the deviation rate between the manually reported mileage and the acquired mileage is within a preset range, the manually reported mileage is used as the mileage of the transportation task. Exemplarily, the preset range is (-10%, 10%).
[0116] If the deviation rate between the manually reported mileage and the obtained mileage is not within the preset range, the manually reported mileage will be sent to the audit system, and the audit system will audit the manually reported mileage and obtain the audit results fed back by the audit system. If the audit results ensure that the manually reported mileage has passed the audit, the manually reported mileage will be used as the mileage of the transportation task.
[0117] S405: Use one of the acquired mileages as the driving mileage of the transportation task.
[0118] In this embodiment, if the number of mileages obtained is greater than 1, that is, at least two mileages are obtained, that is, either the experience mileage and GPS mileage are obtained, or the experience mileage and GIS mileage are obtained, or the GPS mileage and GIS mileage are obtained, or the experience mileage, GPS mileage and GIS mileage are obtained.
[0119] When the number of acquired mileages is greater than 1, one of the acquired mileages is used as the driving mileage of the transportation task.
[0120] See also Figure 5 The process of using one of the acquired mileages as the mileage of the transportation task specifically includes the following steps:
[0121] S501. Determine whether the number of mileages obtained is greater than 2. If so, execute S502. If not, execute S503.
[0122] In this embodiment, when the number of acquired mileage is greater than 1, it is further determined whether the number of acquired mileage is greater than 2.
[0123] S502, determine whether the deviation rate between the experience mileage and the GPS mileage is within a preset range, if so, execute S504, if not, execute S505.
[0124] When the number of acquired mileages is greater than 2, the deviation rate between the experience mileage and the GPS mileage is calculated, and the deviation rate between the experience mileage and the GPS mileage=((experience mileage-GPS mileage) / experience mileage)*100%.
[0125] It is determined whether the deviation rate between the experience mileage and the GPS mileage is within a preset range. Preferably, the preset range is (-10%, 10%).
[0126] S503, determine whether the acquired mileage includes experience mileage, if so, execute S506, if not, execute S505.
[0127] In this embodiment, when the number of acquired mileage is not greater than 2, that is, when the number of acquired mileage is 2, it is further determined whether the acquired mileage includes experience mileage.
[0128] S504: Use the experience mileage as the driving mileage of the transportation task.
[0129] In this embodiment, if the deviation rate between the experience mileage and the GPS mileage is within a preset range, or the deviation rate between the experience mileage and another mileage is within a preset range, the experience mileage is used as the driving mileage of the transportation task.
[0130] S505. Determine whether the deviation rate between GPS mileage and GIS mileage is within a preset range. If so, execute S507; if not, execute S508.
[0131] In this embodiment, if the deviation rate between the experience mileage and the GPS mileage is within a preset range, the deviation rate between the GPS mileage and the GIS mileage is further calculated, and the deviation rate between the GPS mileage and the GIS mileage = ((GPS mileage-GIS mileage) / GPS mileage)*100%.
[0132] In this embodiment, if the number of acquired mileages is 2, and the acquired mileages do not include empirical mileages, the deviation rate between the GPS mileage and the GIS mileage is further calculated.
[0133] Determine whether the deviation rate between GPS mileage and GIS mileage is within the preset range.
[0134] S506: Determine whether the deviation rate between the experience mileage and another mileage is within a preset range. If yes, execute S504; if no, execute S509.
[0135] In this embodiment, in the case where the acquired mileage includes the experience mileage, the deviation rate between the experience mileage and another mileage is calculated, and it is determined whether the deviation rate between the experience mileage and the other mileage is within a preset range.
[0136] In this embodiment, when it is determined that the deviation rate between the experienced mileage and another mileage is within the preset range, step S504 is executed. If it is determined that the deviation rate between the experienced mileage and another mileage is not within the preset range, step S509 is executed.
[0137] S507: Use the GPS mileage as the driving mileage of the transportation task.
[0138] In this embodiment, if the deviation rate between the GPS mileage and the GIS mileage is within a preset range, the GPS mileage is used as the mileage of the transportation task.
[0139] In this embodiment, when the number of mileages obtained is 2 and the mileage obtained is the experience mileage and the GPS mileage, if the deviation rate between the experience mileage and another mileage is within a preset range, the GPS mileage is used as the mileage of the transportation task.
[0140] S508. Use the GIS mileage as the driving mileage of the transportation task.
[0141] In this embodiment, if the deviation rate between the GPS mileage and the GIS mileage is not within a preset range, the GIS mileage is used as the mileage of the transportation task.
[0142] In this embodiment, when the number of mileages obtained is 2 and the mileage obtained is the experience mileage and the GIS mileage, if the deviation rate between the experience mileage and another mileage is within a preset range, the GIS mileage is used as the mileage of the transportation task.
[0143] S509, determine whether the other mileage is GPS mileage, if so, execute S507, if not, execute S508.
[0144] In this embodiment, if the deviation rate between the experience mileage and another mileage is not within the preset range, it is further determined whether the other mileage is a GPS mileage. If the other mileage is a GPS mileage, step S507 is executed. If the other mileage is not a GPS mileage, it means that the other mileage is a GIS mileage, and step S508 is executed.
[0145] The present application provides a method for obtaining mileage, which collects transportation data of a transportation task; calculates the empirical mileage of the transportation task based on the transportation data and the mileage of historical transportation tasks; obtains the GIS mileage and GPS mileage of the transportation task; wherein the GIS mileage is the navigation mileage of the transportation task, and the GPS mileage is obtained by correcting the position information fed back by the GPS device of the target vehicle during the execution of the transportation task, and the target vehicle is the vehicle executing the transportation task; the mileage of the transportation task is obtained based on the empirical mileage, GIS mileage and GPS mileage. It can be seen that the present application scheme uses historical transportation tasks to mine empirical mileage, and corrects the position information fed back by the GPS device to obtain the GPS mileage, and obtains the GIS mileage, and then combines the empirical mileage, GPS mileage and GIS mileage to obtain the mileage of the transportation task, which has higher accuracy than the mileage obtained directly through the GPS device in the prior art.
[0146] See also Figure 6The specific implementation process of the mileage acquisition method provided in the above embodiment of the present application is illustrated as follows:
[0147] The driver who is to perform the transport task starts to perform the transport task and inputs the transport data (the transport data includes the origin, destination, start time, end time, and model of the target vehicle) to the TMS background, i.e., the transport management system. The transport management system sends the transport data to the trajectory big data platform. The trajectory big data platform obtains the experience mileage of the transport task based on the transport data and the mileage of historical transport tasks, and obtains the GPS mileage and GIS mileage.
[0148] Among them, (1) the process of obtaining the experience mileage: for direct routes with the same origin and destination, the mileage of historical transportation tasks is obtained, and the experience mileage is calculated, where the model parameters are the starting point, end point, vehicle type (related to road conditions and restrictions, a necessary parameter), duration, start and end time; under the premise of meeting the time limit, the trajectory points are matched and regressed for similarity, and the mileage data is calculated for normal distribution. When the confidence level M is met, the task in interval N is defined as a valid object, defined as an experience route, and the average mileage is taken as the experience mileage;
[0149] (2) Process acquisition of GIS mileage: Select the same starting point and end point, and use the start time, end time, and vehicle type as input parameters, automatically call the external third-party API service to obtain the navigation mileage, and record it as representative GIS mileage;
[0150] (3) GPS mileage acquisition process: When the vehicle is equipped with a GPS device and the returned data is normal, when the starting point and end point are the same, the start time and end time are used as input parameters, and the IOT interface is automatically called to obtain the GPS mileage. At the same time, the trajectory mileage is calculated in real time through "trajectory preprocessing" and "trajectory fitting" to obtain the GPS mileage.
[0151] The trajectory preprocessing process includes: thinning, denoising, outlier cleaning, and repeated road merging of trajectory points based on the vertical distance limit method to reduce the number of uploaded trajectory points and redundant data;
[0152] The trajectory fitting process is as follows: the above preprocessed data is bound to the road network, the confidence interval of the GPS sample points is set based on the probability information, the probability value is obtained according to the distance between the GPS point and the position within the confidence area, and the best matching path is determined;
[0153] The distributed real-time trajectory mileage calculation process is: use the distributed cluster computing method to perform the calculation, and complete the calculation at the end time point to obtain the GPS mileage.
[0154] The trajectory big data platform will feed back the results of obtaining experience mileage, GPS mileage and GIS mileage to the TMS backend;
[0155] The TMS backend obtains the results fed back by the trajectory big data platform and obtains the recommended mileage through the preset strategy; determines whether the recommended mileage is obtained through the output of strategy 5 in the preset strategy. If so, executes the first operation to obtain the mileage of the transportation task; if not, determines whether the recommended mileage is obtained through the output of strategy 6 in the preset strategy. If so, receives the input manually reported mileage, and sends the manually reported mileage to the review system for review. If it passes the review, the manually reported mileage is used as the mileage for the transportation task; if not, the recommended mileage is used as the mileage for the transportation task.
[0156] Among them, the first operation is: when the input manually reported mileage is received, if the deviation rate between the manually reported mileage and the mileage returned by strategy 5 is within the preset range, the manually reported mileage is used as the mileage of the transportation task; if the deviation rate between the manually reported mileage and the mileage returned by strategy 5 is not within the preset range, the manually reported mileage is sent to the review system for review. If the review is passed, the manually reported mileage is used as the mileage of the transportation task; if the input manually reported mileage is not received, the mileage returned by strategy 5 is used as the mileage of the transportation task.
[0157] Among them, the preset strategies include strategies 1-6.
[0158] Under the condition of certain economy, assuming that the timeliness can be met, the mileage priority is: experience mileage>GIS mileage>GPS mileage, and the "automatic transportation mileage calculation model" is established to obtain the recommended mileage:
[0159] (1) Strategy 1: GPS mileage, experience mileage, and GIS mileage all exist.
[0160] Then compare: -10% < ((experience mileage - GPS mileage) / GPS mileage) * 100% < 10%. If true, return the experience mileage.
[0161] Otherwise: compare -10% < ((GPS mileage - GIS mileage) / GIS mileage) * 100% < 10%, if it holds, return GPS mileage, otherwise return GIS mileage;
[0162] (2) Strategy 2: If the experience mileage and GIS mileage exist, but there is no GPS mileage data (device reports an abnormality), then:
[0163] Comparison: -10% < ((experience mileage - GIS mileage deviation rate) / GIS mileage) * 100% < 10%. If true, return the experience mileage, otherwise return the GIS mileage.
[0164] (3) Strategy 3: If the experience mileage and GPS mileage exist, but there is no data for GIS mileage (the vehicle model or the interface returns no value), then:
[0165] Comparison: -10% < ((experience mileage - GPS mileage) / GPS mileage < 10%) * 100%. If true, return the experience mileage, otherwise return the GPS mileage.
[0166] (4) Strategy 4: GPS mileage and GIS mileage exist, but experience mileage has no value (to calculate a reasonable value), then:
[0167] Comparison: -10% < ((GPS mileage - GIS mileage deviation rate) / GIS mileage)% < 10%. If true, return GPS mileage, otherwise return GIS mileage.
[0168] (5) Strategy 5: There is only one value for the three mileages, so return directly;
[0169] (6) Strategy 6: If there is no value for GPS mileage, experience mileage, or GIS mileage, then nothing is returned.
[0170] It should be noted that although the operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
[0171] It should be understood that the various steps described in the method embodiments disclosed in the present application can be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0172] and Figure 1 Corresponding to the method described above, the embodiment of the present application also provides a mileage acquisition device for Figure 1 The specific implementation of the method is shown in the following diagram: Figure 7 As shown, specifically including:
[0173] A collection unit 701 is used to collect transportation data of a transportation task;
[0174] A calculation unit 702, configured to calculate the experience mileage of the transport task based on the transport data and the mileage of historical transport tasks;
[0175] The acquisition unit 703 is used to acquire the GIS mileage and GPS mileage of the transport task; wherein the GIS mileage is the navigation mileage of the transport task, and the GPS mileage is obtained by correcting the position information fed back by the GPS device of the target vehicle during the execution of the transport task, and the target vehicle is the vehicle that executes the transport task;
[0176] The determination unit 704 obtains the mileage of the transportation task according to the empirical mileage, the GIS mileage and the GPS mileage.
[0177] The mileage acquisition device provided in the embodiment of the present application mines the empirical mileage through historical transportation tasks, corrects the location information fed back by the GPS device to obtain the GPS mileage, and obtains the GIS mileage, and then combines the empirical mileage, GPS mileage and GIS mileage to obtain the mileage of the transportation task. Compared with the mileage directly obtained by the GPS device in the prior art, the mileage acquisition device has higher accuracy.
[0178] In one embodiment of the present application, based on the above solution, the calculation unit 702 is specifically configured to:
[0179] Based on the transportation data, selecting historical transportation tasks that match the transportation data from historical transportation tasks;
[0180] Generate a normal distribution curve based on the mileage of the selected historical transportation tasks;
[0181] Determining a confidence interval of the normal distribution curve based on a preset confidence level;
[0182] Based on the driving mileage belonging to the confidence interval, the empirical mileage of the transport task is calculated.
[0183] In one embodiment of the present application, based on the above solution, when acquiring the GPS mileage of the transportation task, the acquisition unit 703 is specifically used to:
[0184] Calling the Internet of Things interface to obtain the location information fed back in real time by the GPS device of the target vehicle during the process of the target vehicle performing the transportation task;
[0185] Perform data preprocessing on each location information;
[0186] Performing trajectory fitting on the position information after data preprocessing to obtain the driving trajectory of the target vehicle;
[0187] Based on the driving track of the target vehicle, the GPS mileage of the transportation task is obtained.
[0188] In one embodiment of the present application, based on the above solution, when acquiring the GIS mileage of the transportation task, the acquisition unit 703 is specifically used to:
[0189] Based on the transportation data, calling a third-party interface to obtain the navigation mileage of the transportation task;
[0190] The navigation mileage is determined as the GIS mileage of the transportation task.
[0191] In one embodiment of the present application, based on the above solution, the determining unit 704 is specifically configured to:
[0192] Determining whether any one of the experience mileage, the GIS mileage, and the GPS mileage has not been obtained;
[0193] If any one of the experience mileage, the GIS mileage and the GPS mileage is not obtained, the manually reported mileage input is received, and the manually reported mileage is reviewed by the review system. If the manually reported mileage passes the review, the manually reported mileage is used as the mileage of the transportation task;
[0194] If any one of the experience mileage, the GIS mileage and the GPS mileage is obtained, it is determined whether the number of the obtained mileage is greater than 1. If it is not greater than 1, the obtained mileage or the input manually reported mileage is used as the driving mileage of the transportation task;
[0195] If it is not greater than 1, one of the acquired mileages is used as the mileage of the transportation task.
[0196] In one embodiment of the present application, based on the above solution, when the determination unit 704 uses the acquired mileage or the input manually reported mileage as the driving mileage of the transportation task, it is specifically used to:
[0197] In the case where no manually reported mileage is received, the acquired mileage is used as the mileage of the transport task;
[0198] When the manually reported mileage is received, the deviation rate between the manually reported mileage and the acquired mileage is calculated. If the deviation rate is within a preset range, the manually reported mileage is used as the mileage of the transportation task.
[0199] In one embodiment of the present application, based on the above solution, when the determination unit 704 uses one of the acquired mileages as the driving mileage of the transportation task, it is specifically used to:
[0200] Determine whether the number of mileage obtained is greater than 2;
[0201] If it is greater than 2, when the deviation rate between the experience mileage and the GPS mileage is within the preset range, the experience mileage is used as the mileage of the transportation task; when the deviation rate between the experience mileage and the GPS mileage is not within the preset range, if the deviation rate between the GPS mileage and the GIS mileage is within the preset range, the GPS mileage is used as the mileage of the transportation task; otherwise, the GIS mileage is used as the mileage of the transportation task;
[0202] If it is greater than 2, when the acquired mileage includes experience mileage, if the deviation rate between the experience mileage and another mileage is within the preset range, the experience mileage is used as the driving mileage of the transportation task; if the deviation rate between the experience mileage and another mileage is not within the preset range, the other mileage is used as the driving mileage of the transportation task; when the acquired mileage does not include experience mileage, if the deviation rate between the GPS mileage and the GIS mileage is within the preset range, the GPS mileage is used as the driving mileage of the transportation task; otherwise, the GIS mileage is used as the driving mileage of the transportation task.
[0203] An embodiment of the present application further provides a storage medium storing an instruction set, wherein when the instruction set is executed, the method for obtaining mileage disclosed in any of the above embodiments is executed.
[0204] The present application also provides an electronic device, whose structural diagram is as follows: Figure 8 As shown, it specifically includes a memory 801 for storing at least one set of instruction sets; a processor 802 for executing the instruction set stored in the memory, and implementing the mileage acquisition method disclosed in any of the above embodiments by executing the instruction set.
[0205] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
[0206] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope disclosed in the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.
[0207] The above description is only a preferred embodiment disclosed in this application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the disclosure of this application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the disclosure of this application (but not limited to) to form a technical solution.
Claims
1. A method for obtaining mileage, characterized in that: include: Collect transportation data for transportation tasks; Calculate the experience mileage of the transport task based on the transport data and the mileage of historical transport tasks; Obtaining the GIS mileage and GPS mileage of the transport task; wherein the GIS mileage is the navigation mileage of the transport task, and the GPS mileage is obtained by correcting the position information fed back by the GPS device of the target vehicle during the execution of the transport task, and the target vehicle is the vehicle that executes the transport task; The mileage of the transportation task is obtained according to the empirical mileage, the GIS mileage and the GPS mileage.
2. The method according to claim 1, characterized in that The calculating the experience mileage of the transport task based on the transport data and the mileage of historical transport tasks includes: Based on the transportation data, selecting historical transportation tasks that match the transportation data from historical transportation tasks; Generate a normal distribution curve based on the mileage of the selected historical transportation tasks; Determining a confidence interval of the normal distribution curve based on a preset confidence level; Based on the driving mileage belonging to the confidence interval, the empirical mileage of the transport task is calculated.
3. The method according to claim 1, characterized in that The obtaining of the GPS mileage of the transportation task includes: Calling the Internet of Things interface to obtain the location information fed back in real time by the GPS device of the target vehicle during the process of the target vehicle performing the transportation task; Perform data preprocessing on each location information; Performing trajectory fitting on the position information after data preprocessing to obtain the driving trajectory of the target vehicle; Based on the driving track of the target vehicle, the GPS mileage of the transportation task is obtained.
4. The method according to claim 1, characterized in that: The obtaining of the GIS mileage of the transportation task includes: Based on the transportation data, calling a third-party interface to obtain the navigation mileage of the transportation task; The navigation mileage is determined as the GIS mileage of the transportation task.
5. The method according to claim 1, characterized in that The step of obtaining the driving mileage of the transportation task according to the empirical mileage, the GIS mileage and the GPS mileage includes: Determining whether any one of the experience mileage, the GIS mileage, and the GPS mileage has not been obtained; If any one of the experience mileage, the GIS mileage and the GPS mileage is not obtained, the manually reported mileage input is received, and the manually reported mileage is reviewed by the review system. If the manually reported mileage passes the review, the manually reported mileage is used as the mileage of the transportation task; If any one of the experience mileage, the GIS mileage and the GPS mileage is obtained, it is determined whether the number of the obtained mileage is greater than 1. If it is not greater than 1, the obtained mileage or the input manually reported mileage is used as the driving mileage of the transportation task; If it is not greater than 1, one of the acquired mileages is used as the mileage of the transportation task.
6. The method according to claim 5, characterized in that The step of using the acquired mileage or the input manually reported mileage as the driving mileage of the transportation task includes: In the case where no manually reported mileage is received, the acquired mileage is used as the mileage of the transport task; When the manually reported mileage is received, the deviation rate between the manually reported mileage and the acquired mileage is calculated. If the deviation rate is within a preset range, the manually reported mileage is used as the mileage of the transportation task.
7. The method according to claim 5, characterized in that The using one of the acquired mileages as the driving mileage of the transportation task includes: Determine whether the number of mileage obtained is greater than 2; If it is greater than 2, when the deviation rate between the experience mileage and the GPS mileage is within the preset range, the experience mileage is used as the mileage of the transportation task; when the deviation rate between the experience mileage and the GPS mileage is not within the preset range, if the deviation rate between the GPS mileage and the GIS mileage is within the preset range, the GPS mileage is used as the mileage of the transportation task; otherwise, the GIS mileage is used as the mileage of the transportation task; If it is greater than 2, when the acquired mileage includes experience mileage, if the deviation rate between the experience mileage and another mileage is within the preset range, the experience mileage is used as the driving mileage of the transportation task; if the deviation rate between the experience mileage and another mileage is not within the preset range, the other mileage is used as the driving mileage of the transportation task; when the acquired mileage does not include experience mileage, if the deviation rate between the GPS mileage and the GIS mileage is within the preset range, the GPS mileage is used as the driving mileage of the transportation task; otherwise, the GIS mileage is used as the driving mileage of the transportation task.
8. A device for obtaining mileage, characterized in that: include: A collection unit, used for collecting transportation data of transportation tasks; A calculation unit, used for calculating the experience mileage of the transport task based on the transport data and the mileage of historical transport tasks; An acquisition unit, used for acquiring the GIS mileage and GPS mileage of the transport task; wherein the GIS mileage is the navigation mileage of the transport task, and the GPS mileage is obtained by correcting the position information fed back by the GPS device of the target vehicle during the execution of the transport task, and the target vehicle is the vehicle that executes the transport task; The determination unit obtains the mileage of the transportation task according to the empirical mileage, the GIS mileage and the GPS mileage.
9. A storage medium, characterized in that: The storage medium stores an instruction set, wherein the instruction set, when executed by the processor, implements the mileage acquisition method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: A memory for storing at least one set of instructions; A processor is used to execute an instruction set stored in the memory, and implement the mileage acquisition method according to any one of claims 1 to 7 by executing the instruction set.