Method, apparatus and device for acquiring interline flight information, and readable storage medium
By acquiring target update information and updating the connecting flight information database, the problem of long response time in generating connecting flight information is solved, and efficient and accurate acquisition of connecting flight information is achieved.
Patent Information
- Application Number
- PCT/CN2024/135012
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-22
- Filing Date
- 2024-11-27
- Publication Date
- 2025-10-30
AI Technical Summary
In existing technologies, the generation and response time of connecting flight information is relatively long, making it difficult to guarantee accuracy and comprehensiveness.
By acquiring target update information, the connecting flight information database related to the update information is updated. Only the affected information items are updated. A preprocessing plus real-time update strategy is adopted, combined with high-speed caching technology, to build and update the connecting flight information database.
This improved the efficiency of updating connecting flight information, reduced response time, and ensured the accuracy and comprehensiveness of the information.
Smart Images

Figure CN2024135012_30102025_PF_FP_ABST
Abstract
Description
Methods, devices, equipment, and readable storage media for obtaining connecting flight information
[0001] This application claims priority to Chinese Patent Application No. 202410487224.3, filed on April 22, 2024, entitled “Method, Apparatus, Equipment and Readable Storage Medium for Obtaining Connecting Flight Information”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of data processing technology, and in particular to a method, apparatus, device, and readable storage medium for obtaining connecting flight information. Background Technology
[0003] Connecting flights, also known as transit flights, are itineraries consisting of multiple direct flights. With the development of the civil aviation industry, airlines have significantly expanded their route networks by increasing the number of flights they operate and through code-sharing cooperation. However, the flight information for direct flights is constantly being updated. To adapt to these updates, connecting flight information needs to be generated in real-time based on the latest information from each direct flight, resulting in a longer response time for generating connecting flight information.
[0004] Ensuring the accuracy and comprehensiveness of connecting flight information while reducing the response time for obtaining such information is a pressing issue that needs to be addressed.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] This application provides a method, apparatus, device, and readable storage medium for obtaining connecting flight information, as follows:
[0007] A method for obtaining connecting flight information includes:
[0008] Obtain target update information, which includes flight information update items for the target direct flight;
[0009] Obtain target connecting flight information related to the target update information from a pre-built connecting flight information database, wherein the connecting flight information database includes multiple connecting flight information entries;
[0010] The target connecting flight information is updated based on the target update information to obtain the updated result of the target connecting flight information;
[0011] The connecting flight information database is updated based on the update results of each of the target connecting flight information.
[0012] Optionally, the target connecting flight information includes first connecting flight information, and obtaining the target connecting flight information related to the target update information from a pre-built connecting flight information database includes:
[0013] From the connecting flight information database, obtain connecting flight information for at least one segment of direct flight that is the target direct flight, and use this as the first connecting flight information.
[0014] Optionally, updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information includes:
[0015] Connecting rules for obtaining the first connecting flight information;
[0016] Verify whether the first connecting flight information meets the connecting rules of the first connecting flight information. If it does not meet the rules, obtain the update result of the first connecting flight information to indicate that the first connecting flight information should be deleted. If it meets the rules, obtain the update result of the first connecting flight information to indicate that the first connecting flight information does not need to be updated.
[0017] Optionally, methods for obtaining connecting flight information may also include:
[0018] From the connecting flight information database, obtain the second connecting flight information of at least one segment of direct flight that is the same as the target direct flight; the same connecting flight refers to a direct flight with the same origin and destination;
[0019] The connecting flight object corresponding to the second connecting flight information is taken as the connecting flight object to be updated;
[0020] Update the connecting flight information of the connecting flight object to be updated in the connecting flight information database.
[0021] Optionally, the target update information also includes rule update items for the target connecting flight rules, and the step of updating the target connecting flight information based on the target update information to obtain the update result of the target connecting flight information further includes:
[0022] From the connecting flight information database, obtain connecting flight information related to the rule update item of the target connecting flight rule, as the third connecting flight information; the target connecting flight information also includes the target connecting flight information.
[0023] Optionally, updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information further includes:
[0024] Verify whether the third connecting flight information meets the target connecting flight rules. If it does not meet the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information should be deleted. If it meets the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information does not need to be updated.
[0025] Alternatively, methods for obtaining connecting flight information may also include:
[0026] Based on the connecting flight query request, candidate query results are obtained. The connecting flight query request includes the origin and destination to be queried. The candidate query results include at least one candidate connecting flight information and a corresponding timestamp. The candidate connecting flight information satisfies the following conditions: the origin is the origin to be queried and the destination is the destination to be queried.
[0027] The update times of the direct flights for each segment of the candidate connecting flight information and the update times of each connecting flight rule are obtained.
[0028] Determine whether each of the candidate connecting flight information meets the preset query conditions, which include that the timestamp is later than the update time of all direct flight information and later than the update time of all connecting flight rules;
[0029] If satisfied, the candidate query result is taken as the connecting flight query result that satisfies the connecting flight query request.
[0030] A device for acquiring connecting flight information, comprising:
[0031] The update information acquisition unit is configured to acquire target update information, which includes flight information update items for the target direct flight.
[0032] The target connecting flight acquisition unit is configured to acquire target connecting flight information related to the target update information from a pre-built connecting flight information database, wherein the connecting flight information database includes multiple connecting flight information entries.
[0033] The update result acquisition unit is configured to update the target connecting flight information based on the target update information, and obtain the update result of the target connecting flight information;
[0034] The information update unit is configured to update the connecting flight information database based on the update results of each of the target connecting flight information.
[0035] A device for acquiring connecting flight information includes: a memory and a processor;
[0036] The memory is configured to store a program.
[0037] The processor is configured to execute the program to implement each step of the method for obtaining connecting flight information.
[0038] A readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a method for obtaining connecting flight information.
[0039] As can be seen from the above technical solutions, the method, apparatus, device, and readable storage medium for obtaining connecting flight information provided in this application embodiment obtain target update information, that is, obtain flight information update items of target direct flights, and obtain target connecting flight information related to the target update information from a pre-built connecting flight information database. Based on the target update information, the target connecting flight information is updated to obtain the update result of the target connecting flight information. The connecting flight information database is then updated based on the update results of each target connecting flight information. This achieves the update of the connecting flight information database when the flight information of direct flights or connecting rules are updated, by updating the connecting flight information related to the update item of the target direct flight based on the flight information update item. Compared with the method of updating the entire connecting flight information database, this method only updates the connecting flight information affected by the update item, improving the efficiency of connecting flight information updates and reducing the update scope of the connecting flight information database. When obtaining connecting flight information from the database, it ensures both the accuracy and richness of the connecting flight information while reducing the response time for obtaining connecting flight information. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 is a schematic diagram of the structure of an information query system provided in an embodiment of this application;
[0042] Figure 2 is a flowchart illustrating a method for obtaining connecting flight information provided in an embodiment of this application;
[0043] Figure 3 is a flowchart illustrating a specific implementation method for obtaining connecting flight information provided in this application embodiment;
[0044] Figure 4a is a schematic diagram of flight information for a direct flight provided in an embodiment of this application;
[0045] Figure 4b is a schematic diagram of connecting flight information provided in an embodiment of this application;
[0046] Figure 5 is a schematic diagram of a connecting flight information acquisition device provided in an embodiment of this application;
[0047] Figure 6 is a schematic diagram of the structure of a connecting flight information acquisition device provided in an embodiment of this application. Detailed Implementation
[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0049] This application provides a method for obtaining connecting flights, applicable to, but not limited to, scenarios where users query connecting flights through a client, and the server receives the user's query request, obtains the corresponding query results, and returns them to the client. Passengers can query connecting flights on airline official websites or OTA websites or receive query results returned by the server. The query request includes at least departure point, destination, and date information. The query results include connecting flight information, which includes multiple direct flights arranged in sequence and their corresponding flight information. The departure point of the first direct flight is the minimum departure point included in the query request, the destination of the last direct flight is the minimum destination included in the query request, and the departure point of the intermediate direct flights is the destination of the preceding direct flight. The departure points of each direct flight are referred to as the transit points of the connecting flight.
[0050] It should be noted that in existing query methods, the server generates and returns query results that satisfy the query request based on the latest direct flight information. Due to the large number of direct flights and airline data, the response time for each query is long and the computational resources are consumed, making it difficult to achieve efficient querying of connecting flight information.
[0051] Figure 1 is a schematic diagram of the structure of an information query system provided in an embodiment of this application. As shown in Figure 1, the information query system includes a connecting flight query system, a direct flight management system, a connecting flight rule management system, an information receiving system, a connecting flight update calculation system, a connecting flight overall calculation system, and a connecting flight data cluster.
[0052] In this embodiment, the direct flight management system is used to create, cancel, and update flight information for direct flights, and to publish the flight information for direct flights to the public.
[0053] The inter-trip rule management system is used to create, cancel, and update inter-trip rules, and to publish these rules to the public.
[0054] The information receiving system is used to receive flight information and connecting flight rules for direct flights, and to perform format legality verification and parsing of the information, storing the parsing results in the connecting flight data cluster.
[0055] For example, AA Airlines publishes direct flight AA001 from Harbin to Beijing through its direct flight management system, and BB Airlines publishes direct flight BB001 from Beijing to Guangzhou through the same system. The information receiving system receives the direct flight information for AA001 and BB001 and stores this information in the direct flight information database. It should be noted that the direct flight information includes the airline, flight number, departure date, arrival date, schedule, departure airport, arrival airport, departure time, arrival time, flight type, and cabin class.
[0056] American Airlines (AA) publishes its first connecting flight rule through its connecting flight rule management system. This first connecting flight rule includes: destination origin, destination, transit point rules, transit time rules, and airline partner rules. The information receiving system receives the first connecting flight rule and stores it in the connecting flight rule database. Taking Harbin as the destination origin and Guangzhou as an example, the transit point rule includes Beijing as the destination transit point, and the transit time rule includes 90 minutes, meaning that connecting flights with a connection time exceeding 90 minutes are allowed to be connected. Airline partners include AA and BB.
[0057] The connecting flight data cluster includes a direct flight information database, a connecting flight rules database, and a connecting flight information database. The direct flight information database stores flight information for direct flights, the connecting flight rules database stores connecting flight rules, and the connecting flight information database stores connecting flight information.
[0058] It should be noted that the specific methods for storing direct flight information, connecting rules, and connecting flight information in the connecting flight data cluster can be found in existing technologies.
[0059] The connecting flight calculation system reads all direct flight information and connecting rules stored in the connecting flight data cluster. Based on each preset connecting object, it calculates connecting flight data, generates connecting flight information, and stores this information in the connecting flight information database. Connecting objects include preset origins and preset destinations. For example, if the preset origin is Beijing and the preset destination is Los Angeles, the connecting flight calculation system calculates at least one connecting flight from Beijing to Los Angeles based on direct flight information and connecting rules, and stores it in the connecting flight information database. The connecting flight information includes flight information for multiple sequentially arranged direct flights. For example, if the connecting object includes Harbin-Guangzhou, the connecting flight information includes the flight information for the first direct flight AA001 and the second direct flight BB001.
[0060] In this embodiment, the connecting flight overall calculation system performs overall calculations on connecting flight information with different origin and destination combinations based on the full amount of direct flight information and connecting rules according to a preset update cycle, in order to update the connecting flight information database. However, the overall calculation of connecting flights consumes a lot of computing resources, the updating efficiency of connecting flight information is low, and the update cycle is usually long, making it difficult to guarantee the real-time performance and accuracy of the data in the connecting flight information database.
[0061] To improve the real-time performance and accuracy of connecting flight information, the connecting flight update calculation system is used to obtain updated information on direct flight information and connecting flight rules. Based on the updated information on direct flight information and connecting flight rules, the system updates the target connecting flight information in the connecting flight information database. The target connecting flight information is the connecting flight information that is related to at least one of the updated information on direct flight information or updated information on connecting flight rules.
[0062] In the scenario of querying connecting flight information, the connecting flight query system is used to receive and parse query requests sent by query clients (including but not limited to airline clients or OTAs), retrieve query results from the connecting flight information database, and return them to the query client. For example, if the query request includes a departure point in Beijing and a destination in Los Angeles, the connecting flight query system will retrieve all connecting flight information originating in Beijing and destined for Los Angeles from the connecting flight information database and return it to the query client.
[0063] This application provides a method for obtaining connecting flight information, which is applied to a connecting flight update calculation system. Figure 2 is a flowchart illustrating the method for obtaining connecting flight information provided in this application. As shown in Figure 2, the method includes:
[0064] S201, Obtain target update information.
[0065] In this embodiment, the target update information includes flight information update items for the target direct flight.
[0066] S202. Obtain target connecting flight information related to target update information from a pre-built connecting flight information database.
[0067] In this embodiment, the connecting flight information database includes multiple connecting flight information entries. The connecting flight information includes flight information for direct flights corresponding to multiple flight segments. The flight information for any direct flight segment includes at least the flight number, departure point, destination departure time, and arrival time.
[0068] In this embodiment, the connecting flight information related to the target update information must at least satisfy the requirement that there is a target direct flight information corresponding to a flight segment, or be constructed based on one of the target connecting flight rules.
[0069] S203. Update the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information.
[0070] S204. Update the connecting flight information database based on the update results of the connecting flight information of each target.
[0071] As can be seen from the above technical solution, the method for obtaining connecting flight information provided in this application obtains target update information, that is, obtains the flight information update items of the target direct flight, and obtains target connecting flight information related to the target update information from a pre-built connecting flight information database. Based on the target update information, the target connecting flight information is updated to obtain the update result of the target connecting flight information. The connecting flight information database is then updated based on the update results of each target connecting flight information. This achieves the update of the connecting flight information database when the flight information of the direct flight or the connecting rules are updated, by updating the connecting flight information related to the update item based on the flight information update item of the target direct flight. Compared with the method of updating the entire connecting flight information database, this method only updates the connecting flight information affected by the update item, improving the efficiency of connecting flight information updates and reducing the update scope of the connecting flight information database. When obtaining connecting flight information from the database, it ensures both the accuracy and richness of the connecting flight information and reduces the response time for obtaining connecting flight information.
[0072] Figure 3 illustrates the detailed implementation flow of a method for obtaining connecting flight information provided in an embodiment of this application. As shown in Figure 3, the method specifically includes:
[0073] S301, Obtain target update information.
[0074] In this embodiment, the target update information includes flight information update items for the target direct flight and rule update items for the target connecting flight rules.
[0075] In this embodiment, the target direct flight is the direct flight whose information has been updated, and the target connecting flight rule is the connecting flight rule whose information has been updated. The flight information update item of the target direct flight includes flight information items related to the connecting flight rule item. The flight information items related to the connecting flight rule item are pre-configured, including but not limited to origin, departure time, arrival time, destination, and boarding station.
[0076] S302. Obtain connecting flight information for at least one direct flight segment from the pre-built connecting flight information database, and use it as the first connecting flight information.
[0077] In this embodiment, the connecting flight information database includes multiple connecting flight information entries. The connecting flight information includes flight information for direct flights across multiple segments. The flight information for any segment of a direct flight includes at least the flight number, departure point, destination departure time, and arrival time.
[0078] If at least one segment of the first connecting flight information is a direct flight to the target direct flight, then when the target direct flight is updated, the real-time information of the first connecting flight information is insufficient and needs to be updated.
[0079] In this embodiment, the connecting flight information database is pre-built by the overall connecting flight calculation system based on the full data of the direct flight information database and the connecting rule database. Optionally, the overall connecting flight calculation system calculates the connecting flight data based on each preset connecting object to generate the connecting flight information of each connecting object. For any connecting object, the method by which the overall connecting flight calculation system constructs the connecting flight information of the connecting object includes:
[0080] A1. Iterate through the direct flight information database to retrieve all first direct flights departing from the preset origin and all second direct flights with the preset destination as their final destination. If the destination of the first direct flight and the origin of the second direct flight are the same, then the destination of the first direct flight is used as the transit point for the connecting flight, generating candidate connecting flight information, which includes the flight information of the first direct flight and the flight information of the second direct flight.
[0081] For example, for a connecting flight from Harbin HRB to Guangzhou CAN, the first direct flight is AA001, a direct flight from Harbin HRB to Beijing PEK, published by AA Airlines through the direct flight management system, and the second direct flight is BB001, a direct flight from Beijing PEK to Guangzhou CAN, published by BB Airlines through the direct flight management system. Figure 4a illustrates a storage format for the direct flight information of AA001 and BB001. For specific flight information, please refer to the prior art.
[0082] Figure 4b illustrates a schematic diagram of candidate connecting flight information. As shown in Figure 4b, candidate connecting flight information Y includes two segments: the first segment corresponds to AA001 and the second segment corresponds to BB001. The candidate connecting flight information includes information items such as departure date, arrival date, flight schedule, departure airport, arrival airport, departure time, and arrival time.
[0083] A2. Obtain the connecting rules corresponding to the candidate connecting flight information, verify whether the candidate connecting flight information meets the connecting rules, and if it does, store the candidate connecting flight information as connecting flight information in the connecting flight information database.
[0084] In this embodiment, the connecting rules corresponding to the candidate connecting flight information include segment rules and transfer rules. For example, the segment rules include that the first airline and the second airline have a cooperative relationship, where the first airline is the airline of the first direct flight and the second direct flight. The transfer rules include that the connection time of the transfer station must exceed 90 minutes.
[0085] Continuing the previous example, taking the first connecting flight rule as the Harbin to Guangzhou connecting flight rule, the transfer rule is: when the transfer point is Beijing, the transfer time must not exceed 90 minutes. This means that connecting flights are allowed if the connection time between two direct flights exceeds 90 minutes. The segment rule is: the airline partners are AA Airlines and BB Airlines. Specifically, the intersection of the dates {20230204, 20231207} and {20230621, 20231023} of flights AA001 and BB001 is verified and calculated to be {20230621, 20221223}, and the operating dates are {1, 2, 3, 4, 5, 6, 7}. The connection time of flights AA001 and BB001 is verified to meet the transfer connection time requirements of PEK Airport. The connection time of AA001 and BB001 is 1 hour and 35 minutes, which meets the requirement that the connection time at PEK Airport must be greater than 90 minutes. AA and BB have a partnership.
[0086] It should be noted that the segment rules between each flight segment and the transfer rules at the transit station are pre-configured.
[0087] S303. Verify whether the information of the first connecting flight meets the connecting rules of the first connecting flight information.
[0088] S304. If the first connecting flight information does not meet the connecting rules for the first connecting flight information, then delete the first connecting flight information from the connecting flight information database.
[0089] S305. Obtain the second connecting flight information from the connecting flight information database, where at least one segment of the direct flight is the target direct flight, and use the connecting object corresponding to the second connecting flight information as the connecting object to be updated.
[0090] In this embodiment, if at least one segment of the connecting flight information is a direct flight of the target direct flight, then the connecting flight information is used as the second connecting flight information. A direct flight refers to a direct flight with the same origin and destination.
[0091] If at least one segment of the second connecting flight information has the same origin and destination as the target direct flight, the connecting flight information of the connecting object corresponding to the second connecting flight information needs to be updated because the connecting flight information of the target direct flight is not real-time enough when the flight information is updated.
[0092] S306. Update the connecting flight information database for connecting flight objects that need to be updated.
[0093] In this embodiment, the method for updating the connecting flight information of the connecting flight object to be updated in the connecting flight information database includes:
[0094] Replace the same-flight flights of the target direct flight in the second connecting flight information with the target direct flight to obtain candidate connecting flight information, and verify whether the candidate connecting flight information meets the connecting rules of the candidate connecting flight information. If it does, add the candidate connecting flight information as the connecting flight information of the connecting flight object to be updated to the connecting flight information database. Alternatively, based on the full connecting rules and the full direct flight information, re-obtain the connecting flight information of the connecting flight object to be updated, and use the re-obtained connecting flight information of the connecting flight object to be updated to replace the connecting flight information of the connecting flight object to be updated in the connecting flight information database.
[0095] S307. Obtain connecting flight information related to the rule update item of the target connecting flight rule from the pre-built connecting flight information database, and use it as the third connecting flight information.
[0096] In this embodiment, if the connecting flight information is constructed based on the target connecting flight rule, then the connecting flight information is used as the third connecting flight information.
[0097] Understandably, if the third connecting flight information is constructed based on the target connecting flight rules, then when the target connecting flight rules are updated, the real-time performance of the third connecting flight information is insufficient and it needs to be updated.
[0098] S308. Verify whether the third connecting flight information meets the connecting rules for third connecting flight information.
[0099] In this embodiment, the target connecting rule is the connecting rule for the third connecting flight information.
[0100] S309. If the third connecting flight information does not meet the connecting rules for third connecting flight information, then delete the third connecting flight information from the connecting flight information database.
[0101] S310. In response to receiving a connecting flight query request, retrieve the connecting flight query results that satisfy the connecting flight query request from the connecting flight information database.
[0102] In this embodiment, the connecting flight query request includes at least the connecting flight object to be queried, which includes the origin and destination to be queried. The connecting flight query result includes information on all connecting flights whose origin is the origin to be queried and whose destination is the destination to be queried.
[0103] As can be seen from the above technical solution, the method for obtaining connecting flight information provided in this application adopts a strategy combining preprocessing and real-time updating to construct and update a connecting flight information database to obtain connecting flight information. The preprocessing result is the initial connecting flight information in the database. The database uses high-speed caching technology to cache both the initial and updated connecting flight information, ensuring the efficiency of system queries. Simultaneously, since the connecting flight information database is pre-built for full querying, directly querying connecting flight information from the database improves the response speed of query requests. Because flight information and connecting rules change in real time, by obtaining the target update item to locate the target connecting flight information and updating the target connecting flight information based on the target update item, the real-time nature and accuracy of the connecting flight information database are ensured, thereby guaranteeing the accuracy of the connecting flight information query results. Furthermore, the update items are analyzed by identifying influencing factors, and only updates of information items related to the connecting flight rules (target update items) are identified. The connecting flight information database is updated based on the target update items and rule update items, which greatly reduces the scope of connecting flight information identification and updating.
[0104] For example, when direct flight information or connecting flight rules change, the system analyzes the target update information to determine whether connecting flight information needs to be updated. When a cancellation message for flight AA001 is received, the HRB-CAN connecting flight information Y is triggered. Due to the cancellation of AA001, connecting flight information Y for AA001 is deleted. When the arrival time of flight AA001 changes to 15:55, the change in arrival time triggers an update to the HRB-CAN connecting flight information. After the update, the connection time at the transit station for connecting flight information Y no longer meets the 90-minute connection rule requirement and will be deleted. When the meal information for flight AA001 changes, since meal information is not a target update item, it will not trigger a connecting flight update. When connecting flight rules change, for example, if the airline modifies the connection time requirement for the PEK transit to 120 minutes, it will trigger an update to all connecting flight information built based on that connecting flight rule. After the update, connecting flight information Y will be deleted because it no longer meets the connecting flight rule.
[0105] It is evident that by identifying the target update item, redundant calculations in updating the connecting flight information database caused by updating information items (meal information) unrelated to the construction of connecting flight information can be avoided, thereby reducing the update scope and improving update efficiency.
[0106] It should be noted that S301 to S310 above are one optional specific implementation process of this application. The method for obtaining connecting flight information provided by this application also includes other specific implementation processes.
[0107] For example, S302 is an optional implementation method for a connecting flight overall calculation system that pre-builds a connecting flight information database based on full data from a direct flight information database and a connecting flight rule database. Other optional methods include building connecting flight information based on transit stations and obtaining the connecting flight objects corresponding to the connecting flight information. For specific methods of building the connecting flight information database, please refer to existing technologies.
[0108] For example, this embodiment does not limit the execution order between the steps. For instance, S303-S304, S305-S306, and S307-S309 are optional methods for updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information. This embodiment does not limit the execution order of S303-S304, S305-S306, and S307-S309.
[0109] For example, another optional method for responding to a connecting flight query request by retrieving connecting flight query results from the connecting flight information database that satisfy the connecting flight query request includes:
[0110] B1. Obtain a request to query connecting flights.
[0111] B2. Based on the connecting flight query request, obtain candidate query results. The candidate query results include at least one candidate connecting flight information and the corresponding timestamp. The candidate connecting flight information satisfies the following conditions: the origin is the origin to be queried and the destination is the destination to be queried.
[0112] B3. Obtain the update time of direct flight information for each segment of the candidate connecting flight information.
[0113] B4. Obtain the update time of each connection rule.
[0114] B5. Determine whether the candidate connecting flight information meets the preset query conditions. The query conditions include that the timestamp is later than the update time of all direct flight information and later than the update time of all connecting flight rules.
[0115] B6. If satisfied, the candidate query results will be used as the connecting flight query results that satisfy the connecting flight query request.
[0116] B7. If not satisfied, retrieve the flight information update item for direct flights whose update time is later than the timestamp, or the rule update item for connecting flight rules.
[0117] B8. Execute the update of target connecting flight information based on target update information, obtain the update results of target connecting flight information, update the connecting flight information database based on the update results of each target connecting flight information, and then obtain the connecting flight query results that meet the connecting flight query request from the connecting flight information database.
[0118] As can be seen, this application verifies whether the candidate query results meet the real-time requirements by verifying the timestamp. If they do not meet the requirements, it triggers the updating of the target connecting flight information based on the target update information, obtains the updated results of the target connecting flight information, and updates the connecting flight information database based on the updated results of each target connecting flight information, thereby further improving the real-time performance and accuracy of the query results.
[0119] Figure 5 shows a schematic diagram of a connecting flight information acquisition device provided in an embodiment of this application. As shown in Figure 5, the device may include:
[0120] The update information acquisition unit 501 is configured to acquire target update information, which includes flight information update items for the target direct flight.
[0121] The target connecting flight acquisition unit 502 is configured to acquire target connecting flight information related to the target update information from a pre-built connecting flight information database, wherein the connecting flight information database includes multiple connecting flight information entries.
[0122] The update result acquisition unit 503 is configured to update the target connecting flight information based on the target update information to obtain the update result of the target connecting flight information;
[0123] The information update unit 504 is configured to update the connecting flight information database based on the update results of each of the target connecting flight information.
[0124] Optionally, the target connecting flight information includes first connecting flight information. The target connecting flight acquisition unit is specifically used to: acquire connecting flight information from the connecting flight information database for at least one segment of direct flight as the target direct flight, and use it as the first connecting flight information.
[0125] Optionally, the update result acquisition unit is specifically used for: acquiring the connecting rules of the first connecting flight information; verifying whether the first connecting flight information meets the connecting rules of the first connecting flight information; if it does not meet the rules, acquiring the update result of the first connecting flight information to indicate that the first connecting flight information should be deleted; if it meets the rules, acquiring the update result of the first connecting flight information to indicate that the first connecting flight information does not need to be updated.
[0126] Optionally, the connecting flight information update unit is configured to: obtain second connecting flight information from the connecting flight information database, wherein at least one segment of the direct flight is a connecting flight with the target direct flight; the connecting flight refers to a direct flight with the same origin and destination; take the connecting object corresponding to the second connecting flight information as the connecting object to be updated; and update the connecting flight information of the connecting object to be updated in the connecting flight information database.
[0127] Optionally, the target update information also includes rule update items of the target connecting flight rules, and the update result acquisition unit is specifically used to: obtain connecting flight information related to the rule update items of the target connecting flight rules from the connecting flight information database, as the third connecting flight information; the target connecting flight information also includes the target connecting flight information.
[0128] Optionally, the update result acquisition unit is further configured to: update the target connecting flight information based on the target update information to obtain the update result of the target connecting flight information, and further include:
[0129] Verify whether the third connecting flight information meets the target connecting flight rules. If it does not meet the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information should be deleted. If it meets the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information does not need to be updated.
[0130] Optionally, the device for obtaining connecting flight information further includes a query unit, configured as follows:
[0131] Based on the connecting flight query request, candidate query results are obtained. The connecting flight query request includes the origin and destination to be queried. The candidate query results include at least one candidate connecting flight information and its corresponding timestamp. The candidate connecting flight information satisfies the following conditions: the origin is the origin to be queried and the destination is the destination to be queried. The update times of the direct flights for each segment of the candidate connecting flight information and the update times of each connecting rule are obtained. It is determined whether each candidate connecting flight information meets the preset query conditions, which include that the timestamp is later than the update times of all direct flights and later than the update times of all connecting rules. If the conditions are met, the candidate query results are used as the connecting flight query results that satisfy the connecting flight query request.
[0132] Figure 6 shows a schematic diagram of a connecting flight information acquisition device provided in an embodiment of this application. The device may include: at least one processor 601, at least one communication interface 602, at least one memory 603, and at least one communication bus 604.
[0133] In this embodiment of the application, the number of processor 601, communication interface 602, memory 603 and communication bus 604 is at least one, and processor 601, communication interface 602 and memory 603 communicate with each other through communication bus 604.
[0134] The processor 601 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0135] The memory 603 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;
[0136] The memory stores a program, and the processor can execute the program stored in the memory to implement the various steps of the method for obtaining connecting flight information provided in this application embodiment, as follows:
[0137] A method for obtaining connecting flight information includes:
[0138] Obtain target update information, which includes flight information update items for the target direct flight;
[0139] Obtain target connecting flight information related to the target update information from a pre-built connecting flight information database, wherein the connecting flight information database includes multiple connecting flight information entries;
[0140] The target connecting flight information is updated based on the target update information to obtain the updated result of the target connecting flight information;
[0141] The connecting flight information database is updated based on the update results of each of the target connecting flight information.
[0142] Optionally, the target connecting flight information includes first connecting flight information, and obtaining the target connecting flight information related to the target update information from a pre-built connecting flight information database includes:
[0143] From the connecting flight information database, obtain connecting flight information for at least one segment of direct flight that is the target direct flight, and use this as the first connecting flight information.
[0144] Optionally, updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information includes:
[0145] Connecting rules for obtaining the first connecting flight information;
[0146] Verify whether the first connecting flight information meets the connecting rules of the first connecting flight information. If it does not meet the rules, obtain the update result of the first connecting flight information to indicate that the first connecting flight information should be deleted. If it meets the rules, obtain the update result of the first connecting flight information to indicate that the first connecting flight information does not need to be updated.
[0147] Optionally, methods for obtaining connecting flight information may also include:
[0148] From the connecting flight information database, obtain the second connecting flight information of at least one segment of direct flight that is the same as the target direct flight; the same connecting flight refers to a direct flight with the same origin and destination;
[0149] The connecting flight object corresponding to the second connecting flight information is taken as the connecting flight object to be updated;
[0150] Update the connecting flight information of the connecting flight object to be updated in the connecting flight information database.
[0151] Optionally, the target update information also includes rule update items for the target connecting flight rules, and the step of updating the target connecting flight information based on the target update information to obtain the update result of the target connecting flight information further includes:
[0152] From the connecting flight information database, obtain connecting flight information related to the rule update item of the target connecting flight rule, as the third connecting flight information; the target connecting flight information also includes the target connecting flight information.
[0153] Optionally, updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information further includes:
[0154] Verify whether the third connecting flight information meets the target connecting flight rules. If it does not meet the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information should be deleted. If it meets the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information does not need to be updated.
[0155] Alternatively, methods for obtaining connecting flight information may also include:
[0156] Based on the connecting flight query request, candidate query results are obtained. The connecting flight query request includes the origin and destination to be queried. The candidate query results include at least one candidate connecting flight information and a corresponding timestamp. The candidate connecting flight information satisfies the following conditions: the origin is the origin to be queried and the destination is the destination to be queried.
[0157] The update times of the direct flights for each segment of the candidate connecting flight information and the update times of each connecting flight rule are obtained.
[0158] Determine whether each of the candidate connecting flight information meets the preset query conditions, which include that the timestamp is later than the update time of all direct flight information and later than the update time of all connecting flight rules;
[0159] If satisfied, the candidate query result is taken as the connecting flight query result that satisfies the connecting flight query request.
[0160] This application embodiment also provides a readable storage medium that can store a computer program suitable for processor execution. When the computer program is executed by the processor, it implements the various steps of the connecting flight information acquisition method provided in this application embodiment, as follows:
[0161] A method for obtaining connecting flight information includes:
[0162] Obtain target update information, which includes flight information update items for the target direct flight;
[0163] Obtain target connecting flight information related to the target update information from a pre-built connecting flight information database, wherein the connecting flight information database includes multiple connecting flight information entries;
[0164] The target connecting flight information is updated based on the target update information to obtain the updated result of the target connecting flight information;
[0165] The connecting flight information database is updated based on the update results of each of the target connecting flight information.
[0166] Optionally, the target connecting flight information includes first connecting flight information, and obtaining the target connecting flight information related to the target update information from a pre-built connecting flight information database includes:
[0167] From the connecting flight information database, obtain connecting flight information for at least one segment of direct flight that is the target direct flight, and use this as the first connecting flight information.
[0168] Optionally, updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information includes:
[0169] Connecting rules for obtaining the first connecting flight information;
[0170] Verify whether the first connecting flight information meets the connecting rules of the first connecting flight information. If it does not meet the rules, obtain the update result of the first connecting flight information to indicate that the first connecting flight information should be deleted. If it meets the rules, obtain the update result of the first connecting flight information to indicate that the first connecting flight information does not need to be updated.
[0171] Optionally, methods for obtaining connecting flight information may also include:
[0172] From the connecting flight information database, obtain the second connecting flight information of at least one segment of direct flight that is the same as the target direct flight; the same connecting flight refers to a direct flight with the same origin and destination;
[0173] The connecting flight object corresponding to the second connecting flight information is taken as the connecting flight object to be updated;
[0174] Update the connecting flight information of the connecting flight object to be updated in the connecting flight information database.
[0175] Optionally, the target update information also includes rule update items for the target connecting flight rules, and the step of updating the target connecting flight information based on the target update information to obtain the update result of the target connecting flight information further includes:
[0176] From the connecting flight information database, obtain connecting flight information related to the rule update item of the target connecting flight rule, as the third connecting flight information; the target connecting flight information also includes the target connecting flight information.
[0177] Optionally, updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information further includes:
[0178] Verify whether the third connecting flight information meets the target connecting flight rules. If it does not meet the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information should be deleted. If it meets the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information does not need to be updated.
[0179] Alternatively, methods for obtaining connecting flight information may also include:
[0180] Based on the connecting flight query request, candidate query results are obtained. The connecting flight query request includes the origin and destination to be queried. The candidate query results include at least one candidate connecting flight information and a corresponding timestamp. The candidate connecting flight information satisfies the following conditions: the origin is the origin to be queried and the destination is the destination to be queried.
[0181] The update times of the direct flights for each segment of the candidate connecting flight information and the update times of each connecting flight rule are obtained.
[0182] Determine whether each of the candidate connecting flight information meets the preset query conditions, which include that the timestamp is later than the update time of all direct flight information and later than the update time of all connecting flight rules;
[0183] If satisfied, the candidate query result is taken as the connecting flight query result that satisfies the connecting flight query request.
[0184] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0185] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0186] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein. Industrial applicability
[0187] The method, apparatus, equipment, and readable storage medium for obtaining connecting flight information disclosed herein include: obtaining target update information, i.e., obtaining flight information update items for target direct flights; obtaining target connecting flight information related to the target update information from a pre-built connecting flight information database; updating the target connecting flight information based on the target update information to obtain the update results of the target connecting flight information; and updating the connecting flight information database based on the update results of each target connecting flight information. This achieves the updating of the connecting flight information database when the flight information of direct flights or connecting rules are updated, by updating the connecting flight information related to the update items of the target direct flights. Compared with the method of updating the entire connecting flight information database, this method only updates the connecting flight information affected by the update items, improving the efficiency of connecting flight information updates and reducing the update scope of the connecting flight information database. When obtaining connecting flight information from the database, it ensures both the accuracy and richness of the connecting flight information while reducing the response time for obtaining connecting flight information.
Claims
1. A method for obtaining connecting flight information, comprising: Obtain target update information, which includes flight information update items for the target direct flight; Obtain target connecting flight information related to the target update information from a pre-built connecting flight information database, wherein the connecting flight information database includes multiple connecting flight information entries; The target connecting flight information is updated based on the target update information to obtain the updated result of the target connecting flight information; The connecting flight information database is updated based on the update results of each of the target connecting flight information.
2. The method for obtaining connecting flight information according to claim 1, wherein, The target connecting flight information includes first connecting flight information, and obtaining the target connecting flight information related to the target update information from a pre-built connecting flight information database includes: From the connecting flight information database, obtain connecting flight information for at least one segment of direct flight that is the target direct flight, and use this as the first connecting flight information.
3. The method for obtaining connecting flight information according to claim 2, wherein, The step of updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information includes: Connecting rules for obtaining the first connecting flight information; Verify whether the first connecting flight information meets the connecting rules of the first connecting flight information. If it does not meet the rules, obtain the update result of the first connecting flight information to indicate that the first connecting flight information should be deleted. If it meets the rules, obtain the update result of the first connecting flight information to indicate that the first connecting flight information does not need to be updated.
4. The method for obtaining connecting flight information according to claim 2, wherein, The method for obtaining connecting flight information also includes: From the connecting flight information database, obtain the second connecting flight information of at least one segment of direct flight that is the same as the target direct flight; the same connecting flight refers to a direct flight with the same origin and destination; The connecting flight object corresponding to the second connecting flight information is designated as the connecting flight object to be updated; Update the connecting flight information of the connecting flight object to be updated in the connecting flight information database.
5. The method for obtaining connecting flight information according to claim 3, wherein, The target update information also includes rule update items for the target connecting flight rules. The step of updating the target connecting flight information based on the target update information to obtain the update result of the target connecting flight information further includes: From the connecting flight information database, obtain connecting flight information related to the rule update item of the target connecting flight rule, as the third connecting flight information; the target connecting flight information also includes the target connecting flight information.
6. The method for obtaining connecting flight information according to claim 5, wherein, The step of updating the target connecting flight information based on the target update information to obtain the updated result of the target connecting flight information further includes: Verify whether the third connecting flight information meets the target connecting flight rules. If it does not meet the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information should be deleted. If it meets the rules, obtain the update result of the third connecting flight information to indicate that the third connecting flight information does not need to be updated.
7. The method for obtaining connecting flight information according to any one of claims 1 to 6, wherein, The method for obtaining connecting flight information also includes: Based on the connecting flight query request, candidate query results are obtained. The connecting flight query request includes the origin and destination to be queried. The candidate query results include at least one candidate connecting flight information and a corresponding timestamp. The candidate connecting flight information satisfies the following conditions: the origin is the origin to be queried and the destination is the destination to be queried. The update times of the direct flights for each segment of the candidate connecting flight information and the update times of each connecting flight rule are obtained. Determine whether each of the candidate connecting flight information meets the preset query conditions, which include that the timestamp is later than the update time of all direct flight information and later than the update time of all connecting flight rules; If satisfied, the candidate query result is taken as the connecting flight query result that satisfies the connecting flight query request.
8. A device for acquiring connecting flight information, comprising: The update information acquisition unit is configured to acquire target update information, which includes flight information update items for the target direct flight. The target connecting flight acquisition unit is configured to acquire target connecting flight information related to the target update information from a pre-built connecting flight information database, wherein the connecting flight information database includes multiple connecting flight information entries. The update result acquisition unit is configured to update the target connecting flight information based on the target update information, and obtain the update result of the target connecting flight information; The information update unit is configured to update the connecting flight information database based on the update results of each of the target connecting flight information.
9. A device for acquiring connecting flight information, wherein, include: Memory and processor; The memory is configured to store a program. The processor is configured to execute the program to implement each step of the method for obtaining connecting flight information as described in any one of claims 1 to 7.
10. A readable storage medium having a computer program stored thereon, wherein, When the computer program is executed by the processor, it implements each step of the method for obtaining connecting flight information as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method for providing flight query service and flight query system
CN114385655A
Flight change processing method and device, electronic equipment and storage medium
CN117271542A
Cooperative management method for arrival flights of adjacent control units
CN117456778A
Interconnection flight information acquisition method, device and equipment and readable storage medium
CN118227638A
Network sharing of flight objects
US20210373872A1