A method and device for limiting the search area along the route in route planning

By combining rectangular and elliptical limited search area algorithms and using historical route data to filter route directions, the problem of low efficiency in route planning in the existing technology is solved and a faster route planning process is achieved.

CN118230605BActive Publication Date: 2024-08-23CHINA SOUTHERN AIRLINES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410259939.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2024-08-23
Estimated Expiration
2044-03-07

AI Technical Summary

Technical Problem

When existing route planning algorithms deal with long routes, the search area after trimming is still large, resulting in long solution times, and the route direction characteristics are ignored, resulting in low efficiency.

Method used

The rectangular restricted search area algorithm and the elliptical restricted search area algorithm are combined, and the angle between the direction of the target point on the route and the route direction is calculated by obtaining historical route data, excluding routes opposite to the route direction, and reducing the search scale.

Benefits of technology

It significantly reduces the search size, improves the efficiency of route planning, and reduces calculation time. In the specific example, the calculation time for the flight from Guangzhou to Amsterdam is reduced by about 88%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118230605B
    Figure CN118230605B
Patent Text Reader

Abstract

The present invention discloses a method for limiting the search area of ​​a route edge in route planning. The method comprises: obtaining historical flight plan data of preset routes within N years, calculating the angle between the target point direction azimuth and the route direction azimuth of each route edge in the historical flight plan data, and obtaining a historical angle set; performing statistical analysis on the historical angle set to obtain an angle filtering range; when a candidate route edge is not within a preset restricted search area, removing the candidate route edge from the optional route edge set; wherein the optional route edge set is a set of all optional route edges of a newly planned flight; calculating the angle between the target point direction azimuth and the route direction azimuth of each candidate route edge after removal; when the angle is not within the angle filtering range, selecting the candidate route edge corresponding to the angle into the target search set. The present invention provides a reasonable route edge search area limiting method, which reduces the search scale and improves the efficiency of route planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of civil aircraft route planning, and in particular to a method, device, equipment and storage medium for limiting a route side search area in route planning. Background Art

[0002] Civil aviation route planning technology is one of the core technologies of the flight planning system. It needs to comprehensively consider flight distance, time, cost, weather, air traffic flow, aircraft performance, payload, airport airworthiness, and various complex operating restrictions and regulations of the authorities and airlines, and plan an optimal route for each flight to ensure that the flight can arrive at the destination safely and on time, while saving costs as much as possible and increasing operational efficiency. However, the global aviation network is very large, and the various constraints are numerous and complex. It has been proven that this is an NP problem (non-deterministic problem of polynomial complexity), which means that it takes a long time to solve. How to improve the planning algorithm and speed up the solution process is a crucial issue.

[0003] At present, the improvement strategies of path planning algorithms can be divided into two categories: optimization algorithm itself and control of road network scale. Among them, the strategy of controlling road network scale has broad application prospects and can be used in combination with any path planning method. Common algorithms for controlling road network scale include rectangular restricted search area algorithm, elliptical restricted search area algorithm, dynamic restricted search area algorithm, etc. However, these algorithms only perform clipping based on distance. For long routes, the clipped area is still large, the solution time is still long, and the directional characteristics of path planning are ignored. In actual aviation road networks, the route direction is usually bidirectional, but when performing shortest path planning, the starting point and the target point have been determined, and the reverse route is basically not selected. Summary of the invention

[0004] In order to solve the above technical problems, a method for limiting the search area along the route in route planning is provided. By combining the rectangular restricted search area algorithm and the elliptical restricted search area algorithm, and then considering the route direction, the routes opposite to the route direction are excluded, the search scale is reduced, and the efficiency of route planning is improved.

[0005] In a first aspect, an embodiment of the present invention provides a method for limiting a route side search area in route planning, comprising:

[0006] Obtain historical flight plan data of preset routes within N years, calculate the angle between the target point direction azimuth and the route direction azimuth of each route side in the historical flight plan data, and obtain a historical angle set;

[0007] Performing statistical analysis on the historical angle set to obtain an angle filtering range;

[0008] When the route edge to be selected is not within the preset restricted search area, the route edge to be selected is removed from the set of optional route edges; wherein the set of optional route edges is a set consisting of all optional route edges of the newly planned flight;

