Interconnection flight data processing method and device, storage medium and electronic device
By introducing a flight rate strategy and a whitelist screening mechanism in the flight management system, the joint flight data is optimized and processed, and the calculation burden and unreasonable flight combination display problems caused by the huge number of joint flight combinations are solved, achieving more efficient and practical flight selection.
Patent Information
- Application Number
- CN202411863563.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
AI Technical Summary
When handling joint flights, existing flight management systems face the problem of a large number of potential joint flight combinations that lead to an increase in computational burden, and a large number of unpractical or unreasonable joint journey combinations are presented to users, which in turn leads to users who may book a combination of flights that detours, increasing travel costs and time.
By obtaining the first joint flight data, filtering the data based on the round-trip flight strategy and the preset whitelist, calculating the orbit rate of each joint flight combination, and filtering and updating it according to the preset threshold and whitelist, determining the target joint flight information between the departure and the destination.
It effectively reduces the computing burden of the system, avoids unpractical or unreasonable joint travel combinations being displayed, improves the efficiency and practicality of the flight management system, and ensures that users can obtain economical and efficient flight choices.
Smart Images

Figure CN119809547A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a method and device for processing connecting flight data, a storage medium, and an electronic device. Background Art
[0002] In the field of flight management and booking, traditional technologies and solutions mainly focus on simplifying the booking process, improving flight search efficiency and optimizing price comparison mechanisms. These systems usually rely on huge databases that contain flight information collected from various airlines, allowing passengers to search, compare and book one-way or round-trip flights from departure to destination. However, with the growing and complex demand for air travel, passengers' demand for connecting flight combinations has gradually increased, especially when there are no direct routes or direct routes are expensive. Connecting flights refer to situations where passengers need to transfer to other flights at one or more transfer stations before reaching their final destination.
[0003] Existing flight management systems have several major problems and challenges when dealing with connecting flights. First, due to the large number of potential connecting combinations, the system must pre-generate and process a large number of connecting combinations, which not only increases the computational burden of the system, but may also result in a large number of impractical or unreasonably priced connecting combinations being displayed to users. Second, existing technologies often lack clear standards when evaluating the efficiency and rationality of connecting flights, resulting in passengers booking flights that are more detours, increasing travel costs and time. In addition, for special routes, such as high-detour routes opened by airlines for promotion or to meet specific market needs, traditional systems are often unable to handle them flexibly, resulting in these potentially beneficial flight combinations not being effectively utilized.
[0004] No effective solution has been proposed for the above problems. Summary of the invention
[0005] The main purpose of the present application is to provide a connecting flight data processing method and device, a storage medium and an electronic device to solve the technical problem in the related art that the number of potential connecting flight combinations is huge, resulting in an increased computing burden on the system and a large number of impractical or unreasonable connecting flight combinations being displayed to users, which may result in users booking flight combinations that are more detours, increasing travel costs and time.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for processing connecting flight data is provided. The method comprises: obtaining first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between the departure place and the destination; filtering the first connecting flight data based on the detour rate strategy and the preset whitelist to obtain second connecting flight data, wherein the detour rate strategy is determined based on the first ticketing point mileage between the departure place and the en route place, the second ticketing point mileage between the en route place and the destination, and the third ticketing point mileage between the departure place and the destination; determining the target connecting flight information between the departure place and the destination based on the second connecting flight data.
[0007] Furthermore, the first connecting flight data is screened based on the detour rate strategy and the preset whitelist to obtain the second connecting flight data, including: calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy; screening the first connecting flight data based on the detour rate of any connecting flight combination and a preset threshold to obtain third connecting flight data; and updating the third connecting flight data based on the preset whitelist to obtain the second connecting flight data.
[0008] Furthermore, calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy includes: obtaining the first ticketing point mileage, the second ticketing point mileage and the third ticketing point mileage corresponding to any connecting flight combination; adding the first ticketing point mileage and the second ticketing point mileage to obtain an added calculation value; dividing the added calculation value by the third ticketing point mileage to obtain the detour rate of any connecting flight combination.
[0009] Further, the first connecting flight data is screened based on the detour rate of any connecting flight combination and a preset threshold to obtain the third connecting flight data, including: the first connecting flight data is screened based on the mileage of the third ticketing point, the detour rate of any connecting flight combination and a preset threshold to obtain the third connecting flight data.
[0010] Further, updating the third connecting flight data based on the preset whitelist to obtain the second connecting flight data includes: in response to the third connecting flight data not including the connecting flight in the preset whitelist, adding the connecting flight in the preset whitelist to the third connecting flight data to obtain the second connecting flight data.
[0011] Furthermore, the connecting flight data processing method further includes: updating the second connecting flight data based on a preset update cycle.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a connecting flight data processing device is provided. The device includes: an acquisition module for acquiring first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between the departure place and the destination; a screening module for screening the first connecting flight data based on the detour rate strategy and the preset whitelist to obtain second connecting flight data, wherein the detour rate strategy is determined based on the first ticketing point mileage between the departure place and the en route place, the second ticketing point mileage between the en route place and the destination, and the third ticketing point mileage between the departure place and the destination; a determination module for determining the target connecting flight information between the departure place and the destination based on the second connecting flight data.
[0013] Furthermore, the screening module is also used to calculate the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy; screen the first connecting flight data based on the detour rate of any connecting flight combination and a preset threshold to obtain third connecting flight data; and update the third connecting flight data based on a preset whitelist to obtain second connecting flight data.
[0014] Furthermore, the screening module is also used to obtain the first ticketing point mileage, the second ticketing point mileage and the third ticketing point mileage corresponding to any connecting flight combination; add the first ticketing point mileage and the second ticketing point mileage to obtain the added calculation value; divide the added calculation value by the third ticketing point mileage to obtain the detour rate of any connecting flight combination.
[0015] Furthermore, the screening module is further used to screen the first connecting flight data based on the mileage of the third ticket issuing point, the detour rate of any connecting flight combination and a preset threshold to obtain the third connecting flight data.
[0016] Further, the screening module is further configured to, in response to the third connecting flight data not including the connecting flight in the preset whitelist, add the connecting flight in the preset whitelist to the third connecting flight data to obtain the second connecting flight data.
[0017] In order to achieve the above objective, according to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein the program executes any one of the above-mentioned methods for processing connecting flight data.
[0018] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, wherein the electronic device includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned methods for processing connecting flight data.
[0019] Through this application, the following steps are adopted: obtaining first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between the departure place and the destination; filtering the first connecting flight data based on the detour rate strategy and the preset whitelist to obtain second connecting flight data, wherein the detour rate strategy is determined based on the first ticketing point mileage between the departure place and the via point, the second ticketing point mileage between the via point and the destination, and the third ticketing point mileage between the departure place and the destination; determining the target connecting flight information between the departure place and the destination based on the second connecting flight data, solving the technical problem that the number of potential connecting combinations in the related technology is huge, resulting in an increase in the calculation burden of the system and a large number of impractical or unreasonable connecting combinations being displayed to users, which in turn may cause users to book a flight combination with a long detour, increasing travel costs and time. By setting the detour rate standard based on the detour rate strategy, introducing the detour rate segmentation module and implementing the whitelist configuration, it is used to optimize the generation of flight combinations in the process of building a connecting database, ensure the efficiency and practicality of the flight management system, and meet the management needs of special routes. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0021] Figure 1 is a flowchart of a method for processing connecting flight data provided in an embodiment of the present application;
[0022] Figure 2 is an activity diagram of the standard definition process of the fly-around rate in this embodiment;
[0023] Figure 3 is a system timing diagram after the fly-around rate in this embodiment is realized;
[0024] Figure 4 is a schematic diagram of a connecting flight data processing device provided according to an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present application.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0030] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for processing connecting flight data according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0031] Step S10, obtaining first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between the departure place and the destination.
[0032] In the embodiment of the present invention, the first connecting flight data can be understood to refer to the initial flight data generated or processed by the system when constructing a connecting flight combination. The first connecting flight data generally includes flight information from the departure point to the first transfer point (or direct destination), and flight information from the first transfer point to the final destination. Exemplarily, the first connecting flight data includes key attributes such as the flight's departure time, arrival time, flight number, airline, fare, and ticketed point mileage (TPM), which are important bases for calculating the detour rate and evaluating the rationality of the connecting flight combination, and are not limited here.
[0033] Any connecting flight combination information can be understood as the detailed information of a flight itinerary composed of two or more one-way flight segments. For example, any connecting flight combination information generally includes important information such as flight segment information, transfer information, TPM, detour rate, etc., which is not limited here.
[0034] Acquiring the first connecting flight data can be understood as a process of collecting and organizing a set of flight information from the departure point to the first transit point, and from the first transit point to the final destination through an algorithm or database query in a flight management and booking system, which is not limited here.
[0035] In the embodiment of the present invention, obtaining the first connecting flight data is the basis for the subsequent optimization of the detour rate. Through this comprehensive and detailed data collection, the system can more effectively manage flight combinations, provide economical and efficient flight options, and ultimately achieve the goal of improving system performance and user satisfaction.
[0036] Step S11, filtering the first connecting flight data based on the detour rate strategy and the preset whitelist to obtain the second connecting flight data, wherein the detour rate strategy is determined based on the mileage of the first ticketing point between the departure place and the en route place, the mileage of the second ticketing point between the en route place and the destination, and the mileage of the third ticketing point between the departure place and the destination.
[0037] In an embodiment of the present invention, the detour rate strategy can be understood as a method for evaluating and managing the efficiency and economy of connecting flight combinations, which is specially designed for flight management and booking systems. The detour rate measures the ratio between the actual flight path of the connecting flight and the shortest flight path (usually the straight-line distance). The calculation of the detour rate is based on the ticketing point mileage (TPM), and the formula is (|AB|+|BC|) / |AC|, where |AB| and |BC| are the flight mileage of the two connecting flights, respectively, and |AC| is the straight-line distance or direct TPM between the origin A and the destination C. The system will set a series of detour rate thresholds, and define what is a reasonable detour based on factors such as the distance between the origin and the destination, the number of direct flights, etc. For example, for short-distance routes, a high detour rate may mean unnecessary transfers, while long-distance routes may allow higher detour rates to balance flight time and cost, which is not limited here.
[0038] The preset whitelist can be understood as a set of routes or airlines pre-defined in the system. These routes or companies marked as whitelisted are not subject to the restrictions of the conventional detour rate strategy. For example, for special routes, even if the detour rate exceeds the standard, these connecting flight combinations can be retained by configuring the whitelist, so that the system can optimize the search efficiency and the quality of the flight combination while meeting the special needs of the market, which is not limited here.
[0039] The second connecting flight data can be understood as the connecting flight combination information generated or collected by the system in the flight management and booking system after preliminary screening and optimization. For example, the second connecting flight data is a set of flight combinations that are further screened and optimized based on the first connecting flight data through the application of technical solutions such as detour rate calculation and rationality evaluation, which is not limited here.
[0040] The first issue point mileage can be understood as the flight mileage of the first flight segment in a connecting flight. For example, if a passenger purchases a connecting ticket from A to C, and this ticket includes two flight segments, A to B and B to C, then the first issue point mileage is the flight distance of the flight segment A to B, and there is no restriction here.
[0041] The second ticketing point mileage can be understood as the flight distance of the second flight in the connecting flight combination. For example, if a connecting flight departs from location A, stops at location B, and finally arrives at location C, then the first ticketing point mileage is the flight distance from A to B, and the second ticketing point mileage is the flight distance from B to C, which is not limited here.
[0042] The third ticketing point mileage can be understood as the flight distance from the departure point to the destination. For example, for a flight combination that departs from point A, stops at point B, and finally arrives at point C, the third ticketing point mileage represents the flight distance from point A to point C, that is, the total flight distance, which is not limited here.
[0043] The first connecting flight data is screened based on the detour rate strategy and the preset whitelist to obtain the second connecting flight data. It can be understood that the system first calculates the detour rate of each connecting flight combination in the first connecting flight data, and then evaluates each connecting flight combination according to the preset detour rate standard. The system also needs to take the preset whitelist into consideration, and then the system screens and optimizes the first connecting flight data to finally obtain the second connecting flight data, thereby avoiding the increased cost and travel inconvenience caused by unreasonable detours.
[0044] The detour rate strategy is determined based on the mileage of the first ticketing point between the departure and the via point, the mileage of the second ticketing point between the via point and the destination, and the mileage of the third ticketing point between the departure and the destination. It can be understood that the detour rate strategy is determined based on the mileage of the first ticketing point between the departure and the first transit point, the mileage of the second ticketing point between the first transit point and the destination, and the direct ticketing point mileage between the departure and the destination. The detour rate strategy helps the system to screen out economically reasonable and efficient flight combinations, thereby improving user experience and flight management efficiency.
[0045] In the embodiment of the present invention, the process of screening the first connecting flight data based on the detour rate strategy and the preset whitelist helps the flight management system to provide more optimized, more reasonable and more cost-effective flight selection, while also maintaining the necessary flexibility to adapt to special market needs and operating strategies.
[0046] Step S12: determining target connecting flight information between the departure place and the destination based on the second connecting flight data.
[0047] In the embodiment of the present invention, the target connecting flight information can be understood as the detailed data of the connecting flight combination selected or generated in the flight management and booking system according to the user's travel needs or the specific purpose of the system. For example, when the user performs a flight query in the system and enters the departure place, destination, departure date and other information, the system will generate a series of possible connecting flight combinations based on this information. These combinations are the target connecting flight information, which is not limited here.
[0048] Determining the target connecting flight information between the departure place and the destination based on the second connecting flight data can be understood as the system will conduct a more detailed evaluation of the second connecting flight data, and then select the most suitable connecting flight combination from the second connecting flight data according to the specific needs of the user to form the target connecting flight information.
[0049] In the embodiment of the present invention, determining the target connecting flight information between the departure place and the destination based on the second connecting flight data is actually a process in which the system provides the user with carefully selected flight combination suggestions that highly match their travel needs through multiple rounds of screening and optimization, thereby not only improving the search efficiency and reducing the display of invalid information, but also enhancing the user experience, ensuring the convenience and economy of travel decisions, and also providing a more refined flight combination management mechanism for airlines.
[0050] In the embodiment of the present invention, obtaining the first connecting flight data is the basis for the subsequent optimization of the detour rate. Through this comprehensive and detailed data collection, the system can more effectively manage the flight combination, provide economical and efficient flight options, and ultimately achieve the goal of improving system performance and user satisfaction. The process of screening the first connecting flight data based on the detour rate strategy and the preset whitelist helps the flight management system to provide more optimized, more reasonable, and more cost-effective flight options, while also maintaining the necessary flexibility to adapt to special market needs and operating strategies. Determining the target connecting flight information between the departure and destination based on the second connecting flight data is actually a process in which the system provides users with carefully selected flight combination recommendations that highly match their travel needs through multiple rounds of screening and optimization, thereby not only improving search efficiency and reducing the display of invalid information, but also enhancing user experience, ensuring the convenience and economy of travel decisions, and also providing airlines with a more refined flight combination management mechanism.
[0051] Optionally, in step S11, filtering the first connecting flight data based on the detour rate strategy and the preset whitelist to obtain the second connecting flight data includes the following steps:
[0052] Step S111, calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy;
[0053] Step S112, filtering the first connecting flight data based on the detour rate of any connecting flight combination and a preset threshold to obtain third connecting flight data;
[0054] Step S113: updating the third connecting flight data based on the preset whitelist to obtain the second connecting flight data.
[0055] In an embodiment of the present invention, the preset threshold value can be understood as a standard value used to judge whether the degree of detour of the connecting flight is reasonable in the flight management and booking system, especially when processing connecting flights. Exemplarily, the specific value of the preset threshold value will vary according to different combinations of relevant factors. For example, when the direct flight TPM between the origin and the destination is low, the threshold value of the detour rate will also be correspondingly low to ensure the economy and efficiency of the connecting flight. On the contrary, for routes with higher direct flight TPM, the threshold value may be set higher to allow a certain degree of detour, especially when there is no direct flight service between the two places, which is not limited here.
[0056] The third connecting flight data can be understood as a set of high-quality flight information that meets the requirements of economy and efficiency, which is retained by the system after evaluating the first connecting flight data based on the detour rate of any connecting flight combination and a preset threshold and eliminating unreasonable and excessively detoured connecting flight combinations.
[0057] Calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy can be understood as the system will traverse the first connecting flight data, that is, all possible connecting flight combinations in the system, and calculate the detour rate for each combination. Exemplarily, in a connecting flight, if a flight combination includes from location A to location B and then to location C, then its detour rate will be calculated by the formula ((|AB|+|BC|) / (|AC|)), where (|AB|), (|BC|) and (|AC|) represent the ticketing point mileage (TPM) from A to B, B to C, and A to C, respectively, and are not limited here.
[0058] The first connecting flight data is screened based on the detour rate of any connecting flight combination and the preset threshold value to obtain the third connecting flight data. It can be understood that the detour rate of the first connecting flight data in the system and the preset threshold value in the detour rate strategy are compared and screened to obtain the third connecting flight data. Exemplarily, if the detour rate of a certain flight combination is lower than the preset threshold value, the flight combination is considered reasonable and will be retained and enter the subsequent screening and display process; on the contrary, if the detour rate is too high, it will be marked as unreasonable and excluded from the candidate list. For example, if the direct flight TPM between the two places is less than or equal to 100, and the total number of direct flights per year is greater than 300, it is considered an unreasonable detour connection; if the direct flight TPM between the two places is less than or equal to 250, and the total number of direct flights per year is greater than 3,300 and the detour rate is greater than 7, it is considered an unreasonable detour connection; the total number of direct flights per year is less than or equal to 3,300, which means it is not a detour connection; if 250<the direct flight TPM between the two places and less than or equal to 500, and the detour rate is greater than 7, it is considered an unreasonable detour connection; or if the direct flight TPM between the two places is greater than 500 and the detour rate is greater than 5 , it is considered an unreasonable detour; if 500 < the direct flight TPM of the two places and less than or equal to 2000, the detour rate is greater than 5, which is considered an unreasonable detour; or the direct flight TPM of the two places is greater than 2000 and the detour rate is greater than 2, which is considered an unreasonable detour; if 2000 < the direct flight TPM of the two places, A and C belong to the same region (that is, A and C belong to the same plate on the map) and the detour rate is greater than 2, it is considered an unreasonable detour; or the direct flight TPM of the two places is greater than 20000 and the detour rate is greater than 1, it is considered an unreasonable detour. After the above calculation and screening process, the reasonable connecting flight combination retained by the system constitutes the third connecting flight data, which is not restricted here.
[0059] Based on the preset whitelist, the third connecting flight data is updated to obtain the second connecting flight data. It can be understood that after the third connecting flight data is updated by the whitelist mechanism, the connecting flight data set retained in the system is called the second connecting flight data. Exemplarily, a two-letter code of an airline is added to the configuration file to include a specific route or airline in the whitelist. Even if a special route has a high detour rate, it will be retained in the connecting database. That is, the second connecting flight data includes all reasonable flights in the third connecting flight data, as well as connecting flight combinations that have been re-included due to special reasons, that is, the second connecting flight data is the final candidate flight combination set that the flight search and booking system is ready to display to the user, which is not limited here.
[0060] In an embodiment of the present invention, the detour rate of any connecting flight combination in the first connecting flight data is calculated based on the detour rate strategy, and the system can eliminate those inefficient connecting flight combinations, reduce database redundancy, and improve data processing speed and system response time. The first connecting flight data is screened based on the detour rate of any connecting flight combination and the preset threshold to obtain the third connecting flight data. By excluding flight combinations with too high detour rates, airlines and system operators can reduce unnecessary costs, such as additional fuel consumption, operational complexity, etc. The third connecting flight data is updated based on the preset white list to obtain the second connecting flight data, and the connecting flight combinations of certain specific routes are retained. Even if the detour rate of some flight data exceeds the normal threshold, the white list mechanism can provide airlines with the flexibility to publish special routes, promotional flights, etc., to meet the needs of specific markets or user groups.
[0061] Optionally, in step S111, calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy includes the following steps:
[0062] Step S1111, obtaining the first issuing point mileage, the second issuing point mileage, and the third issuing point mileage corresponding to any connecting flight combination;
[0063] Step S1112, adding the mileage of the first issuing point and the mileage of the second issuing point to obtain an added calculation value;
[0064] Step S1113: Divide the added calculated value by the mileage of the third ticket issuance point to obtain the detour rate of any connecting flight combination.
[0065] In the embodiment of the present invention, obtaining the first ticketing point mileage, the second ticketing point mileage and the third ticketing point mileage corresponding to any connecting flight combination can be understood as the system or algorithm extracting detailed information of the specific connecting flight combination from the flight database, including the ticketing point mileage of the first flight (from the departure point to the first transit point), the ticketing point mileage of the second flight (from the first transit point to the destination), and the ticketing point mileage of the direct flight (from the departure point to the destination).
[0066] Adding the mileage of the first ticketing point and the mileage of the second ticketing point to obtain the added calculation value can be understood as the system adding the mileage of the first ticketing point and the mileage of the second ticketing point to obtain the total flight mileage of the connecting flight. The added calculation value represents the actual flight distance of the connecting flight combination. Exemplarily, the added calculation value is an important basis for the subsequent evaluation of the degree of detour of the connecting flight and the calculation of the detour rate, which is not limited here.
[0067] Dividing the added calculated value by the mileage of the third ticketing point to obtain the detour rate of any connecting flight combination can be understood as the system calculating the detour rate by dividing the added calculated value (i.e. the total flight mileage of the connecting flights) by the mileage of the third ticketing point (the direct flight mileage or the shortest theoretical flight distance from the origin to the destination).
[0068] In the embodiment of the present invention, the total flight mileage of connecting flights is divided by the direct flight mileage to obtain the detour rate of any connecting flight combination, thereby reflecting the additional flight distance of the connecting flight relative to the direct flight. Through the above steps, the flight management system can quantitatively evaluate the efficiency and economy of connecting flights, thereby optimizing flight combinations, avoiding unreasonable detours, improving user booking experience, and reducing the operating costs of airlines.
[0069] Optionally, in step S112, the first connecting flight data is screened based on the detour rate of any connecting flight combination and a preset threshold value to obtain the third connecting flight data, including the following steps:
[0070] Step S1121, filtering the first connecting flight data based on the mileage of the third ticket issuing point, the detour rate of any connecting flight combination and a preset threshold to obtain the third connecting flight data.
[0071] In an embodiment of the present invention, the first connecting flight data is screened based on the mileage of the third ticketing point, the detour rate of any connecting flight combination and the preset threshold value. The third connecting flight data can be understood as the system first loading all possible connecting flight combination data. The above possible connecting flight combination data contains the ticketing point mileage, time, price and other information of each flight segment. For each connecting flight data, the system will read its corresponding detour rate and compare it with the preset threshold value. If the detour rate is lower than or equal to the preset threshold value, the connecting flight combination is considered reasonable and can be retained. Through the above steps, the system will remove the flight combination whose detour rate exceeds the preset threshold value from the data set, and only retain those connecting flights that are considered to be reasonable. These screened flight combination data are the "third connecting flight data" and will be used for subsequent display, booking and other operations.
[0072] In the embodiment of the present invention, through the above steps, the system can effectively filter out those flight combinations that have too many detours and are uneconomical, avoiding showing unreasonable choices to users, thereby improving search efficiency and user experience. At the same time, it also saves operating costs for airlines and optimizes flight network layout.
[0073] Optionally, in step S113, updating the third connecting flight data based on the preset whitelist to obtain the second connecting flight data includes the following steps:
[0074] Step S1131: in response to the third connecting flight data not including the connecting flight in the preset whitelist, adding the connecting flight in the preset whitelist to the third connecting flight data to obtain the second connecting flight data.
[0075] In the embodiment of the present invention, in response to the third connecting flight data not including the connecting flight in the preset whitelist, the connecting flight in the preset whitelist is added to the third connecting flight data to obtain the second connecting flight data. It can be understood that after initially screening out the economically reasonable and efficient connecting flight combinations (i.e., the third connecting flight data), the system will check whether these data contain the connecting flight combinations specially designated by the airline. Although these combinations may have a high detour rate, the airline hopes that they can be retained and displayed to the user for reasons such as market strategy, route optimization, and special customer needs. If it is found that the third connecting flight data does lack the flight combinations in the whitelist, the system will add the connecting flight data listed in the whitelist to the third connecting flight data to ensure that these special combinations are not omitted. After adding the flight combinations in the whitelist, the new data set generated by the system is the second connecting flight data.
[0076] In the embodiment of the present invention, through the above steps, the connecting flight data in the whitelist is supplemented, so that the third connecting flight data is converted into the second connecting flight data, ensuring that the special requirements of the airline are added on the basis of the standard screening of the detour rate, so that the flight selection finally displayed to the user is more comprehensive and flexible.
[0077] Optionally, the connecting flight data processing method further includes:
[0078] The second connecting flight data is updated based on a preset update period.
[0079] In the embodiment of the present invention, the preset update cycle can be understood as the time interval for the system to automatically update the connecting flight information. The preset update cycle can be a few hours, a day, a week, or longer, depending on the frequency of flight information changes, system resource allocation, and the need for data real-time performance. For example, in busy routes and seasons, a shorter update cycle may be required to ensure the immediacy of data; in the case of fewer flight changes, the update cycle can be appropriately extended to save system resources, which is not limited here.
[0080] Updating the second connecting flight data based on a preset update cycle can be understood as setting a fixed time interval (ie, update cycle) in the system, and regularly checking and adjusting the second connecting flight data within this cycle to reflect the latest flight information and operation status.
[0081] In the embodiment of the present invention, by updating the second connecting flight data based on a preset update cycle, the flight management system can dynamically adapt to the rapid changes in the aviation industry, ensuring that the information provided to passengers is the latest, and also helps airlines to flexibly adjust flight strategies according to market and operational needs, thereby improving the service quality and operational efficiency of the entire system.
[0082] Figure 2 is an activity diagram of the standard definition process of the bypass rate in this embodiment, such as Figure 2 As shown in the figure, it shows how to judge whether it is a detour flight based on different direct flight TPMs and the total number of direct flights per year.
[0083] First, the definition and calculation method of the detour rate are given. The detour rate is a key indicator to measure the rationality of a flight itinerary. It is defined as if the flight itinerary flies from point A to point C, passing through point B, then the detour rate of the itinerary is calculated as (|AB|+|BC|) / |AC|, where |XY| represents the ticketing point mileage from point X to point Y. This metric is used to evaluate the directness of a flight itinerary. According to the triangle inequality, the detour rate is obviously greater than 1. If the detour rate is too high, it means that the itinerary is relatively long and may not be the best choice. In the present invention, it is clarified that the calculation formula of the detour rate is (|AB|+|BC|) / |AC|, where |AB| and |BC| are the ticketing point mileage (TPM) of the two segments of the connecting flight, and |AC| is the direct flight TPM from the starting point to the end point. By calculating the detour rate, the rationality of the connecting flight can be quantified.
[0084] Based on the definition of detour rate, this scheme further sets a series of detour rate standards. The detour rate standards are divided into multiple levels according to factors such as the distance between the origin and destination (Origin and Destination, O&D) and the number of direct flights, aiming to distinguish reasonable and unreasonable connecting flight combinations. In order to optimize the connecting database, we set different detour rate thresholds according to the TPM of the two places. These thresholds are defined based on the non-stop mileage of the itinerary and the total number of direct flights in the year, so as to ensure that most of the generated connecting combinations are within a reasonable range. In particular, the detour rate standards are set as follows [non-detour connections and unreasonable detour connections will be removed from the database]: If the direct flight TPM of the two places is less than or equal to 100, the total number of direct flights in the year is greater than 300, which is considered an unreasonable detour connection. If the direct flight TPM of the two places is less than or equal to 250, the total number of direct flights in the year is greater than 3300 and the detour rate is greater than 7, it is considered an unreasonable detour connection; if the total number of direct flights in the year is less than or equal to 3300, it is not a detour connection. If 250<the direct flight TPM of the two places and is less than or equal to 500, and the detour rate is greater than 7, it is considered an unreasonable detour connection; or if the direct flight TPM of the two places is greater than 500 and the detour rate is greater than 5, it is considered an unreasonable detour connection. If 500<the direct flight TPM of the two places and is less than or equal to 2000, and the detour rate is greater than 5, it is considered an unreasonable detour connection; or if the direct flight TPM of the two places is greater than 2000 and the detour rate is greater than 2, it is considered an unreasonable detour connection. If 2000<the direct flight TPM of the two places, A and C belong to the same region (that is, A and C belong to the same plate on the map) and the detour rate is greater than 2, it is considered an unreasonable detour connection; or if the direct flight TPM of the two places is greater than 20000 and the detour rate is greater than 1, it is considered an unreasonable detour connection.
[0085] The process of building the connecting database before the modification did not take the detour rate into account, resulting in a large number of unreasonable connecting combinations in the database. In order to prevent the creation of too many unreasonable connecting combinations in the pre-generation process, the present invention introduces a detour rate segmentation module in the process of building the connecting database. The detour rate segmentation module is responsible for screening out reasonable connecting combinations according to the detour rate standard, and setting a whitelist for special routes, retaining necessary exceptions. The specific steps include:
[0086] 1. Introduction of detour rate segmentation module: Add detour rate segmentation module instance reference in the joint database factory to ensure that the detour rate is considered when building the joint database.
[0087] 2. Adjustment of city connection thread module: The city connection thread module now references the detour rate splitting module instance to use the detour rate pre-calculation result.
[0088] 3. Pre-calculate the detour rate: The detour rate segmentation module instance calls the pre-calculation method in the construction of the joint process database and selects reasonable joint process combinations according to the defined standards.
[0089] 4. Use pre-calculated results: The city connection work module constructs the final connection database based on the pre-calculated results, excluding unreasonable connection combinations and taking into account exceptions for special routes, ensuring the efficiency and practicality of the database.
[0090] For special routes, even if their detour rate exceeds the normal range, they should be considered for retention in the connecting database. This can be achieved in two ways: 1. Threshold adjustment: According to the special needs released by the airline, the threshold of the detour rate can be appropriately adjusted so that certain special routes can be included in the connecting database. This requires re-evaluation of the adjusted connecting database size to ensure that too many unreasonable connecting combinations are not introduced. 2. Whitelist configuration: Add the two-letter code of the airline to the configuration file to whitelist specific routes or airlines. The above special routes will be retained in the connecting database even if the detour rate is high.
[0091] The present invention can be implemented in environments including but not limited to servers, dedicated computing devices, or distributed computing environments. The specific implementation involves the following components: Server: the entity that executes the construction of the connecting database, the calculation of the detour rate, and the preprocessing. Storage system: a physical or cloud storage solution for storing flight data, connecting databases, and configuration files. Network facilities: a network environment that ensures data transmission and communication between systems. In terms of the software environment, the system can be implemented as a standalone application or as part of an existing flight management system, and mainly includes the following modules: Detour rate segmentation module: responsible for screening reasonable connecting combinations based on the detour rate standard. Connecting database factory module: responsible for building and updating the connecting database, and now integrates the detour rate segmentation logic. Configuration management module: responsible for handling exceptions for special routes, including threshold adjustment and whitelist management.
[0092] In order to further illustrate the technical solution of the present invention, several specific embodiments are provided:
[0093] Example 1: Conventional joint process optimization
[0094] Assume that there is a flight itinerary from location A to location C, passing through location B. According to the algorithm of the present invention, the system first calculates the detour rate of itinerary ABC and compares it with the TPM of the direct flight between AC. If the detour rate exceeds the corresponding threshold, the connecting flight combination is considered unreasonable and excluded from the database.
[0095] Example 2: Special route processing
[0096] For special routes published by an airline, even if the detour rate exceeds the normal threshold, the interline combination will still be retained by adding the route or airline code to the whitelist. This allows airlines to provide unique route options for specific markets or operational needs.
[0097] Example 3: Update of joint database
[0098] During the update of the connection database, the system regularly recalculates the detour rates of existing routes and compares them with the latest thresholds. New routes are also evaluated according to the same criteria. In this way, the connection database is kept up to date and the number of unreasonable connections is reduced.
[0099] The present invention includes several key system modules and implementation processes. The system modules include a connecting flight database factory, a detour rate segmentation module, a city connecting flight thread module, etc. All modules work together to achieve effective management of connecting flights. The implementation process describes in detail a series of steps from the construction of the connecting flight database to the calculation of the detour rate and the screening of connecting flight combinations, ensuring that technicians can implement the technology step by step according to the description. In order to more clearly illustrate the technical solution of the present invention, the following will be described in detail from the two perspectives of the implementation process, steps, and methods of the system modules and the software modules.
[0100] Figure 3 is a system timing diagram after the fly-around rate in this embodiment is realized, such as Figure 3 As shown, the construction method of the connecting database after adding the detour rate segmentation module is demonstrated. The system module mainly includes a connecting database factory program, a detour rate segmentation module, and a city connecting thread module. Among them, the connecting database factory program is responsible for the overall construction of the connecting database and is the basis for implementing the detour rate management solution. By introducing the detour rate segmentation module instance, the connecting database factory program can screen the flight combination for rationality during the construction stage of the connecting database. The detour rate segmentation module is the core of the present invention. The module screens connecting flights according to the preset detour rate standard. The detour rate segmentation module can not only calculate the detour rate, but also judge which connecting combinations are reasonable and which connecting combinations should be excluded according to the standard. The city connecting thread module is responsible for processing the connecting combinations of specific city pairs, and uses the pre-calculated results of the detour rate segmentation module instance to optimize the connecting selection, thereby improving processing efficiency and accuracy.
[0101] The implementation process of each module of the software includes pre-generation processing optimization, whitelist setting, and final confirmation of the connecting flight combination. Specifically, in the stage of building the connecting flight database, the detour rate of each connecting flight combination is first calculated by the detour rate segmentation module, and a reasonable connecting flight combination is screened out according to the set standard. Then, for special routes, even if the detour rate exceeds the standard, these connecting flight combinations can be retained by configuring the whitelist. This step ensures the flexibility and practicality of the solution. Finally, based on the detour rate screening and whitelist setting, the connecting flight database factory program will build the final connecting flight database, which will be used for subsequent fare searches and related operations. The technical solution of the present invention effectively solves the detour problem in connecting flight management through the cooperation of the above-mentioned system modules and the precise execution of the software implementation process, improves the rationality of flight combinations, reduces unnecessary operating costs, and ensures the travel efficiency and satisfaction of passengers. Through the implementation of the technical solution of the present invention, airlines and related software developers can better manage connecting flights and optimize search services.
[0102] The present invention provides a connecting flight data processing method for optimizing the management of connecting flights, especially in reducing the generation of unreasonable detour connecting combinations. The technical solution of the present invention comprehensively utilizes the calculation and standard definition of the detour rate, combined with the exception handling mechanism of special routes, to ensure the rationality and practicality of the connecting database. Through the above steps, the directness and economy of flight selection are optimized, and the flexibility is provided for airlines, so that they can publish special routes according to specific market needs and operating strategies. In addition, the implementation of the present invention is not only limited to the optimization at the software level, but also involves the configuration of hardware and network environment, ensuring the efficient operation and stability of the system. Considering the complexity and variability of aviation business, the technical solution proposed by the present invention should have good scalability and compatibility, so as to facilitate future functional expansion and integration with other systems. In summary, through the technical solution of the present invention, the performance of flight management software can be significantly improved, and users can be provided with better quality and more efficient services.
[0103] The embodiment of the present application also provides a connecting flight data processing device. It should be noted that the connecting flight data processing device of the embodiment of the present application can be used to execute the connecting flight data processing method provided in the embodiment of the present application. The connecting flight data processing device provided in the embodiment of the present application is introduced below.
[0104] Figure 4 is a schematic diagram of a connecting flight data processing device 400 provided according to an embodiment of the present application. Figure 4 As shown, the device includes: an acquisition module 401, a screening module 402, and a determination module 403.
[0105] Specifically, the acquisition module 401 is used to acquire first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between the departure place and the destination;
[0106] A screening module 402 is used to screen the first connecting flight data based on the detour rate strategy and the preset whitelist to obtain the second connecting flight data, wherein the detour rate strategy is determined based on the mileage of the first ticketing point between the departure place and the en route place, the mileage of the second ticketing point between the en route place and the destination, and the mileage of the third ticketing point between the departure place and the destination;
[0107] The determination module 403 is configured to determine target connecting flight information between the departure point and the destination based on the second connecting flight data.
[0108] In summary, the connecting flight data processing device provided in the embodiment of the present application obtains the first connecting flight data through the acquisition module 401, wherein the first connecting flight data includes any connecting flight combination information between the departure place and the destination, and then the first connecting flight data is screened by the screening module 402 based on the detour rate strategy and the preset white list to obtain the second connecting flight data, wherein the detour rate strategy is determined based on the first ticketing point mileage between the departure place and the en route place, the second ticketing point mileage between the en route place and the destination, and the third ticketing point mileage between the departure place and the destination, and finally the target connecting flight information between the departure place and the destination is determined based on the second connecting flight data by the determination module 403, thereby solving the technical problem in the related art that the number of potential connecting flight combinations is huge, resulting in an increased calculation burden of the system and a large number of impractical or unreasonable connecting flight combinations are displayed to the user, which in turn causes the user to book a flight combination with a long detour, increasing travel costs and time. By setting the detour rate standard based on the detour rate strategy, introducing the detour rate segmentation module and implementing the whitelist configuration, it is used to optimize the generation of flight combinations in the process of building the connecting database, ensure the efficiency and practicality of the flight management system, and meet the management needs of special routes.
[0109] Furthermore, the screening module 402 is further configured to calculate the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy; screen the first connecting flight data based on the detour rate of any connecting flight combination and a preset threshold to obtain third connecting flight data; and update the third connecting flight data based on a preset whitelist to obtain second connecting flight data.
[0110] Furthermore, the screening module 402 is also used to obtain the first ticketing point mileage, the second ticketing point mileage and the third ticketing point mileage corresponding to any connecting flight combination; add the first ticketing point mileage and the second ticketing point mileage to obtain the added calculation value; divide the added calculation value by the third ticketing point mileage to obtain the detour rate of any connecting flight combination.
[0111] Furthermore, the screening module 402 is further configured to screen the first connecting flight data based on the mileage of the third ticket issuing point, the detour rate of any connecting flight combination, and a preset threshold value to obtain the third connecting flight data.
[0112] Further, the screening module 402 is further configured to, in response to the third connecting flight data not including the connecting flight in the preset whitelist, add the connecting flight in the preset whitelist to the third connecting flight data to obtain the second connecting flight data.
[0113] The connecting flight data processing device includes a processor and a memory. The acquisition module 401, the screening module 402, the determination module 403, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0114] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the generation of flight combinations can be optimized by adjusting kernel parameters.
[0115] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0116] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the connecting flight data processing method is implemented.
[0117] An embodiment of the present invention provides a processor, which is used to run a program, wherein the connecting flight data processing method is executed when the program is run.
[0118] like Figure 5 As shown, an embodiment of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: obtaining first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between a departure place and a destination; filtering the first connecting flight data based on a detour rate strategy and a preset whitelist to obtain second connecting flight data, wherein the detour rate strategy is determined based on a first ticketing point mileage between a departure place and an en route place, a second ticketing point mileage between an en route place and a destination, and a third ticketing point mileage between a departure place and a destination; and determining target connecting flight information between a departure place and a destination based on the second connecting flight data.
[0119] When the processor executes the program, the following steps are also implemented: calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy; filtering the first connecting flight data based on the detour rate of any connecting flight combination and a preset threshold to obtain third connecting flight data; and updating the third connecting flight data based on a preset whitelist to obtain second connecting flight data.
[0120] When the processor executes the program, the following steps are also implemented: obtaining the first ticketing point mileage, the second ticketing point mileage and the third ticketing point mileage corresponding to any connecting flight combination; adding the first ticketing point mileage and the second ticketing point mileage to obtain an added calculation value; dividing the added calculation value by the third ticketing point mileage to obtain the detour rate of any connecting flight combination.
[0121] When the processor executes the program, the following steps are also implemented: based on the mileage of the third ticket issuance point, the detour rate of any connecting flight combination and a preset threshold, the first connecting flight data is screened to obtain the third connecting flight data.
[0122] When the processor executes the program, the following steps are also implemented: in response to the third connecting flight data not including the connecting flight in the preset whitelist, the connecting flight in the preset whitelist is added to the third connecting flight data to obtain the second connecting flight data.
[0123] When the processor executes the program, the following steps are also implemented: updating the second connecting flight data based on a preset update cycle.
[0124] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0125] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: obtaining first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between a departure place and a destination; filtering the first connecting flight data based on a detour rate strategy and a preset white list to obtain second connecting flight data, wherein the detour rate strategy is determined based on a first ticketing point mileage between a departure place and an en route place, a second ticketing point mileage between an en route place and a destination, and a third ticketing point mileage between a departure place and a destination; and determining a target connecting flight information between a departure place and a destination based on the second connecting flight data.
[0126] When executed on a data processing device, the method is also suitable for executing a program that is initialized with the following method steps: calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy; screening the first connecting flight data based on the detour rate of any connecting flight combination and a preset threshold to obtain third connecting flight data; and updating the third connecting flight data based on a preset whitelist to obtain second connecting flight data.
[0127] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: obtaining the first ticketing point mileage, the second ticketing point mileage and the third ticketing point mileage corresponding to any connecting flight combination; adding the first ticketing point mileage and the second ticketing point mileage to obtain an added calculation value; dividing the added calculation value by the third ticketing point mileage to obtain the detour rate of any connecting flight combination.
[0128] When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: filtering the first connecting flight data based on the mileage of the third ticket issuance point, the detour rate of any connecting flight combination and a preset threshold to obtain the third connecting flight data.
[0129] When executed on a data processing device, the program is further adapted to execute initialization having the following method steps: in response to the third connecting flight data not including the connecting flight in the preset whitelist, adding the connecting flight in the preset whitelist to the third connecting flight data to obtain the second connecting flight data.
[0130] When executed on a data processing device, the method is further adapted to execute a program that initiates the following method steps: updating the second connecting flight data based on a preset update cycle.
[0131] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0132] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0133] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0135] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0136] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0137] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0138] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0139] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0140] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for processing connecting flight data, characterized in that: The method comprises: Acquire first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between a departure place and a destination; The first connecting flight data is screened based on a detour rate strategy and a preset whitelist to obtain second connecting flight data, wherein the detour rate strategy is determined based on the mileage of a first ticket issuing point between the departure place and the en route place, the mileage of a second ticket issuing point between the en route place and the destination, and the mileage of a third ticket issuing point between the departure place and the destination; Target connecting flight information between the departure place and the destination is determined based on the second connecting flight data.
2. The method according to claim 1, characterized in that The filtering of the first connecting flight data based on the detour rate strategy and the preset whitelist to obtain the second connecting flight data includes: Calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy; The first connecting flight data is screened based on the detour rate of any connecting flight combination and a preset threshold to obtain third connecting flight data; The third connecting flight data is updated based on the preset whitelist to obtain the second connecting flight data.
3. The method according to claim 2, characterized in that The calculating the detour rate of any connecting flight combination in the first connecting flight data based on the detour rate strategy includes: Obtain the first ticket issuing point mileage, the second ticket issuing point mileage, and the third ticket issuing point mileage corresponding to any connecting flight combination; Adding the mileage of the first ticket issuing point and the mileage of the second ticket issuing point to obtain an added calculated value; The added calculated value is divided by the mileage of the third ticket issuance point to obtain the detour rate of any connecting flight combination.
4. The method according to claim 2, characterized in that: The filtering of the first connecting flight data based on the detour rate of any connecting flight combination and a preset threshold to obtain the third connecting flight data includes: The first connecting flight data is screened based on the mileage of the third ticket issuing point, the detour rate of any connecting flight combination, and the preset threshold to obtain the third connecting flight data.
5. The method according to claim 2, characterized in that: The updating of the third connecting flight data based on the preset whitelist to obtain the second connecting flight data comprises: In response to the third connecting flight data not including the connecting flight in the preset whitelist, the connecting flight in the preset whitelist is added to the third connecting flight data to obtain the second connecting flight data.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The second connecting flight data is updated based on a preset update period.
7. A connecting flight data processing device, characterized in that: The device comprises: An acquisition module, configured to acquire first connecting flight data, wherein the first connecting flight data includes any connecting flight combination information between a departure place and a destination; a screening module, configured to screen the first connecting flight data based on a detour rate strategy and a preset whitelist to obtain second connecting flight data, wherein the detour rate strategy is determined based on the mileage of a first ticket issuing point between the departure place and the en route place, the mileage of a second ticket issuing point between the en route place and the destination, and the mileage of a third ticket issuing point between the departure place and the destination; A determination module is used to determine target connecting flight information between the departure place and the destination based on the second connecting flight data.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the connecting flight data processing method according to any one of claims 1 to 6 when running on a computer or a processor.
9. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for processing connecting flight data as claimed in any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the connecting flight data processing method as described in any one of claims 1 to 6.