A road inspection effective inspection mileage calculation method
By dividing the road inspection route into straight sections and using the movement coordinates of the inspection personnel to calculate the effective inspection mileage, the problem of inaccurate inspection mileage calculation in the existing technology is solved, and the accuracy and reliability of inspection supervision are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- JIANGSU ZHONGSHI ELECTRONIC TECH CO LTD
- Filing Date
- 2024-02-28
- Publication Date
- 2026-05-19
AI Technical Summary
Existing technologies cannot accurately determine whether inspection personnel have moved along the road section when calculating road inspection mileage, resulting in a loophole in supervision and inaccurate performance accounting.
The route to be inspected is divided into straight sections, and the movement coordinates of the inspection personnel are obtained. By calculating the effective inspection mileage and overall completion rate of the straight sections, the accurate supervision of the movement of the inspection personnel along the route is ensured.
This improves the accuracy of inspection mileage calculation and the reliability of supervision, ensuring the accuracy of performance evaluation for inspection personnel.
Smart Images

Figure CN118097811B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a road inspection and supervision method, and more particularly to a method for calculating the effective inspection mileage of road inspections. Background Technology
[0002] Currently, a new application scenario has emerged in road inspection and maintenance operations: inspectors use vehicles, such as pickup trucks and electric bicycles, for inspection and maintenance. However, this type of inspection raises the question of how to calculate the effective inspection mileage to assess the performance of the inspectors.
[0003] The existing calculation method is to use road segment A i B j Divide the road into 20 equal parts, that is, in segment A i B j Add 19 new points, then calculate the movement point C of the inspection personnel. i With 21 points (19 points plus road segment A) i B j The distance between the two endpoints is set, and a distance threshold is set, for example, 50 meters. If the distance value of any point among these 21 distance values is less than 50 meters, then the moving point C of the inspector is determined to be the moving point. i In section A i B j The above indicates that the inspector is along section A of the road. i B j The movement of personnel can be considered part of the inspector's performance. However, this calculation method is rather crude. As long as the inspector has reached the section of road, it is considered a valid inspection. It does not constrain whether the inspector actually moves along the road, which creates a significant loophole in supervision. Summary of the Invention
[0004] The purpose of this invention is to provide a method for calculating the effective inspection mileage of road patrols, which can accurately monitor whether patrol personnel are moving along the road section and ensure the reliability of road patrol supervision.
[0005] Technical solution: The method for calculating the effective inspection mileage of road patrols according to the present invention includes the following steps:
[0006] Step 1: Divide the route to be inspected into several straight sections A. i B i Then obtain each straight road segment A. i B i GIS data, straight road segment A i B i The GIS data includes road segment width Q i Starting point coordinates A i and the endpoint coordinates Bi ;
[0007] Step 2: Obtain the movement coordinates C uploaded by the inspection personnel's terminal. j Then, based on each movement coordinate C j Calculate the route taken by the inspection personnel along the current straight road segment A. i B i Effective inspection mileage (M) i ;
[0008] Step 3, based on each straight road segment A i B i Effective inspection mileage (M) i Calculate the overall completion rate of the inspection personnel for the lines to be inspected.
[0009] Furthermore, in step 1, the route to be inspected is divided into several straight sections A. i B i The specific steps are as follows:
[0010] Step 1.1: Select several points to be determined along the centerline of the route to be inspected;
[0011] Step 1.2: Connect each adjacent point to be determined in sequence to form each line segment to be determined;
[0012] Step 1.3: According to the extension direction of the line to be inspected, each adjacent undetermined straight segment is collinear. If two adjacent undetermined straight segments are on the same straight line, proceed to step 1.4; otherwise, proceed to step 1.5.
[0013] Step 1.4: Merge two adjacent undetermined line segments on the same straight line into one undetermined line segment. Then determine whether there are any undetermined line segments that have not been collinearized. If there are any undetermined line segments that have not been collinearized, return to step 1.3; otherwise, proceed to step 1.6.
[0014] Step 1.5: Take the first of the two undetermined straight segments that are not on the same straight line as the straight line segment after cutting, and continue to participate in the collinearity determination of the second undetermined straight segment. Then determine whether there are any undetermined straight segments that have not been collinearly determined. If there are any undetermined straight segments that have not been collinearly determined, return to step 1.3; otherwise, proceed to step 1.6.
[0015] Step 1.6: Take the last undetermined straight segment on the route to be inspected as the last straight segment, and sequentially number each obtained straight segment to obtain each straight segment A. i B i .
[0016] Furthermore, in step 1.3, the specific steps for determining the collinearity of each adjacent undetermined straight line segment are as follows:
[0017] First, calculate the included angle α between each adjacent line segment to be determined.
[0018] Next, the included angle α is judged. If the included angle α is within the included angle threshold range, it is determined that the two adjacent undetermined line segments are on the same straight line; otherwise, it is determined that the two adjacent undetermined line segments are not on the same straight line.
[0019] Furthermore, in step 2, based on each movement coordinate C j Calculate the route taken by the inspection personnel along the current straight road segment A. i B i The specific steps for achieving the effective inspection mileage are as follows:
[0020] Step 201: Read each movement coordinate C one by one according to the acquisition time sequence. j If all coordinates C are moved j If all data has been read, proceed to step 207; otherwise, proceed to step 202.
[0021] Step 202: Select a straight section A in sequence according to the extension direction of the route to be inspected. i B i Then calculate the current movement coordinates C. j With the selected straight road segment A i B i The starting coordinates A i and the endpoint coordinates B i The endpoint distance is then determined, and it is determined whether the distance between the two endpoints is less than the distance threshold. If the distance between the two endpoints is less than the distance threshold, then proceed to step 203; otherwise, proceed to step 205.
[0022] Step 203, calculate the current movement coordinates C j With the selected straight road segment A i B i The starting coordinates A i and the coordinates of the endpoint B i The enclosed area of the triangle is then determined, and it is determined whether the enclosed area of the triangle is less than the area threshold. If the enclosed area of the triangle is less than the area threshold, proceed to step 204; otherwise, proceed to step 205.
[0023] Step 204, calculate the current movement coordinates C j With the selected straight road segment A i B i The starting coordinates A i and the coordinates of the endpoint B i ∠B in the triangle formed i Ai C j and ∠A i B i C j The size of ∠B i A i C j and ∠A i B i C j If all angles are less than or equal to 90°, proceed to step 206; otherwise, proceed to step 205.
[0024] Step 205: Determine whether there is still a straight section A based on the segmentation of the route to be inspected. i B i Endpoint distance calculation was not performed; if there is still a straight road segment A... i B i If the endpoint distance has not been calculated, return to step 202; otherwise, determine the current movement coordinates C. j If the inspection point is invalid, return to step 201.
[0025] Step 206, determine the current movement coordinates C j For straight road segment A i B i The effective inspection point, and the current movement coordinate C j Store the points in the valid point set E, then return to step 201;
[0026] Step 207, based on the movement coordinates C in the set of valid points E j The number is used to determine the movement coordinates C. j If the validity period is consecutive, proceed to step 208; otherwise, proceed to step 209.
[0027] Step 208: Calculate the maximum distance L between any two coordinate points in the set of valid points E. Max Then calculate L Max With straight road segment A i B i Length L i If the ratio S is within a preset range, then the valid inspection mileage M is determined. i For straight road segment A i B i Length L i Otherwise, the valid inspection mileage M is determined. i For the maximum distance L Max ;
[0028] Step 209, change the straight road segment A i B i Divide into n small segments, where n is of size n. Given integers within a certain range, generate n-1 dividing points {p1, p2, p3, ... p... n-1 Then, calculate the movement coordinates C of each point in the effective point set E. j The temporary distance to n-1 dividing points, if there exists a certain moving coordinate C j to a certain split point p x The distance is less than or equal to Then the dividing point p x effective value w x Set to 1, and count the straight road segment A. i B i above each effective value w x The total value is W, and finally the effective inspection mileage M is calculated. i for
[0029] Furthermore, in step 202, the distance threshold is set to 3-5 km.
[0030] Furthermore, in step 203, the area threshold is set to 0.5*[0.5*Q]. i ]*L i .
[0031] Furthermore, in step 208, the ratio range is set to 0.90 to 1.2.
[0032] Furthermore, in step 3, the specific steps for calculating the overall completion rate of the inspection personnel for the line to be inspected are as follows:
[0033] Step 3.1, obtain each straight road segment A i B i Effective inspection mileage M i Then, for all valid inspection mileage M i Summing the results yields the total effective mileage M of the route to be inspected for the inspection personnel. 有效 ;
[0034] Step 3.2: Obtain the actual total length G of the route to be inspected, and then calculate the overall completion rate.
[0035] Compared with the prior art, the beneficial effects of this invention are: by dividing the line to be inspected into segments A, the line is divided into straight sections. i B i Therefore, for each straight road segment A i B i Effective inspection mileage M i The calculation can enhance the accuracy of effective mileage calculation; by utilizing each moving coordinate C j To calculate the distance the inspection personnel travel along the current straight road segment A i Bi Inspection, thereby further ensuring effective inspection mileage M i This improves the accuracy of calculations and enhances the reliability of road inspection and supervision. Attached Figure Description
[0036] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation
[0037] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings, but the scope of protection of the present invention is not limited to the embodiments described.
[0038] Example 1:
[0039] like Figure 1 As shown, the method for calculating the effective inspection mileage of road patrol disclosed in this invention includes the following steps:
[0040] Step 1: Divide the route to be inspected into several straight sections A. i B i Then obtain each straight road segment A. i B i GIS data, straight road segment A i B i The GIS data includes road segment width Q i Starting point coordinates A i and the endpoint coordinates B i ;
[0041] Step 2: Obtain the movement coordinates C uploaded by the inspection personnel's terminal. j Then, based on each movement coordinate C j Calculate the route taken by the inspection personnel along the current straight road segment A. i B i Effective inspection mileage (M) i ;
[0042] Step 3, based on each straight road segment A i B i Effective inspection mileage (M) i Calculate the overall completion rate of the inspection personnel for the lines to be inspected.
[0043] By dividing the line to be inspected into sections A, i B i Therefore, for each straight road segment A i B i Effective inspection mileage M i The calculation can enhance the accuracy of effective mileage calculation; by utilizing each moving coordinate C j To calculate the distance the inspection personnel travel along the current straight road segment A i Bi Inspection, thereby further ensuring effective inspection mileage M i The calculation accuracy enhances the reliability of road inspection and supervision; by calculating the overall completion rate of the route to be inspected, the inspection mileage of the route to be inspected can be reflected, which makes it easier to calculate the performance of the inspection personnel.
[0044] Furthermore, in step 1, the route to be inspected is divided into several straight sections A. i B i The specific steps are as follows:
[0045] Step 1.1: Select several points to be determined along the centerline of the route to be inspected;
[0046] Step 1.2: Connect each adjacent point to be determined in sequence to form each line segment to be determined;
[0047] Step 1.3: According to the extension direction of the line to be inspected, each adjacent undetermined straight segment is collinear. If two adjacent undetermined straight segments are on the same straight line, proceed to step 1.4; otherwise, proceed to step 1.5.
[0048] Step 1.4: Merge two adjacent undetermined line segments on the same straight line into one undetermined line segment. Then determine whether there are any undetermined line segments that have not been collinearized. If there are any undetermined line segments that have not been collinearized, return to step 1.3; otherwise, proceed to step 1.6.
[0049] Step 1.5: Take the first of the two undetermined straight segments that are not on the same straight line as the straight line segment after cutting, and continue to participate in the collinearity determination of the second undetermined straight segment. Then determine whether there are any undetermined straight segments that have not been collinearly determined. If there are any undetermined straight segments that have not been collinearly determined, return to step 1.3; otherwise, proceed to step 1.6.
[0050] Step 1.6: Take the last undetermined straight segment on the route to be inspected as the last straight segment, and sequentially number each obtained straight segment to obtain each straight segment A. i B i .
[0051] By determining the collinearity of each undetermined straight segment, the collinearity of each segment A can be ensured. i B i The lines are all nearly straight, which avoids the failure of subsequent effective inspection point calculation methods when the road section bends, and ensures the reliable implementation of subsequent plans.
[0052] Furthermore, in step 1.3, the specific steps for determining the collinearity of each adjacent undetermined straight line segment are as follows:
[0053] First, calculate the included angle α between each adjacent line segment to be determined.
[0054] Next, the included angle α is judged. If the included angle α is within the included angle threshold range, which can be set to 0 to 15°, preferably 10°, then it is determined that the two adjacent undetermined line segments are on the same straight line. Otherwise, it is determined that the two adjacent undetermined line segments are not on the same straight line.
[0055] Furthermore, in step 2, based on each movement coordinate C j Calculate the route taken by the inspection personnel along the current straight road segment A. i B i The specific steps for achieving the effective inspection mileage are as follows:
[0056] Step 201: Read each movement coordinate C one by one according to the acquisition time sequence. j This allows us to traverse all the movement coordinates C. j To ensure the overall reliability of the calculation, if all coordinates C are moved... j If all data has been read, proceed to step 207; otherwise, proceed to step 202.
[0057] Step 202: Select a straight section A in sequence according to the extension direction of the route to be inspected. i B i Then calculate the current movement coordinates C. j With the selected straight road segment A i B i The starting coordinates A i and the endpoint coordinates B i The endpoint distance is then determined, and it is further determined whether the distance between the two endpoints is less than a distance threshold, thereby allowing the movement of coordinate C. j Only with the closest straight road segment A i B i Perform validity calculations to effectively save computing power and improve computing efficiency. If the distance between the two endpoints is less than the distance threshold, proceed to step 203; otherwise, it indicates that the inspection range has been exceeded and no further calculation is required, proceed to step 205.
[0058] Step 203, calculate the current movement coordinates C j With the selected straight road segment A i B i The starting coordinates A i and the coordinates of the endpoint B i The area enclosed by the triangle is then determined, and it is further judged whether the area enclosed by the triangle is less than the area threshold, thereby determining the moving coordinate C. j Is it close to the selected straight road segment A? i B iIf the enclosed area of the triangle is less than the area threshold, it indicates that the path is close to a straight road segment A. i B i Proceed to step 204; otherwise, it indicates that the road is still far from the straight section A. i B i Proceed to step 205;
[0059] Step 204, calculate the current movement coordinates C j With the selected straight road segment A i B i The starting coordinates A i and the coordinates of the endpoint B i ∠B in the triangle formed i A i C j and ∠A i B i C j The size of indicates the translation coordinate C. j Is it located on the selected straight road segment A? i B i Within the interval, if ∠B i A i C j and ∠A i B i C j If all angles are less than or equal to 90°, it indicates that the coordinate C has been moved. j Located on the selected straight road segment A i B i If the coordinates are within the specified range, proceed to step 206; otherwise, it indicates that the coordinates C have been moved. j Located on the selected straight road segment A i B i If the range is outside the specified range, proceed to step 205;
[0060] Step 205: Determine whether there is still a straight section A based on the segmentation of the route to be inspected. i B i Endpoint distance calculation was not performed; if there is still a straight road segment A... i B i If the endpoint distance has not been calculated, return to step 202; otherwise, determine the current movement coordinates C. j If the inspection point is invalid, return to step 201.
[0061] Step 206, determine the current movement coordinates C j For straight road segment A i B i The effective inspection point, and the current movement coordinate C j Store the points in the valid point set E, then return to step 201;
[0062] Step 207, based on the movement coordinates C in the set of valid points E j The number is used to determine the movement coordinates C. j If the validity period is consecutive, proceed to step 208; otherwise, proceed to step 209.
[0063] Step 208: Calculate the maximum distance L between any two coordinate points in the set of valid points E. Max Then calculate L Max With straight road segment A i B i Length L i The ratio S is used to quickly determine the various movement coordinates C. j Is it along straight road segment A? i B i If the ratio S is within a preset range during continuous movement, it indicates that the movement is along a straight road segment A. i B i For continuously moving vehicles, the effective inspection mileage M is determined. i For straight road segment A i B i Length L i Otherwise, it indicates that the road was not along a straight segment A. i B i Continuous movement determines the effective inspection mileage M. i For the maximum distance L Max ;
[0064] Step 209, change the straight road segment A i B i Divide into n small segments, where n is of size n. Given integers within a certain range, generate n-1 dividing points {p1, p2, p3, ... p... n-1 Then, calculate the movement coordinates C of each point in the effective point set E. j The temporary distance to n-1 dividing points, if there exists a certain moving coordinate C j to a certain split point p x The distance is less than or equal to Then the dividing point p x effective value w x Set to 1, and count the straight road segment A. i B i above each effective value w x The total value is W, and finally the effective inspection mileage M is calculated. i for
[0065] Furthermore, in step 202, the distance threshold is set to 3-5 km, preferably 5 km.
[0066] Furthermore, in step 203, the area threshold is set to 0.5*[0.5*Q]. i ]*L i .
[0067] Furthermore, in step 208, the ratio range is set to 0.90 to 1.2, preferably 0.95.
[0068] Furthermore, in step 3, the specific steps for calculating the overall completion rate of the inspection personnel for the line to be inspected are as follows:
[0069] Step 3.1, obtain each straight road segment A i B i Effective inspection mileage M i Then, for all valid inspection mileage M i Summing the results yields the total effective mileage M of the route to be inspected for the inspection personnel. 有效 ;
[0070] Step 3.2: Obtain the actual total length G of the route to be inspected, and then calculate the overall completion rate.
[0071] As described above, although the invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the invention itself. Various changes in form and detail may be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims
1. A method for calculating the effective inspection mileage of road patrols, characterized in that, Includes the following steps: Step 1: Divide the route to be inspected into several straight sections A. i B i Then obtain each straight road segment A. i B i GIS data, straight road segment A i B i The GIS data includes road segment width Q i Starting point coordinates A i and the endpoint coordinates B i ; Step 2: Obtain the movement coordinates C uploaded by the inspection personnel's terminal. j Then, based on each movement coordinate C j Calculate the route taken by the inspection personnel along the current straight road segment A. i B i Effective inspection mileage (M) i ; Step 3, based on each straight road segment A i B i Effective inspection mileage (M) i Calculate the overall completion rate of the inspection personnel for the lines to be inspected; In step 1, the route to be inspected is divided into several straight sections A. i B i The specific steps are as follows: Step 1.1: Select several points to be determined along the centerline of the route to be inspected; Step 1.2: Connect each adjacent point to be determined in sequence to form each line segment to be determined; Step 1.3: According to the extension direction of the line to be inspected, each adjacent undetermined straight segment is collinear. If two adjacent undetermined straight segments are on the same straight line, proceed to step 1.4; otherwise, proceed to step 1.
5. Step 1.4: Merge two adjacent undetermined line segments on the same straight line into one undetermined line segment. Then determine whether there are any undetermined line segments that have not been collinearized. If there are any undetermined line segments that have not been collinearized, return to step 1.3; otherwise, proceed to step 1.
6. Step 1.5: Take the first of the two undetermined straight segments that are not on the same straight line as the straight line segment after cutting, and continue to participate in the collinearity determination of the second undetermined straight segment. Then determine whether there are any undetermined straight segments that have not been collinearly determined. If there are any undetermined straight segments that have not been collinearly determined, return to step 1.3; otherwise, proceed to step 1.
6. Step 1.6: Take the last undetermined straight segment on the route to be inspected as the last straight segment, and sequentially number each obtained straight segment to obtain each straight segment A. i B i .
2. The method for calculating the effective inspection mileage of road patrols according to claim 1, characterized in that, In step 1.3, the specific steps for determining the collinearity of each adjacent undetermined straight line segment are as follows: First, calculate the included angle α between each adjacent line segment to be determined. Next, the included angle α is judged. If the included angle α is within the included angle threshold range, it is determined that the two adjacent undetermined line segments are on the same straight line; otherwise, it is determined that the two adjacent undetermined line segments are not on the same straight line.
3. The method for calculating the effective inspection mileage of road patrols according to claim 1, characterized in that, In step 2, based on each movement coordinate C j Calculate the route taken by the inspection personnel along the current straight road segment A. i B i The specific steps for achieving an effective inspection mileage are as follows: Step 201: Read each movement coordinate C one by one according to the acquisition time sequence. j If all coordinates C are moved j If all data has been read, proceed to step 207; otherwise, proceed to step 202. Step 202: Select a straight section A in sequence according to the extension direction of the route to be inspected. i B i Then calculate the current movement coordinates C. j With the selected straight road segment A i B i The starting coordinates A i and the endpoint coordinates B i The endpoint distance is then determined, and it is determined whether the distance between the two endpoints is less than the distance threshold. If the distance between the two endpoints is less than the distance threshold, then proceed to step 203; otherwise, proceed to step 205. Step 203, calculate the current movement coordinates C j With the selected straight road segment A i B i The starting coordinates A i and the coordinates of the endpoint B i The enclosed area of the triangle is then determined, and it is determined whether the enclosed area of the triangle is less than the area threshold. If the enclosed area of the triangle is less than the area threshold, proceed to step 204; otherwise, proceed to step 205. Step 204, calculate the current movement coordinates C j With the selected straight road segment A i B i The starting coordinates A i and the coordinates of the endpoint B i ∠B in the triangle formed i A i C j and ∠A i B i C j The size of ∠B i A i C j and ∠A i B i C j If all angles are less than or equal to 90°, proceed to step 206; otherwise, proceed to step 205. Step 205: Determine whether there is still a straight section A based on the segmentation of the route to be inspected. i B i Endpoint distance calculation was not performed; if there is still a straight road segment A... i B i If the endpoint distance has not been calculated, return to step 202; otherwise, determine the current movement coordinates C. j If the inspection point is invalid, return to step 201. Step 206, determine the current movement coordinates C j For straight road segment A i B i The effective inspection point, and the current movement coordinate C j Store the points in the valid point set E, then return to step 201; Step 207, based on the movement coordinates C in the set of valid points E j The number determines the movement coordinates C. j If the validity period is consecutive, proceed to step 208; otherwise, proceed to step 209. Step 208: Calculate the maximum distance L between any two coordinate points in the set of valid points E. Max Then calculate L Max With straight road segment A i B i Length L i If the ratio S is within a preset range, then the valid inspection mileage M is determined. i For straight road segment A i B i Length L i Otherwise, the valid inspection mileage M is determined. i For the maximum distance L Max ; Step 209, change the straight road segment A i B i Divide into n small segments, where n is of size n. Given integers within a certain range, generate n-1 dividing points {p1, p2, p3, ... p... n-1 Then, calculate the movement coordinates C of each point in the effective point set E. j The temporary distance to n-1 dividing points, if there exists a certain moving coordinate C j to a certain split point p x The distance is less than or equal to Then the dividing point p x effective value w x Set to 1, and count the straight road segment A. i B i above each effective value w x The total value is W, and finally the effective inspection mileage M is calculated. i for .
4. The method for calculating the effective inspection mileage of road patrols according to claim 3, characterized in that, In step 202, the distance threshold is set to 3~5km.
5. The method for calculating the effective inspection mileage of road patrols according to claim 3, characterized in that, In step 203, the area threshold is set to 0.5 × [0.5 × Q]. i ]×L i .
6. The method for calculating the effective inspection mileage of road patrols according to claim 3, characterized in that, In step 208, the ratio range is set to 0.90~1.
2.
7. The method for calculating the effective inspection mileage of road patrols according to claim 1, characterized in that, In step 3, the specific steps for calculating the overall completion rate of the inspection personnel for the line to be inspected are as follows: Step 3.1, obtain each straight road segment A i B i Effective inspection mileage M i Then, for all valid inspection mileage M i Summing the results yields the total effective mileage M of the route to be inspected by the inspection personnel. 有效 ; Step 3.2: Obtain the actual total length G of the route to be inspected, and then calculate the overall completion rate. .