[0009] Calculate the angle between the target point direction azimuth and the route direction azimuth of each selected route side after elimination;

[0010] When the angle is not within the angle filtering range, the candidate route edge corresponding to the angle is selected into the target search set.

[0011] Furthermore, after obtaining the historical flight plan data of the preset routes within the past N years, the method further includes:

[0012] The historical flight plan data is cleaned to remove flights whose departure airport and landing airport are the same.

[0013] Furthermore, the preset restricted search area includes a rectangular restricted search area and an elliptical restricted search area. The elliptical restricted search area is an area defined by an elliptical shape drawn with the starting point and target point of the newly planned flight as the focus and the great circle distance of the route multiplied by a specific coefficient as the major axis. The rectangular restricted search area is the circumscribed rectangle of the elliptical restricted search area.

[0014] Furthermore, when the route side to be selected is not within the preset restricted search area, the route side to be selected is removed from the set of optional route sides, including:

[0015] When the candidate route edge is not within the preset rectangular restricted search area, the candidate route edge is eliminated, and all the remaining route edges after elimination are recorded as the first route edge set;

[0016] When the candidate route edges in the first route edge set are not within the preset elliptical restricted search area, the candidate route edges are eliminated, and the remaining route edges after the elimination are recorded as the second route edge set.

[0017] Furthermore, the calculation of the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth includes:

[0018] Calculate the azimuth between the starting point and the end point of each wayside in the second wayside set as the direction azimuth of the target point;

[0019] Calculate the azimuth between each wayside start point and the corresponding wayside end point in the second wayside set as the route direction azimuth;

[0020] Calculate the angle between the target point direction azimuth and the route direction azimuth.

[0021] Furthermore, the calculation of the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth also includes:

[0022] Calculate the azimuth angle θ1 of the target point. The specific formula is as follows:

[0023] Δγ1=γ2-Y1;

[0024] θ1=atan2(sinΔγ1·cosφ2, cosφ1·sinφ2-sinφ1·cosφ2·cosΔγ1);

[0025] Calculate the route direction azimuth θ2, the specific formula is as follows:

[0026] Δγ2=Y3-γ1;

[0027] θ2=atan2(sinΔγ2·cosφ3, cosφ1·sinφ3-sinφ1·cos 3·cosΔγ2);

[0028] Calculate the angle α between the target point direction azimuth and the route direction azimuth. The specific formula is as follows:

[0029] α=|θ1-θ2|;

[0030] Among them, γ1 is the longitude of the starting point of the route side, φ1 is the latitude of the starting point of the route side, γ2 is the longitude of the end point of the route, φ2 is the latitude of the end point of the route, γ3 is the longitude of the end point of the route side, φ3 is the latitude of the end point of the route side, Δy1 is the longitude difference between the starting point of the route side and the end point of the route, Δγ2 is the longitude difference between the starting point of the route side and the end point of the route, and atan2 is a mathematical function for calculating the angle.

[0031] Further, when the angle is not within the angle filtering range, selecting the candidate route edge corresponding to the angle into the target search set includes:

[0032] The angle is compared with the angle filtering range, and when the angle is within the angle filtering range, the to-be-selected route edge corresponding to the angle is eliminated;

[0033] When the angle is not within the angle filtering range, the candidate route edge corresponding to the angle is selected into the target search set.

[0034] In a second aspect, an embodiment of the present invention provides a device for limiting a route side search area in route planning, comprising:

[0035] A data acquisition module is used to acquire historical flight plan data of preset routes within N years, calculate the angle between the target point direction azimuth and the route direction azimuth of each route side in the historical flight plan data, and obtain a historical angle set;

[0036] An angle range determination module is used to perform statistical analysis on the historical angle set to obtain an angle filtering range;

[0037] A route edge removal module is used to remove the candidate route edge from the optional route edge set when the candidate route edge is not within the preset restricted search area; wherein the optional route edge set is a set consisting of all optional route edges of the newly planned flight;

[0038] An angle calculation module, used to calculate the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth;

