Flight information determination method and device, storage medium and electronic equipment
By filtering and sorting flight information and determining priority rules based on query information, the problem of low accuracy caused by random methods in flight query is solved, and more accurate and efficient joint flight recommendations are achieved.
Patent Information
- Application Number
- CN202411363524.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-17
AI Technical Summary
During flight inquiry, random determination of the joint flight information leads to low accuracy, and the existing technology has failed to effectively solve this problem.
By obtaining target flight query information, filtering out multiple initial joint flight information from the flight database, determining priority rules based on whether the target airline information exists, calculating and sorting the flight information, and obtaining the target joint flight information to be recommended. .
It improves the accuracy and user experience of flight information, ensuring the accurate and efficient recommendation of connected flight information.
Smart Images

Figure CN119149600A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology and other related technical fields, and in particular to a method and device for determining flight information, a storage medium and an electronic device. Background Art
[0002] With the vigorous development of the civil aviation and tourism industries, air ticket search has become an essential pre-travel preparation. Passengers enter information such as the starting point, destination, and departure date to query, select, and book a trip that meets their requirements. In order to meet the diverse travel requirements of passengers, airlines set personalized connecting rules to flexibly configure various flights, forming a "wide and comprehensive" route network. However, personalized configuration of connecting rules will double the complexity of connecting flight information. When customers search for flights, the display order of connecting flights becomes a complex issue due to the high complexity of connecting flight information and the large differences in personalized agreements between airlines. In traditional methods, the display order of connecting flights and the flight information of connecting flights are usually determined randomly, resulting in poor user experience and low recommendation accuracy.
[0003] Regarding the problem that when the target object performs flight query in the related technology, the information of the connecting flight is determined in a random manner, resulting in a relatively low accuracy rate in determining the connecting flight information, and no effective solution has been proposed yet. Summary of the invention
[0004] The main purpose of the present application is to provide a method and device for determining flight information, a storage medium and an electronic device, so as to solve the problem that the related art uses a random method to determine the information of connecting flights when the target object makes a flight query, resulting in a relatively low accuracy rate in determining the connecting flight information.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for determining flight information is provided. The method comprises: obtaining target flight query information according to a flight query request triggered by a target object; determining multiple initial connecting flight information from multiple connecting flight information in a flight database according to the target flight query information; and calculating and sorting the multiple initial connecting flight information to obtain target connecting flight information to be recommended.
[0006] Further, calculating and sorting the multiple initial connecting flight information to obtain the target connecting flight information to be recommended includes: judging whether there is target airline information in the target flight query information to obtain a judgment result, wherein the probability that the target object takes the target airline is greater than a first preset threshold; determining a target rule based on the judgment result; and calculating and sorting the multiple initial connecting flight information based on the target rule to obtain the target connecting flight information to be recommended.
[0007] Further, based on the judgment result, determining the target rule includes: if the judgment result indicates that the target airline information does not exist in the target flight query information, determining the target rule to be the first rule, wherein the priority of the number of flight segments in the first rule is lower than the priority of the route type; if the judgment result indicates that the target airline information exists in the target flight query information, determining the target rule to be the second rule, wherein the priority of the number of flight segments in the second rule is higher than the priority of the route type.
[0008] Further, calculating and sorting the multiple initial connecting flight information according to the target rule to obtain the target connecting flight information to be recommended includes: acquiring multiple attribute information corresponding to each initial connecting flight information, wherein the multiple attribute information at least includes: route type, main flight segment, number of flight segments, number of airlines, departure time, arrival time and flight time; determining the corresponding priority weight value of each attribute information according to the target rule; calculating and sorting the multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended.
[0009] Further, calculating and sorting the multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended includes: calculating the multiple initial connecting flight information according to the priority weight value to obtain a priority result corresponding to each initial connecting flight information; sorting the multiple initial connecting flight information according to the priority result to obtain sorted multiple initial connecting flight information; and screening the sorted multiple initial connecting flight information according to a second preset threshold to obtain the target connecting flight information to be recommended.
[0010] Further, determining multiple initial connecting flight information from multiple connecting flight information in a flight database according to the target flight query information includes: parsing multiple connecting flight information in the flight database to obtain multiple first initial connecting flight information; verifying the multiple first initial connecting flight information to obtain multiple second initial connecting flight information; and determining the multiple initial connecting flight information from the multiple second initial connecting flight information according to the target flight query information.
[0011] Furthermore, after calculating and sorting the multiple initial connecting flight information to obtain the target connecting flight information to be recommended, the method also includes: feeding back the target connecting flight information to be recommended to the target object, and detecting whether a target instruction triggered by the target object is received, wherein the target instruction is used to indicate that the target object has not adopted the target connecting flight information to be recommended; if the target instruction is received, determining feedback information of the target object according to the target instruction; and adjusting the target connecting flight information to be recommended according to the feedback information.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a flight information determination device is provided. The device comprises: a first determination unit, configured to obtain target flight query information according to a flight query request triggered by a target object; a second determination unit, configured to determine a plurality of initial connecting flight information from a plurality of connecting flight information in a flight database according to the target flight query information; and a processing unit, configured to calculate and sort the plurality of initial connecting flight information to obtain the target connecting flight information to be recommended.
[0013] Furthermore, the processing unit includes: a judgment module, used to judge whether there is target airline information in the target flight query information, and obtain a judgment result, wherein the probability of the target object taking the target airline is greater than a first preset threshold; a first determination module, used to determine a target rule based on the judgment result; and a processing module, used to calculate and sort the multiple initial connecting flight information according to the target rule to obtain the target connecting flight information to be recommended.
[0014] Furthermore, the first determination module includes: a first determination submodule, used to determine that the target rule is a first rule if the judgment result indicates that the target airline information does not exist in the target flight query information, wherein the priority of the number of segments in the first rule is lower than the priority of the route type; and a second determination submodule, used to determine that the target rule is a second rule if the judgment result indicates that the target airline information exists in the target flight query information, wherein the priority of the number of segments in the second rule is higher than the priority of the route type.
[0015] Furthermore, the processing module includes: an acquisition submodule, used to acquire multiple attribute information corresponding to each initial connecting flight information, wherein the multiple attribute information at least includes: route type, main flight segment, number of flight segments, number of airlines, departure time, arrival time and flight time; a third determination submodule, used to determine the corresponding priority weight value of each attribute information according to the target rule; a processing submodule, used to calculate and sort the multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended.
[0016] Furthermore, the processing submodule includes: a calculation submodule, used to calculate the multiple initial connecting flight information according to the priority weight value to obtain the priority result corresponding to each initial connecting flight information; a sorting submodule, used to sort the multiple initial connecting flight information according to the priority result to obtain the sorted multiple initial connecting flight information; a screening submodule, used to screen the sorted multiple initial connecting flight information according to a second preset threshold to obtain the target connecting flight information to be recommended.
[0017] Further, the second determination unit includes: a parsing module, used to parse the multiple connecting flight information in the flight database to obtain multiple first initial connecting flight information; a verification module, used to verify the multiple first initial connecting flight information to obtain multiple second initial connecting flight information; a second determination module, used to determine the multiple initial connecting flight information from the multiple second initial connecting flight information according to the target flight query information.
[0018] Furthermore, the device also includes: a feedback unit, which is used to, after calculating and sorting the multiple initial connecting flight information to obtain the target connecting flight information to be recommended, feed back the target connecting flight information to be recommended to the target object, and detect whether a target instruction triggered by the target object is received, wherein the target instruction is used to indicate that the target object has not adopted the target connecting flight information to be recommended; a third determination unit, which is used to determine feedback information of the target object according to the target instruction if the target instruction is received; and an adjustment unit, which is used to adjust the target connecting flight information to be recommended according to the feedback information.
[0019] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the flight information determination methods described above.
[0020] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is also provided, the electronic device includes one or more processors and a memory, and the memory is used to store the one or more processors to implement the method for determining flight information described in any one of the above.
[0021] Through this application, the following steps are adopted: according to the flight query request triggered by the target object, the target flight query information is obtained; according to the target flight query information, multiple initial connecting flight information is determined from multiple connecting flight information in the flight database; multiple initial connecting flight information is calculated and sorted to obtain the target connecting flight information to be recommended. Through this application, the problem that the related art uses a random method to determine the connecting flight information when the target object performs flight query, resulting in a relatively low accuracy rate in determining the connecting flight information is solved. In this scheme, the flight query request issued by the target object is first processed to obtain the target flight query information. Then, multiple initial connecting flight information that meets the target flight query information is screened in the flight database. Finally, the multiple initial connecting flight information is calculated and sorted to determine the target connecting flight information to be recommended. By calculating and sorting multiple initial connecting flight information, the target connecting flight information displayed to the target object is determined, so that the recommendation of the target connecting flight information is more accurate and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] 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:
[0023] Figure 1 is a flowchart of a method for determining flight information provided in an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of a neutral display provided according to an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of an airline display provided according to an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of a method for determining flight information provided according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of a device for determining flight information provided according to an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] 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.
[0030] 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.
[0031] 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.
[0032] 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.
[0033] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for determining flight information according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0034] Step S101, obtaining target flight query information according to a flight query request triggered by a target object.
[0035] Optionally, the passenger (ie, the target object) sends a flight query request by logging into the airline's official website, airline application, Over-the-Air Technology (OTA), etc. After receiving the flight query request, the flight query request is parsed to obtain the target flight query information.
[0036] It should be noted that the target flight query information mainly includes, but is not limited to, departure information, destination information, travel date information, and preferred airline information.
[0037] Step S102: determining a plurality of initial connecting flight information from a plurality of connecting flight information in a flight database according to the target flight query information.
[0038] Optionally, the airline manages and publishes the connecting rules through the connecting rules management system, including but not limited to: transfer point rules, flight connection time rules, etc. The multiple initial connecting flight information is determined from the multiple connecting flight information in the flight database through the above content.
[0039] Step S103, calculating and sorting the multiple initial connecting flight information to obtain the target connecting flight information to be recommended.
[0040] Optionally, the information receiving system receives the direct flight information and the connecting flight rule information required for the connecting flight calculation, and completes the format legality verification and parsing of the data. Then, the connecting flight overall calculation system reads the direct flight information and the connecting flight rule information, and performs an overall calculation of multiple initial connecting flight information. Finally, the connecting flight data cluster stores the direct flight data, connecting flight rule data, and the calculated connecting flight result data (i.e., the target connecting flight information) released by each airline.
[0041] In summary, the flight query request issued by the target object is first processed to obtain the target flight query information. Then, multiple initial connecting flight information that meets the target flight query information is screened out in the flight database. Finally, the multiple initial connecting flight information is calculated and sorted to determine the target connecting flight information to be recommended. By calculating and sorting the multiple initial connecting flight information, the target connecting flight information displayed to the target object is determined, so that the recommendation of the target connecting flight information is more accurate and efficient.
[0042] Optionally, in the flight information determination method provided in the embodiment of the present application, calculating and sorting multiple initial connecting flight information to obtain target connecting flight information to be recommended includes: judging whether there is target airline information in the target flight query information, and obtaining a judgment result, wherein the probability that the target object takes the target airline is greater than a first preset threshold; determining a target rule based on the judgment result; and calculating and sorting multiple initial connecting flight information based on the target rule to obtain the target connecting flight information to be recommended.
[0043] In an optional embodiment, by judging whether the target object specifies an airline when performing a flight query (i.e., whether the target airline information exists in the target flight query information), the display rules (i.e., target rules) for recommending flight information to the target object are determined. The target rules include: neutral display and airline display.
[0044] It should be noted that neutral display does not specify a specific airline, and all connecting flights of various airlines that meet the itinerary rules are displayed in the front-end system according to fixed rules. Airline display means that the target object specifies a preferred airline when searching for connecting flights, and the connecting flights of the airline are sorted according to certain rules and displayed in the front-end system.
[0045] By judging whether the target airline information exists in the target flight query information, the target rule can be determined accurately and quickly.
[0046] Optionally, in the method for determining flight information provided in an embodiment of the present application, determining the target rule based on the judgment result includes: if the judgment result indicates that the target airline information does not exist in the target flight query information, then determining the target rule as the first rule, wherein the priority of the number of segments in the first rule is lower than the priority of the route type; if the judgment result indicates that the target airline information exists in the target flight query information, then determining the target rule as the second rule, wherein the priority of the number of segments in the second rule is higher than the priority of the route type.
[0047] In an optional embodiment, if the passenger does not specify an airline when querying flights, the connecting flights of each airline are sorted according to a unified and fixed rule and displayed to the passenger, that is, the target rule is determined to be a neutral display (i.e., the first rule); if the passenger specifies an airline when querying flights, and the airline has configured a personalized connecting sorting rule, the connecting flights are sorted according to the customized rule and displayed to the passenger, that is, the target rule is determined to be an airline display (i.e., the second rule); otherwise, the connecting flights are sorted according to the neutral display rule and displayed to the passenger.
[0048] It should be noted that there are seven levels of influencing factors that affect the target rules, namely: route type (TYPE), main segment (MAIN_SEG), number of segments (SEG_NUM), number of airlines (AIRLINE_NUM), departure time (DEP_TIME), arrival time (ARR_TIME) and flight time (FLIGHT_TIME).
[0049] Among them, route types (TYPE) are divided into 5 categories, namely: airline internal connection (ONLINE), code sharing (CODESHARE), airline combination (GROUP), airline alliance (ALLIANCE) and others (OTHER). These five types of routes are arranged in a specific order, as shown below:
[0050] Table 1 Order of route types
[0051] Ranking Route Type Example 1 ONLINE MU+MU 2 CODESHARE MU+*MU 3 GROUP MU+FM 4 ALLIANCE MU+AF 5 OTHER MU+3U
[0052] Among them, MU is China Eastern Airlines, FM is Shanghai Airlines, AF is Air France, 3U is Sichuan Airlines, and *MU is a code-sharing flight of China Eastern Airlines.
[0053] The main segment (MAIN_SEG) refers to the cross-border segment in a cross-border connecting flight. In the connecting flight display, the main segment is the connecting flight of the specified airline and has a higher priority at the main segment level. The number of segments (SEG_NUM) is a flight consisting of 2 to 5 segments. The connecting flight with fewer segments has a higher priority. The fewer the number of airlines (AIRLINE_NUM), the higher the priority. The departure time (DEP_TIME) is the local time when the connecting flight takes off from the departure point. The earlier the departure time, the higher the priority. The arrival time (ARR_TIME) is the local time when the connecting flight arrives at the destination. The earlier the arrival time, the higher the priority. The flight time (FLIGHT_TIME) is the difference between the Greenwich Mean Time of the arrival time and the departure time of the connecting flight. The shorter the flight time, the higher the priority.
[0054] It should be noted that airlines will reach various agreements to promote market operations. Among them, code-sharing agreements, airline combinations and airline alliances are involved in the sorting of connecting flights. These agreements, together with the priorities of connecting flights within airlines, constitute the sorting rules of route types.
[0055] By judging whether the target airline information exists in the target flight query information, it is possible to quickly determine whether the target rule is a neutral display or an airline display, and then accurately determine the hierarchical order of each influencing factor.
[0056] Optionally, in the flight information determination method provided in an embodiment of the present application, calculating and sorting multiple initial connecting flight information according to a target rule to obtain the target connecting flight information to be recommended includes: obtaining multiple attribute information corresponding to each initial connecting flight information, wherein the multiple attribute information includes at least: route type, main flight segment, number of flight segments, number of airlines, departure time, arrival time and flight time; determining the corresponding priority weight value of each attribute information according to the target rule; calculating and sorting multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended.
[0057] In an optional embodiment, Figure 2 is a schematic diagram of a neutral display provided according to an embodiment of the present application, Figure 3 is a schematic diagram of an airline display provided according to an embodiment of the present application. Figure 2 and Figure 3 As shown in the figure, if the target rule is neutral display, the hierarchical order of the influencing factors (i.e., the corresponding priority weight value of each attribute information) is: route type>main segment>number of segments>number of airlines>take-off time>flight time>arrival time. Among them, the priority of the route type level is: internal airline connection>code sharing>airline combination>airline alliance>other. The connecting flights of each airline are compared at each level. If the priority of the level is different, they are sorted; otherwise, the comparison and sorting of the next level are performed. If the priority of multiple connecting flights is the same, they are randomly sorted. If the target rule is airline display, taking a virtual airline (AA) as an example, the hierarchical order of the influencing factors of the airline is: number of segments>route type>main segment>number of airlines>take-off time>flight time>arrival time. Among them, the priority of the route type level is: internal airline connection>code sharing>airline combination>airline alliance>other. The airline display of AA airline is different from the neutral display. AA airline sets the number of segments as the first level. The connecting flights of AA airlines are compared at each level. If the priorities of the level are different, they are sorted; otherwise, the next level is compared and sorted. If the priorities of multiple connecting flights are the same, they are randomly sorted. Finally, multiple initial connecting flight information is calculated and sorted according to different priority weight values in the target rule to obtain the target connecting flight information to be recommended.
[0058] Through the hierarchical order of the influencing factors, multiple initial connecting flight information can be quickly calculated and sorted, and then the target connecting flight information to be recommended can be accurately obtained.
[0059] Optionally, in the flight information determination method provided in the embodiment of the present application, calculating and sorting multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended includes: calculating the multiple initial connecting flight information according to the priority weight value to obtain the priority result corresponding to each initial connecting flight information; sorting the multiple initial connecting flight information according to the priority result to obtain the sorted multiple initial connecting flight information; and screening the sorted multiple initial connecting flight information according to a second preset threshold to obtain the target connecting flight information to be recommended.
[0060] In an optional embodiment, take the route from Beijing to Los Angeles (BJS-LAX) on January 1, 2024 as an example: obtain the multi-segment flights from Beijing to Los Angeles published by multiple AA airlines in the flight database, and the target rule corresponding to the AA airline is displayed as an airline, and the specific content is shown in Table 2:
[0061] Table 2 Target rule examples
[0062]
[0063] The system combines multiple initial connecting flight information based on the connecting rules and transfer time published by the airline. The specific contents of the multiple initial connecting flight information are shown in Table 3:
[0064] Table 3 Detailed contents of multiple initial connecting flight information
[0065]
[0066] Among them, PEK is Beijing Capital International Airport, CAN is Guangzhou Baiyun Airport, PVG is Shanghai Pudong International Airport, and LAX is Los Angeles International Airport.
[0067] Compare 1 and 2. The main segment (MAIN_SEG), route type (TYPE), number of segments (SEG_NUM) and number of airlines (AIRLINE_NUM) of 1 and 2 are the same, so compare the time. The flight time (FLIGHT_TIME) of 2 is shorter than the flight time (FLIGHT_TIME) of 1. Since the priority order in the target rule of AA airline is: flight time (FLIGHT_TIME)> departure time (DEP_TIME)> arrival time (ARR_TIME), the priority order of 1 and 2 is: 2>1.
[0068] Add 3, 4, and 5 for sorting. The priority order in the target rule of AA airline is: airline internal connection (ONLINE) > codeshare (CODESHARE) > airline combination (GROUP) > airline alliance (ALLIANCE). Since 3's airline 2 is *AA, it is a codeshare flight; 4's airline 2 is BB, which is in the same airline group as AA; 5's airline 2 is CC, which is in the same airline alliance as AA. Therefore, 3's priority is lower than 1, 4 is lower than 3, and 5 is lower than 4. At this time, the order is: 2>1>3>4>5.
[0069] Add 6, 7 and 8 for sorting. Since the main segment (MAIN_SEG) of 6 is CC airline, CC and AA are in the same airline alliance, but the number of segments (SEG_NUM) is 3, so 6 is lower than 5. The number of segments (SEG_NUM) of 7 is also 3, but the main segment (MAIN_SEG) of 7 is AA, so 1>7>3. The number of segments (SEG_NUM) of 8 is 3, and the number of airlines (AIRLINE_NUM) is 3, so 8 has the lowest priority. The order at this time is: 2>1>7>3>4>5>6>8.
[0070] After the above calculation and sorting, the passenger searches for connecting flights from Beijing to Los Angeles operated by AA Airlines and the displayed sorting results are: 2>1>7>3>4>5>6>8. The specific contents are shown in Table 4:
[0071] Table 4 Sorted information of multiple initial connecting flights
[0072]
[0073] It should be noted that the second preset threshold may be determined according to the display quantity, and the sorted plurality of initial connecting flight information may be screened using the second preset threshold to obtain the target connecting flight information to be recommended.
[0074] By screening the sorted multiple initial connecting flight information through the second preset threshold, accurate recommendations can be achieved more quickly, thereby improving user satisfaction.
[0075] Optionally, in the flight information determination method provided in the embodiment of the present application, determining multiple initial connecting flight information from multiple connecting flight information in the flight database according to the target flight query information includes: parsing the multiple connecting flight information in the flight database to obtain multiple first initial connecting flight information; verifying the multiple first initial connecting flight information to obtain multiple second initial connecting flight information; and determining multiple initial connecting flight information from the multiple second initial connecting flight information according to the target flight query information.
[0076] In an optional embodiment, in the flight database, multiple connecting flight information is parsed by using SQL query or API call to obtain multiple first initial connecting flight information. And the multiple first initial connecting flight information is formatted and sorted to verify the data (including but not limited to: whether the flight time meets the connecting requirements, whether there are empty seats on the flight, whether the flight is operated by the same airline or partner to facilitate baggage direct check-in, etc.) to obtain multiple second initial connecting flight information. Finally, according to the target flight query information, the second initial connecting flight information is further screened to determine the final connecting flight combination information (i.e., multiple initial connecting flight information).
[0077] By querying the target flight information, multiple initial connecting flight information can be quickly and accurately determined from the flight database, thereby improving the efficiency of flight information screening and enhancing the user experience.
[0078] Optionally, in the flight information determination method provided in an embodiment of the present application, after calculating and sorting multiple initial connecting flight information to obtain the target connecting flight information to be recommended, the method further includes: feeding back the target connecting flight information to be recommended to the target object, and detecting whether a target instruction triggered by the target object is received, wherein the target instruction is used to characterize that the target object has not adopted the target connecting flight information to be recommended; if the target instruction is received, determining feedback information of the target object based on the target instruction; and adjusting the target connecting flight information to be recommended based on the feedback information.
[0079] In an optional embodiment, a series of connecting flight options (i.e., target connecting flight information) recommended and displayed to the user are displayed to the user, and the user's feedback is awaited. The system monitors whether the user accepts the target connecting flight information to be recommended (i.e., detects whether the target instruction triggered by the target object is received): if the system detects that the user has issued a target instruction, the user's feedback information is extracted according to the target instruction. The feedback information includes but is not limited to: the reasons why the user is dissatisfied with the recommendation result, the user's specific needs for the flight, etc. Finally, the system adjusts the display order of the recommendation result and the target connecting flight information according to the user's feedback information to better meet the user's needs.
[0080] The recommendation results are continuously optimized through user feedback, which improves user satisfaction and the relevance of recommendations.
[0081] It should be noted that Figure 4 FIG. 1 is a schematic diagram of a method for determining flight information according to an embodiment of the present application. Figure 4As shown, the method for determining flight information includes: a connecting flight query system, an information receiving system, a connecting flight overall calculation system, and a connecting flight data cluster. The connecting flight query system is responsible for receiving flight query requests sent by users through channels such as airline official websites, airline applications, and OTAs. The connecting flight information is queried according to the flight query request, and the query results are returned to the user. The information receiving system is responsible for receiving direct flight information and connecting rule information required for connecting flight calculation, completing the format legality verification and parsing of the data, and storing the parsed results in the connecting flight data cluster. The connecting flight overall calculation system is responsible for reading direct flight information and connecting rule information, performing overall calculation of connecting flight data to update the connecting flight database, and storing the calculated connecting flights. The connecting flight data cluster mainly stores the direct flight data, connecting flight rule data, and calculated connecting flight result data released by each airline.
[0082] The flight information determination method provided in the embodiment of the present application obtains the target flight query information according to the flight query request triggered by the target object; determines multiple initial connecting flight information from multiple connecting flight information in the flight database according to the target flight query information; calculates and sorts the multiple initial connecting flight information to obtain the target connecting flight information to be recommended, which solves the problem that the related art uses a random method to determine the connecting flight information when the target object performs flight query, resulting in a relatively low accuracy rate in determining the connecting flight information. In summary, in this scheme, the flight query request issued by the target object is first processed to obtain the target flight query information. Then, multiple initial connecting flight information that meets the target flight query information is screened out in the flight database. Finally, the multiple initial connecting flight information is calculated and sorted to determine the target connecting flight information to be recommended. By calculating and sorting the multiple initial connecting flight information, the target connecting flight information displayed to the target object is determined, so that the recommendation of the target connecting flight information is more accurate and efficient.
[0083] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0084] The present application also provides a device for determining flight information. It should be noted that the device for determining flight information in the present application can be used to execute the method for determining flight information provided in the present application. The following is an introduction to the device for determining flight information provided in the present application.
[0085] Figure 5Schematic diagram of a device for determining flight information according to an embodiment of the present application. Figure 5 As shown, the device includes: a first determining unit 501, a second determining unit 502, and a processing unit 503.
[0086] The first determining unit 501 is used to obtain target flight query information according to the flight query request triggered by the target object;
[0087] The second determining unit 502 is used to determine a plurality of initial connecting flight information from a plurality of connecting flight information in a flight database according to the target flight query information;
[0088] The processing unit 503 is used to calculate and sort the multiple initial connecting flight information to obtain the target connecting flight information to be recommended.
[0089] In the flight information determination device provided in the embodiment of the present application, the first determination unit 501 obtains the target flight query information according to the flight query request triggered by the target object; the second determination unit 502 determines multiple initial connecting flight information from multiple connecting flight information in the flight database according to the target flight query information; the processing unit 503 calculates and sorts the multiple initial connecting flight information to obtain the target connecting flight information to be recommended, which solves the problem that the related art uses a random method to determine the connecting flight information when the target object performs flight query, resulting in a relatively low accuracy rate in determining the connecting flight information. In this solution, the flight query request issued by the target object is first processed to obtain the target flight query information. Then, multiple initial connecting flight information that meets the target flight query information is screened out in the flight database. Finally, the multiple initial connecting flight information is calculated and sorted to determine the target connecting flight information to be recommended. By calculating and sorting the multiple initial connecting flight information, the target connecting flight information displayed to the target object is determined, so that the recommendation of the target connecting flight information is more accurate and efficient.
[0090] Optionally, in the flight information determination device provided in the embodiment of the present application, the processing unit includes: a judgment module, used to judge whether there is target airline information in the target flight query information, and obtain a judgment result, wherein the probability of the target object taking the target airline is greater than a first preset threshold; a first determination module, used to determine a target rule based on the judgment result; and a processing module, used to calculate and sort multiple initial connecting flight information according to the target rule, and obtain the target connecting flight information to be recommended.
[0091] Optionally, in the flight information determination device provided in the embodiment of the present application, the first determination module includes: a first determination sub-module, used to determine that the target rule is a first rule if the judgment result indicates that the target airline information does not exist in the target flight query information, wherein the priority of the number of segments in the first rule is lower than the priority of the route type; and a second determination sub-module, used to determine that the target rule is a second rule if the judgment result indicates that the target airline information exists in the target flight query information, wherein the priority of the number of segments in the second rule is higher than the priority of the route type.
[0092] Optionally, in the flight information determination device provided in the embodiment of the present application, the processing module includes: an acquisition submodule, used to obtain multiple attribute information corresponding to each initial connecting flight information, wherein the multiple attribute information includes at least: route type, main flight segment, number of flight segments, number of airlines, departure time, arrival time and flight time; a third determination submodule, used to determine the corresponding priority weight value of each attribute information according to the target rule; and a processing submodule, used to calculate and sort multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended.
[0093] Optionally, in the flight information determination device provided in the embodiment of the present application, the processing submodule includes: a calculation submodule, used to calculate multiple initial connecting flight information according to the priority weight value, and obtain the priority result corresponding to each initial connecting flight information; a sorting submodule, used to sort the multiple initial connecting flight information according to the priority result, and obtain the sorted multiple initial connecting flight information; a screening submodule, used to screen the sorted multiple initial connecting flight information according to a second preset threshold value, and obtain the target connecting flight information to be recommended.
[0094] Optionally, in the flight information determination device provided in the embodiment of the present application, the second determination unit includes: a parsing module, used to parse multiple connecting flight information in the flight database to obtain multiple first initial connecting flight information; a verification module, used to verify the multiple first initial connecting flight information to obtain multiple second initial connecting flight information; a second determination module, used to determine multiple initial connecting flight information from the multiple second initial connecting flight information based on the target flight query information.
[0095] Optionally, in the flight information determination device provided in the embodiment of the present application, the device also includes: a feedback unit, which is used to calculate and sort multiple initial connecting flight information to obtain the target connecting flight information to be recommended, and then feed back the target connecting flight information to be recommended to the target object, and detect whether a target instruction triggered by the target object is received, wherein the target instruction is used to characterize that the target object has not adopted the target connecting flight information to be recommended; a third determination unit, which is used to determine feedback information of the target object according to the target instruction if the target instruction is received; and an adjustment unit, which is used to adjust the target connecting flight information to be recommended according to the feedback information.
[0096] The device for determining flight information includes a processor and a memory. The above-mentioned first determination unit 501, second determination unit 502, processing unit 503, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize accurate determination of flight information.
[0097] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the accurate determination of flight information can be achieved by adjusting kernel parameters.
[0098] 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.
[0099] 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, a method for determining flight information is implemented.
[0100] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a method for determining flight information when running.
[0101] like Figure 6 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 target flight query information according to a flight query request triggered by a target object; determining multiple initial connecting flight information from multiple connecting flight information in a flight database according to the target flight query information; and calculating and sorting the multiple initial connecting flight information to obtain target connecting flight information to be recommended.
[0102] Optionally, calculating and sorting the multiple initial connecting flight information to obtain the target connecting flight information to be recommended includes: judging whether there is target airline information in the target flight query information, and obtaining a judgment result, wherein the probability that the target object takes the target airline is greater than a first preset threshold; determining a target rule based on the judgment result; and calculating and sorting the multiple initial connecting flight information based on the target rule to obtain the target connecting flight information to be recommended.
[0103] Optionally, based on the judgment result, determining the target rule includes: if the judgment result indicates that the target airline information does not exist in the target flight query information, then determining the target rule as the first rule, wherein the priority of the number of segments in the first rule is lower than the priority of the route type; if the judgment result indicates that the target airline information exists in the target flight query information, then determining the target rule as the second rule, wherein the priority of the number of segments in the second rule is higher than the priority of the route type.
[0104] Optionally, calculating and sorting multiple initial connecting flight information according to the target rule to obtain the target connecting flight information to be recommended includes: acquiring multiple attribute information corresponding to each initial connecting flight information, wherein the multiple attribute information at least includes: route type, main flight segment, number of flight segments, number of airlines, departure time, arrival time and flight time; determining the corresponding priority weight value of each attribute information according to the target rule; calculating and sorting the multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended.
[0105] Optionally, calculating and sorting the multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended includes: calculating the multiple initial connecting flight information according to the priority weight value to obtain the priority result corresponding to each initial connecting flight information; sorting the multiple initial connecting flight information according to the priority result to obtain the sorted multiple initial connecting flight information; and screening the sorted multiple initial connecting flight information according to a second preset threshold to obtain the target connecting flight information to be recommended.
[0106] Optionally, determining the multiple initial connecting flight information from the multiple connecting flight information in the flight database according to the target flight query information includes: parsing the multiple connecting flight information in the flight database to obtain multiple first initial connecting flight information; verifying the multiple first initial connecting flight information to obtain multiple second initial connecting flight information; and determining the multiple initial connecting flight information from the multiple second initial connecting flight information according to the target flight query information.
[0107] Optionally, after calculating and sorting multiple initial connecting flight information to obtain the target connecting flight information to be recommended, the method further includes: feeding back the target connecting flight information to be recommended to the target object, and detecting whether a target instruction triggered by the target object is received, wherein the target instruction is used to indicate that the target object has not adopted the target connecting flight information to be recommended; if the target instruction is received, determining feedback information of the target object according to the target instruction; and adjusting the target connecting flight information to be recommended according to the feedback information.
[0108] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0109] 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 target flight query information based on a flight query request triggered by a target object; determining multiple initial connecting flight information from multiple connecting flight information in a flight database based on the target flight query information; and calculating and sorting the multiple initial connecting flight information to obtain the target connecting flight information to be recommended.
[0110] Optionally, calculating and sorting the multiple initial connecting flight information to obtain the target connecting flight information to be recommended includes: judging whether there is target airline information in the target flight query information, and obtaining a judgment result, wherein the probability that the target object takes the target airline is greater than a first preset threshold; determining a target rule based on the judgment result; and calculating and sorting the multiple initial connecting flight information based on the target rule to obtain the target connecting flight information to be recommended.
[0111] Optionally, based on the judgment result, determining the target rule includes: if the judgment result indicates that the target airline information does not exist in the target flight query information, then determining the target rule as the first rule, wherein the priority of the number of segments in the first rule is lower than the priority of the route type; if the judgment result indicates that the target airline information exists in the target flight query information, then determining the target rule as the second rule, wherein the priority of the number of segments in the second rule is higher than the priority of the route type.
[0112] Optionally, calculating and sorting multiple initial connecting flight information according to the target rule to obtain the target connecting flight information to be recommended includes: acquiring multiple attribute information corresponding to each initial connecting flight information, wherein the multiple attribute information at least includes: route type, main flight segment, number of flight segments, number of airlines, departure time, arrival time and flight time; determining the corresponding priority weight value of each attribute information according to the target rule; calculating and sorting the multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended.
[0113] Optionally, calculating and sorting the multiple initial connecting flight information according to the priority weight value to obtain the target connecting flight information to be recommended includes: calculating the multiple initial connecting flight information according to the priority weight value to obtain the priority result corresponding to each initial connecting flight information; sorting the multiple initial connecting flight information according to the priority result to obtain the sorted multiple initial connecting flight information; and screening the sorted multiple initial connecting flight information according to a second preset threshold to obtain the target connecting flight information to be recommended.
[0114] Optionally, determining the multiple initial connecting flight information from the multiple connecting flight information in the flight database according to the target flight query information includes: parsing the multiple connecting flight information in the flight database to obtain multiple first initial connecting flight information; verifying the multiple first initial connecting flight information to obtain multiple second initial connecting flight information; and determining the multiple initial connecting flight information from the multiple second initial connecting flight information according to the target flight query information.
[0115] Optionally, after calculating and sorting multiple initial connecting flight information to obtain the target connecting flight information to be recommended, the method further includes: feeding back the target connecting flight information to be recommended to the target object, and detecting whether a target instruction triggered by the target object is received, wherein the target instruction is used to indicate that the target object has not adopted the target connecting flight information to be recommended; if the target instruction is received, determining feedback information of the target object according to the target instruction; and adjusting the target connecting flight information to be recommended according to the feedback information.
[0116] 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.
[0117] 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.
[0118] 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 comprising 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.
[0119] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0120] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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.
[0125] 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 determining flight information, characterized in that: include: According to the flight query request triggered by the target object, the target flight query information is obtained; Determining a plurality of initial connecting flight information from a plurality of connecting flight information in a flight database according to the target flight query information; The multiple initial connecting flight information are calculated and sorted to obtain target connecting flight information to be recommended.
2. The method according to claim 1, characterized in that Calculating and sorting the multiple initial connecting flight information to obtain the target connecting flight information to be recommended includes: Determine whether there is target airline information in the target flight query information, and obtain a determination result, wherein the probability that the target object takes the target airline is greater than a first preset threshold; Determining a target rule according to the judgment result; The multiple initial connecting flight information are calculated and sorted according to the target rule to obtain the target connecting flight information to be recommended.
3. The method according to claim 2, characterized in that According to the judgment result, determining the target rule includes: If the judgment result indicates that the target airline information does not exist in the target flight query information, determining that the target rule is the first rule, wherein the flight segment quantity priority in the first rule is lower than the route type priority; If the judgment result indicates that the target airline information exists in the target flight query information, the target rule is determined to be the second rule, wherein the priority of the number of flight segments in the second rule is higher than the priority of the route type.
4. The method according to claim 2, characterized in that: Calculating and sorting the plurality of initial connecting flight information according to the target rule to obtain the target connecting flight information to be recommended includes: Acquire multiple attribute information corresponding to each initial connecting flight information, wherein the multiple attribute information at least includes: route type, main flight segment, number of flight segments, number of airlines, departure time, arrival time and flight time; Determine the priority weight value corresponding to each attribute information according to the target rule; The plurality of initial connecting flight information are calculated and sorted according to the priority weight values to obtain the target connecting flight information to be recommended.
5. The method according to claim 4, characterized in that Calculating and sorting the plurality of initial connecting flight information according to the priority weight values to obtain the target connecting flight information to be recommended includes: Calculating the plurality of initial connecting flight information according to the priority weight values to obtain a priority result corresponding to each piece of initial connecting flight information; Sorting the plurality of initial connecting flight information according to the priority result to obtain sorted plurality of initial connecting flight information; The sorted plurality of initial connecting flight information are screened according to a second preset threshold value to obtain the target connecting flight information to be recommended.
6. The method according to claim 1, characterized in that Determining a plurality of initial connecting flight information from a plurality of connecting flight information in a flight database according to the target flight query information includes: Parsing the multiple connecting flight information in the flight database to obtain multiple first initial connecting flight information; Verifying the plurality of first initial connecting flight information to obtain a plurality of second initial connecting flight information; The plurality of initial connecting flight information are determined from the plurality of second initial connecting flight information according to the target flight query information.
7. The method according to claim 1, characterized in that After calculating and sorting the plurality of initial connecting flight information to obtain target connecting flight information to be recommended, the method further includes: Feeding back the target connecting flight information to be recommended to the target object, and detecting whether a target instruction triggered by the target object is received, wherein the target instruction is used to indicate that the target object does not adopt the target connecting flight information to be recommended; If the target instruction is received, determining feedback information of the target object according to the target instruction; The target connecting flight information to be recommended is adjusted according to the feedback information.
8. A device for determining flight information, characterized in that: include: A first determining unit, configured to obtain target flight query information according to a flight query request triggered by a target object; A second determining unit, configured to determine a plurality of initial connecting flight information from a plurality of connecting flight information in a flight database according to the target flight query information; The processing unit is used to calculate and sort the multiple initial connecting flight information to obtain the target connecting flight information to be recommended.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the storage medium is controlled to execute the flight information determination method according to any one of claims 1 to 7 on a device.
10. An electronic device, characterized in that: The invention comprises 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 the method for determining flight information as described in any one of claims 1 to 7.
Citation Information
Cited By
Interconnection flight plan generation method and system, storage medium and electronic equipment
CN119849743A