[0039] The route edge selection module is used to select the candidate route edge corresponding to the angle into the target search set when the angle is not within the angle filtering range.

[0040] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0041] Memory for storing computer programs;

[0042] A processor, configured to execute the computer program;

[0043] Wherein, when the processor executes the computer program, the method for limiting the route side search area in route planning as described in any one of the first aspects above is implemented.

[0044] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the method for limiting the route side search area in route planning as described in any one of the first aspects above is implemented.

[0045] Compared with the prior art, the method for limiting the search area of ​​the route edge in route planning provided by the embodiment of the present invention has the following beneficial effects: by obtaining the historical flight plan data of the preset route within the past N years, calculating the angle between the target point direction azimuth and the route direction azimuth of each route edge in the historical flight plan data, and obtaining a historical angle set; performing statistical analysis on the historical angle set to obtain an angle filtering range; when the candidate route edge is not within the preset restricted search area, the candidate route edge is removed from the optional route edge set; calculating the angle between the target point direction azimuth and the route direction azimuth of each candidate route edge after removal; when the angle is not within the angle filtering range, the candidate route edge corresponding to the angle is selected into the target search set. A reasonable route edge search area limiting method is provided, which reduces the search scale and improves the efficiency of route planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical features of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 It is a flow chart of an embodiment of a method for limiting a route side search area in route planning provided by the present invention;

[0048] Figure 2 It is a schematic diagram of historical angle set statistical analysis of a method for limiting the route side search area in route planning provided by the present invention;

[0049] Figure 3 It is a structural schematic diagram of an embodiment of a route side search area restriction device in route planning provided by the present invention;

[0050] Figure 4 It is a structural schematic diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] In a first aspect, an embodiment of the present invention provides a method for limiting a route side search area in route planning, see Figure 1, which is a flow chart of a method for limiting the route side search area in route planning provided by the present invention.

[0053] like Figure 1 As shown, the method comprises the following steps:

[0054] S1: Obtain historical flight plan data of preset routes within N years, calculate the angle between the azimuth of the target point direction of each route side in the historical flight plan data and the azimuth of the route direction, and obtain a historical angle set;

[0055] S2: performing statistical analysis on the historical angle set to obtain an angle filtering range;

[0056] S3: When the route side to be selected is not within the preset restricted search area, the route side to be selected is removed from the set of optional route sides; wherein the set of optional route sides is a set consisting of all optional route sides of the newly planned flight;

[0057] S4: Calculate the angle between the target point direction azimuth of each selected route side after elimination and the route direction azimuth;

[0058] S5: When the angle is not within the angle filtering range, the candidate route side corresponding to the angle is selected into the target search set.

[0059] In a specific implementation, the process of route edge selection specifically depends on the historical flight plan data. First, the historical flight plan data of all flights in the past N years are obtained from the flight database. The angle between the target point direction azimuth and the route direction azimuth of each route edge in the historical flight plan data is calculated to obtain the historical angle set of all route edges. The historical angle set is statistically analyzed to determine the angle filtering range. For example, see Figure 2 As shown in the figure, the horizontal axis represents the smaller value of the distance between the route edge and the starting point and the distance between the route edge and the target point, and the vertical axis represents the angle between the direction of the route edge selected in history and the direction of the target point. According to the statistical analysis results, it is found that the angle between the direction of the route edge selected in history and the direction of the target point is between [0,90] and [270,360]. Therefore, the route edges with an angle range of (90,270) can be filtered.

[0060] A set of all optional route edges of the newly planned flight is taken as candidate route edges, and a rectangular restricted search area algorithm and an elliptical restricted search area algorithm are applied to them. When a candidate route edge is not within the preset rectangular restricted search area and the elliptical restricted search area, the candidate route edge is removed from the set of optional route edges, and the angle between the target point direction azimuth and the route direction azimuth of each candidate route edge after removal is calculated, and it is determined whether the angle is within the angle filtering range obtained by the above analysis. If so, it is filtered out, and if not, the candidate route edge corresponding to the angle is selected into the target search set, and then a path planning algorithm is used to plan the optimal route in the target search set, wherein the path planning algorithm includes but is not limited to Dijkstra, A*, genetic algorithm, etc.

[0061] In summary, the present invention obtains historical flight plan data of preset routes within N years, calculates the angle between the target point direction azimuth and the route direction azimuth of each route edge in the historical flight plan data, and obtains a historical angle set; performs statistical analysis on the historical angle set to obtain an angle filtering range; when a candidate route edge is not within a preset restricted search area, the candidate route edge is removed from the optional route edge set; calculates the angle between the target point direction azimuth and the route direction azimuth of each candidate route edge after removal; when the angle is not within the angle filtering range, the candidate route edge corresponding to the angle is selected into the target search set. A reasonable route edge search area restriction method is provided, which reduces the search scale and improves the efficiency of route planning.

[0062] In an optional implementation manner, after obtaining the historical flight plan data of the preset routes within the past N years, the method further includes:

[0063] The historical flight plan data is cleaned to remove flights whose departure airport and landing airport are the same.

[0064] Specifically, historical flight plan data of a certain route within N years are obtained, and data cleaning is performed on the obtained historical flight plan data to eliminate flights with the same take-off airport and landing airport, reduce abnormal data in the initial historical flight plan data, reduce subsequent calculation workload, and improve the accuracy of route side selection.

[0065] In an optional embodiment, the preset restricted search area includes a rectangular restricted search area and an elliptical restricted search area. The elliptical restricted search area is an area defined by an elliptical shape drawn with the starting point and target point of the newly planned flight as the focus and the route great circle distance multiplied by a specific coefficient as the major axis. The rectangular restricted search area is the circumscribed rectangle of the elliptical restricted search area.

[0066] Specifically, all optional route edges of the newly planned flight are screened, and the rectangular restricted search area algorithm is first applied to roughly circle the search area according to the distance between the starting point and the target point. The key to the rectangular restricted search area algorithm is to solve the boundary coordinates of the rectangle, compare the boundary coordinates with the starting point and end point coordinates of the route edge to be selected, and determine whether the route edge is within the rectangular restricted search area. The route edges that are not in the rectangular restricted search area are eliminated, and then the search area is further narrowed, and the route edges that are not in the elliptical restricted search area are eliminated. The elliptical restricted search area is an area defined by an elliptical shape drawn with the starting point and target point of the newly planned flight as the focus and the route great circle distance multiplied by a certain coefficient as the major axis, and the rectangular restricted search area is the circumscribed rectangle of the elliptical restricted search area.

[0067] In an optional implementation, when the candidate route edge is not within the preset restricted search area, removing the candidate route edge from the set of optional route edges includes:

[0068] When the candidate route edge is not within the preset rectangular restricted search area, the candidate route edge is eliminated, and all the remaining route edges after elimination are recorded as the first route edge set;

[0069] When the candidate route edges in the first route edge set are not within the preset elliptical restricted search area, the candidate route edges are eliminated, and the remaining route edges after the elimination are recorded as the second route edge set.

[0070] Specifically, the rectangular restricted search area algorithm is first applied to the screening of the candidate route edges to roughly circle the search area. When the candidate route edge is not within the preset rectangular restricted search area, the candidate route edge is eliminated, and all the route edges remaining after the elimination are recorded as the first route edge set. Then, the elliptical restricted search area algorithm is applied to all the candidate route edges in the rectangle. When the candidate route edges in the first route edge set are not within the preset elliptical restricted search area, the candidate route edges are eliminated, and the route edges remaining after the elimination are recorded as the second route edge set.

[0071] In an optional implementation, the calculation of the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth includes:

[0072] Calculate the azimuth between the starting point and the end point of each wayside in the second wayside set as the direction azimuth of the target point;

[0073] Calculate the azimuth between each wayside start point and the corresponding wayside end point in the second wayside set as the route direction azimuth;

[0074] Calculate the angle between the target point direction azimuth and the route direction azimuth.

[0075] Specifically, after applying the ellipse-restricted search area algorithm, the search direction needs to be further restricted to exclude routes that are opposite to the route direction. First, the angle between the target point direction azimuth and the route direction azimuth is calculated. The target point direction azimuth is the azimuth between the starting point of each route edge and the end point of the entire route. The route direction azimuth is the azimuth between the starting point of each route edge and the corresponding route edge end point. The angle is the absolute value of the difference between the two azimuths.

[0076] In an optional implementation, the calculation of the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth also includes:

[0077] Calculate the azimuth angle θ1 of the target point. The specific formula is as follows:

[0078] Δγ1=Y2-γ1;

[0079] θ1=atan2(sinΔγ1·cosφ2, cosφ1·sinφ2-sinφ1·cosφ2·cosΔγ1);

[0080] Calculate the route direction azimuth θ2, the specific formula is as follows:

[0081] Δγ2=γ3-γ1;

[0082] θ2=atan2(sinΔγ2·cosφ3, cosφ1·sinφ3-sinφ1·cosφ3·cosΔγ2);

[0083] Calculate the angle α between the target point direction azimuth and the route direction azimuth. The specific formula is as follows:

[0084] α=|θ1-θ2|;

[0085] Among them, γ1 is the longitude of the starting point of the route side, φ1 is the latitude of the starting point of the route side, γ2 is the longitude of the end point of the route, φ2 is the latitude of the end point of the route, γ3 is the longitude of the end point of the route side, φ3 is the latitude of the end point of the route side, Δy1 is the longitude difference between the starting point of the route side and the end point of the route, Δγ2 is the longitude difference between the starting point of the route side and the end point of the route, and atan2 is a mathematical function for calculating the angle.

[0086] Specifically, to calculate the azimuth of the target point, we first need to calculate the longitude difference between the starting point of the route and the end point of the route. The longitude and latitude of the starting point of the route are (γ1, φ1), and the longitude and latitude of the end point of the route are (γ2, φ2). The calculation formula of the longitude difference is as follows:

[0087] Δγ1=γ2-Y1;

[0088] The azimuth angle θ1 of the target point direction between the starting point of the route side and the end point of the route is calculated according to the longitude difference:

[0089] θ1=atan2(sinΔγ1·cosφ2, cosφ1·sinφ2-sinφ1·cosφ2·cosΔγ1);

[0090] To calculate the azimuth of the route direction, you first need to calculate the longitude difference between the starting point of the route side and the corresponding end point of the route side. The longitude and latitude of the starting point of the route side is (γ1, φ1), and the longitude and latitude of the end point of the route side is (γ3, φ3). The calculation formula for the longitude difference is as follows:

[0091] Δγ2=Y3-γ1;

[0092] The azimuth angle θ2 of the target point direction between the starting point of the wayside and the end point of the wayside is calculated according to the longitude difference:

[0093] θ2=atan2(sinΔγ2·cosφ3, cosφ1·sinφ3-sinφ1·cosφ3·cosΔγ2);

[0094] The angle between the target direction azimuth and the route direction azimuth is the absolute value of the difference between θ1 and θ2:

[0095] α=|θ1-θ2|.

[0096] In an optional implementation, when the angle is not within the angle filtering range, selecting the candidate route edge corresponding to the angle into the target search set includes:

[0097] The angle is compared with the angle filtering range, and when the angle is within the angle filtering range, the to-be-selected route edge corresponding to the angle is eliminated;

[0098] When the angle is not within the angle filtering range, the candidate route edge corresponding to the angle is selected into the target search set.

[0099] Specifically, whether to select the route edge is determined based on whether the angle is within a preset angle filtering range, and the angle is compared with the angle filtering range. When the angle is within the preset angle filtering range, the route edge corresponding to the angle is eliminated. When the angle is not within the preset angle filtering range, the candidate route edge corresponding to the angle is selected and added to the target search set. After the target search set is determined, a path planning algorithm is used to plan the optimal route in the target search set, wherein the path planning algorithm includes but is not limited to Dijkstra, A*, genetic algorithm, etc.

[0100] The route side search area restriction method of the present application is combined with the rectangular restricted search area algorithm and the elliptical restricted search area algorithm, which can greatly improve the route planning time and reduce the calculation scale compared with the separate applications. See Table 1 for the route planning results of the flight from Guangzhou to Amsterdam:

[0101] Table 1 Route planning calculation time

[0102]

[0103] It can be seen from Table 1 that the fuel consumption of the paths calculated by the three algorithms is consistent, that is, the results of the three algorithms are reliable. The hybrid restricted area algorithm of the present application reduces the total execution time by about 88% compared with the single application of the rectangular restricted search area algorithm, and reduces the total execution time by about 45% compared with the single application of the elliptical restricted search area algorithm, which greatly shortens the execution time of the algorithm and improves the efficiency of the algorithm.

[0104] In a second aspect, the present invention provides a route side search area restriction device in route planning, see Figure 4 , which is a structural schematic diagram of a route side search area limitation device in route planning provided by the present invention.

[0105] like Figure 4 As shown, the device comprises:

[0106] The data acquisition module 21 is used to acquire historical flight plan data of preset routes within N years, calculate the angle between the target point direction azimuth and the route direction azimuth of each route side in the historical flight plan data, and obtain a historical angle set;

[0107] An angle range determination module 22, used for performing statistical analysis on the historical angle set to obtain an angle filtering range;

[0108] A route edge removal module 23 is used to remove the candidate route edge from the optional route edge set when the candidate route edge is not within the preset restricted search area; wherein the optional route edge set is a set consisting of all optional route edges of the newly planned flight;

[0109] An angle calculation module 24 is used to calculate the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth;

[0110] The route edge selection module 25 is used to select the candidate route edge corresponding to the angle into the target search set when the angle is not within the angle filtering range.

[0111] In an optional implementation manner, after obtaining the historical flight plan data of the preset routes within the past N years, the method further includes:

[0112] The historical flight plan data is cleaned to remove flights whose departure airport and landing airport are the same.

[0113] In an optional embodiment, the preset restricted search area includes a rectangular restricted search area and an elliptical restricted search area. The elliptical restricted search area is an area defined by an elliptical shape drawn with the starting point and target point of the newly planned flight as the focus and the route great circle distance multiplied by a specific coefficient as the major axis. The rectangular restricted search area is the circumscribed rectangle of the elliptical restricted search area.

[0114] In an optional implementation, when the candidate route edge is not within the preset restricted search area, removing the candidate route edge from the set of optional route edges includes:

[0115] When the candidate route edge is not within the preset rectangular restricted search area, the candidate route edge is eliminated, and all the remaining route edges after elimination are recorded as the first route edge set;

[0116] When the candidate route edges in the first route edge set are not within the preset elliptical restricted search area, the candidate route edges are eliminated, and the remaining route edges after the elimination are recorded as the second route edge set.

[0117] In an optional implementation, the calculation of the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth includes:

[0118] Calculate the azimuth between the starting point and the end point of each wayside in the second wayside set as the direction azimuth of the target point;

[0119] Calculate the azimuth between each wayside start point and the corresponding wayside end point in the second wayside set as the route direction azimuth;

[0120] Calculate the angle between the target point direction azimuth and the route direction azimuth.

[0121] In an optional implementation, the calculation of the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth also includes:

[0122] Calculate the azimuth angle θ1 of the target point. The specific formula is as follows:

[0123] Δγ1=Y2-γ1;

[0124] θ1=atan2(sinΔγ1·cosφ2, cosφ1·sinφ2-sinφ1·cosφ2·cosΔγ1);

[0125] Calculate the route direction azimuth θ2, the specific formula is as follows:

[0126] Δγ2=γ3-γ1;

[0127] θ2=atan2(sinΔγ2·cosφ3, cosφ1·sinφ3-sinφ1·cos 3·cosΔγ2);

[0128] Calculate the angle α between the target point direction azimuth and the route direction azimuth. The specific formula is as follows:

[0129] α=|θ1-θ2|;

[0130] Among them, γ1 is the longitude of the starting point of the route side, φ1 is the latitude of the starting point of the route side, γ2 is the longitude of the end point of the route, φ2 is the latitude of the end point of the route, γ3 is the longitude of the end point of the route side, φ3 is the latitude of the end point of the route side, Δy1 is the longitude difference between the starting point of the route side and the end point of the route, Δγ2 is the longitude difference between the starting point of the route side and the end point of the route, and atan2 is a mathematical function for calculating the angle.

[0131] In an optional implementation, when the angle is not within the angle filtering range, selecting the candidate route edge corresponding to the angle into the target search set includes:

[0132] The angle is compared with the angle filtering range, and when the angle is within the angle filtering range, the to-be-selected route edge corresponding to the angle is eliminated;

[0133] When the angle is not within the angle filtering range, the candidate route edge corresponding to the angle is selected into the target search set.

[0134] It should be noted that a device for limiting the route side search area in route planning provided by an embodiment of the present invention can implement all processes of the method for limiting the route side search area in route planning described in any of the above embodiments, and the functions of each module and unit in the device and the technical effects achieved are respectively the same as the functions and technical effects achieved by the method for limiting the route side search area in route planning described in the above embodiments, and will not be repeated here.

[0135] In a third aspect, an embodiment of the present invention provides an electronic device, see Figure 4 , which is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0136] like Figure 4 As shown, the device includes:

[0137] A memory 31, used for storing computer programs;

[0138] A processor 32, configured to execute the computer program;

[0139] When the processor 32 executes the computer program, the method for limiting the route side search area in route planning as described in any of the above embodiments is implemented.

[0140] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 31 and executed by the processor 32 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.

[0141] The processor 32 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0142] The memory 31 can be used to store the computer program and / or module, and the processor 32 realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory 31, and calling the data stored in the memory 31. The memory 31 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 31 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0143] It should be noted that the above electronic device includes, but is not limited to, a processor and a memory. Those skilled in the art can understand that Figure 4 The structural diagram is merely an example of the electronic device described above and does not constitute a limitation on the electronic device, and may include more components than shown in the figure, or a combination of certain components, or different components.

[0144] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the method for limiting the route side search area in route planning described in any of the above embodiments is implemented.

[0145] It should be understood that the present invention implements all or part of the processes in the above-mentioned method for limiting the route side search area in route planning, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of the above-mentioned method for limiting the route side search area in route planning. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0146] The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. It should be pointed out that for those skilled in the art, several equivalent obvious variations and / or equivalent substitutions can be made without departing from the technical principles of the present invention. These obvious variations and / or equivalent substitutions should also be regarded as the protection scope of the present invention.

Claims

1. A method for limiting the route side search area in route planning, characterized in that: include: Obtain historical flight plan data of preset routes within N years, calculate the angle between the target point direction azimuth and the route direction azimuth of each route side in the historical flight plan data, and obtain a historical angle set; Performing statistical analysis on the historical angle set to obtain an angle filtering range; When the candidate route edge is not within the preset restricted search area, the candidate route edge is removed from the optional route edge set; wherein the optional route edge set is a set consisting of all optional route edges of the newly planned flight; Calculate the angle between the target point direction azimuth and the route direction azimuth of each selected route side after elimination; When the angle is not within the angle filtering range, selecting the candidate route side corresponding to the angle into the target search set; The calculation of the angle between the target point direction azimuth of each selected route side after elimination and the route direction azimuth includes: Calculate the azimuth angle θ1 of the target point. The specific formula is as follows: Δγ1=γ2-γ1; θ1=atan2(sinΔγ1·cosφ2, cosφ1·sinφ2-sinφ1·cosφ2·cosΔγ1); Calculate the route direction azimuth θ2, the specific formula is as follows: Δγ2=γ3-γ1; θ2=atan2(sinΔγ2·cosφ3,cosφ1·sinφ3-sinφ1·cosφ3·cosΔγ2); Calculate the angle α between the target point direction azimuth and the route direction azimuth. The specific formula is as follows: α=|θ1-θ2|; Among them, γ1 is the longitude of the starting point of the route side, φ1 is the latitude of the starting point of the route side, γ2 is the longitude of the end point of the route, φ2 is the latitude of the end point of the route, γ3 is the longitude of the end point of the route side, φ3 is the latitude of the end point of the route side, Δγ1 is the longitude difference between the starting point of the route side and the end point of the route, Δγ2 is the longitude difference between the starting point of the route side and the end point of the route, and atan2 is a mathematical function for calculating the angle.

2. The method for limiting the route side search area in route planning according to claim 1, characterized in that: After obtaining the historical flight plan data of the preset routes within the past N years, the method further includes: The historical flight plan data is cleaned to remove flights whose departure airport and landing airport are the same.

3. The method for limiting the route side search area in route planning according to claim 1, characterized in that: The preset restricted search area includes a rectangular restricted search area and an elliptical restricted search area. The elliptical restricted search area is an area defined by an elliptical shape drawn with the starting point and the destination point of the newly planned flight as the focus and the route great circle distance multiplied by a coefficient as the major axis. The rectangular restricted search area is the circumscribed rectangle of the elliptical restricted search area.

4. The method for limiting the route side search area in route planning according to claim 1, characterized in that: When the to-be-selected route edge is not within the preset restricted search area, removing the to-be-selected route edge from the set of selectable route edges includes: When the candidate route edge is not within the preset rectangular restricted search area, the candidate route edge is eliminated, and all the remaining route edges after elimination are recorded as the first route edge set; When the candidate route edges in the first route edge set are not within the preset elliptical restricted search area, the candidate route edges are eliminated, and the remaining route edges after the elimination are recorded as the second route edge set.

5. The method for limiting the route side search area in route planning according to claim 4, characterized in that: The calculation of the angle between the target point direction azimuth of each selected route side after elimination and the route direction azimuth also includes: Calculate the azimuth between the starting point and the end point of each wayside in the second wayside set as the direction azimuth of the target point; Calculate the azimuth between each wayside start point and the corresponding wayside end point in the second wayside set as the route direction azimuth; Calculate the angle between the target point direction azimuth and the route direction azimuth.

6. The method for limiting the route side search area in route planning according to claim 1, characterized in that: When the angle is not within the angle filtering range, selecting the candidate route side corresponding to the angle into the target search set includes: The angle is compared with the angle filtering range, and when the angle is within the angle filtering range, the to-be-selected route edge corresponding to the angle is eliminated; When the angle is not within the angle filtering range, the candidate route edge corresponding to the angle is selected into the target search set.

7. A device for limiting the search area along the route in route planning, characterized in that: include: A data acquisition module is used to acquire historical flight plan data of preset routes within N years, calculate the angle between the azimuth of the target point direction of each route side in the historical flight plan data and the azimuth of the route direction, and obtain a historical angle set; An angle range determination module is used to perform statistical analysis on the historical angle set to obtain an angle filtering range; A route edge removal module is used to remove the candidate route edge from the optional route edge set when the candidate route edge is not within the preset restricted search area; wherein the optional route edge set is a set consisting of all optional route edges of the newly planned flight; An angle calculation module, used to calculate the angle between the target point direction azimuth of each selected route edge after elimination and the route direction azimuth; A route edge selection module, used for selecting a candidate route edge corresponding to the angle into a target search set when the angle is not within the angle filtering range; The calculation of the angle between the target point direction azimuth of each selected route side after elimination and the route direction azimuth includes: Calculate the azimuth angle θ1 of the target point. The specific formula is as follows: Δγ1=γ2-γ1; θ1=atan2(sinΔγ1·cosφ2, cosφ1·sinφ2-sinφ1·cosφ2·cosΔγ1); Calculate the route direction azimuth θ2, the specific formula is as follows: Δγ2=γ3-γ1; θ2=atan2(sinΔγ2·cosφ3,cosφ1·sinφ3-sinφ1·cosφ3·cosΔγ2); Calculate the angle α between the target point direction azimuth and the route direction azimuth. The specific formula is as follows: α=|θ1-θ2|; Among them, γ1 is the longitude of the starting point of the route side, φ1 is the latitude of the starting point of the route side, γ2 is the longitude of the end point of the route, φ2 is the latitude of the end point of the route, γ3 is the longitude of the end point of the route side, φ3 is the latitude of the end point of the route side, Δγ1 is the longitude difference between the starting point of the route side and the end point of the route, Δγ2 is the longitude difference between the starting point of the route side and the end point of the route, and atan2 is a mathematical function for calculating the angle.

8. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program; Wherein, when the processor executes the computer program, the method for limiting the route side search area in route planning according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method for limiting the route side search area in route planning according to any one of claims 1 to 6 is implemented.