Method and system for searching through flight fare, electronic equipment and storage medium
By building and screening flight rules for travel and calculating and displaying flight freight rates, the problem of difficulty in searching and displaying flight freight rates in the existing technology is solved, and the quality and user experience of flight freight rate search services are improved.
Patent Information
- Application Number
- CN202411803322.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2044-12-09
AI Technical Summary
The existing freight search process is difficult to effectively search and display the freight results of the flights, resulting in the incomplete flight freight search service.
By obtaining and building flight rules for travel, filtering and combining available flights, calculating and displaying flight freight rates, and giving priority to pushing compliant flight tickets.
It improves the ability of the front-end platform to obtain freight rates results, improves the experience of freight rate search services, and enhances the display and push of freight rates.
Smart Images

Figure CN119850289A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of air ticket search, and in particular to a method, system, electronic device and storage medium for searching through flight fares. Background Art
[0002] Through flights are multi-segment journeys that passengers purchase connecting tickets at the departure station and are operated by one or more airlines that have signed an agreement. Passengers only need to check in and check in their luggage once at the departure station, and do not need to take out their luggage during transfer. They can check it directly from the departure station to the destination, which greatly improves the convenience of travel.
[0003] Through flights bring convenience to passengers' ticket purchase and travel. When selling through flight products, sales service providers need to place through flight products separately in the lists of direct flights and connecting flights. The list of connecting flights should give priority to through flight products.
[0004] In the existing fare search process, flight searches only generate direct flights and the establishment of ordinary connecting flights. It is more difficult to search for through flights, making it difficult for the front-end platform to obtain through flight fare results and display them to passengers, resulting in the need to improve the flight fare search service for through flights. Summary of the invention
[0005] To solve the above problems, the present disclosure provides a method, system, electronic device and storage medium for searching through flight fares. By building through flights, the screening logic can give priority to returning through flight results, display through flight results and through flight identifiers across all channels, and give priority to pushing and selling compliant through flight tickets to passengers.
[0006] A first aspect of the present disclosure provides a method for searching through flight fares, the method comprising: obtaining through flight rules; building through flights based on the through flight rules; obtaining the space information of each flight based on the through flights; screening available through flights based on the space information of each flight and forming a through flight combination; and calculating and obtaining the through flight fares based on the through flight combination.
[0007] With this setting, when establishing through flights under the through flight rules, the filtering logic can give priority to returning the results of through flights, so as to obtain the cabin information of each flight and filter out the available through flight combinations, thereby facilitating the calculation of the through flight fares based on the through flight combinations, which helps the front-end platform to obtain the through flight fare results, give priority to pushing and selling compliant through flight tickets to passengers, thereby improving the service experience of flight fare search for through flights.
[0008] In some embodiments, the building of a through flight based on the through flight rules includes: forming a multi-segment flight by matching the through flight combination configuration in the through flight rules; and forming a through flight based on two flights in the multi-segment flight.
[0009] With this arrangement, only through flights with two segments are considered, and through flights with more than two segments will not be set up, so that when the through flights are transferred, the arrival time of the first segment and the departure time of the second segment are on the same natural day.
[0010] In some embodiments, the forming a through flight based on two flights among the multiple flights includes: verifying whether the connecting transfer time is greater than two hours based on the two flights; if so, forming a through flight; if so, failing to form the through flight.
[0011] Such a setting will help to build a through flight with a transfer time that complies with the connecting transfer rules.
[0012] In some embodiments, the forming of a through flight based on two flights among the multiple flights includes: obtaining an interline transport agreement between the multiple flights; based on the interline transport agreement between the airlines, verifying whether the airlines in the two flights are in the interline transport agreement list; if so, forming a through flight; if not, forming the through flight fails.
[0013] Such a setting will help to build through flights that comply with the airline's intermodal transport agreement.
[0014] In some embodiments, the screening of available through flights based on the cabin information of each flight and forming a through flight combination includes: obtaining the number of through flight combinations with restricted returns; obtaining the number of available through flights and the number of ordinary connecting flights; and based on the number of through flight combinations with restricted returns, forming a through flight combination in which the number of available through flights is equal to the number of ordinary connecting flights.
[0015] This setting makes the number of through flights and ordinary connecting flights equal, which helps to filter out the through flight combination results that are returned first.
[0016] In some embodiments, forming a flight combination in which the number of available through flights is equal to the number of ordinary connecting flights based on the number of flight combinations returned by limiting includes: marking the available through flights to form a through flight combination with the mark.
[0017] This arrangement makes it easier to display the through flight logo after the through flight results are constructed, so that the through flight products can be displayed preferentially in the transfer flight list.
[0018] In some embodiments, the calculation of the through flight fare based on the through flight combination includes: obtaining a fare combination plan based on the user itinerary and the through flight combination; calculating the fare price of each itinerary based on the fare combination plan to generate an itinerary plan price result; and obtaining the through flight fare based on the itinerary plan price verification and calculation.
[0019] Such a setting will help to display the constructed through flight fares, so as to give priority to pushing and selling compliant through flight tickets to passengers.
[0020] A second aspect of the present disclosure provides a system for searching through flight fares, the system comprising a data receiving module for acquiring through flight rules; a building module for building through flights based on the through flight rules; an acquiring module for acquiring the space information of each flight based on the through flights; a screening module for screening available through flights based on the space information of each flight and forming a through flight combination; and a calculating module for calculating and obtaining the through flight fares based on the through flight combination.
[0021] Such a setting will help to search for through flight combinations pre-configured by the airline, and give priority to returning the through flight combination results preferred by the airline, thereby improving the richness and diversity of the search results, thereby improving the service experience of flight fare searches for through flights.
[0022] A third aspect of the present disclosure provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the method for searching through flight fares as described in the first aspect when executing the computer program.
[0023] The technical effects brought about by any possible implementation of the third aspect can refer to the technical effects brought about by the above-mentioned first aspect, and will not be repeated here.
[0024] A fourth aspect of the present disclosure provides a computer storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for searching through flight fares as described in the first aspect is implemented.
[0025] The technical effects brought about by any possible implementation of the fourth aspect can refer to the technical effects brought about by the above-mentioned first aspect, and will not be repeated here.
[0026] Compared with the prior art, the present invention has the following advantages:
[0027] 1. Through the establishment of through flights, search for through flight combinations pre-configured by airlines, and give priority to returning through flight combination results preferred by airlines, thereby improving the richness and diversity of search results.
[0028] 2. Enhance the cross-selling service capabilities of airlines’ feeder routes, fully promote high-quality services for through flights, and provide strong support.
[0029] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by implementing the present disclosure. The purpose and other advantages of the present disclosure can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0031] Figure 1 A schematic diagram of a method for searching through flight fares provided in an embodiment of the present disclosure;
[0032] Figure 2 A flow chart of a method for realizing through flight fares provided in an embodiment of the present disclosure;
[0033] Figure 3 A schematic diagram of a flight rules text file provided in an embodiment of the present disclosure;
[0034] Figure 4 is a block diagram of a system for searching through flight fares provided by an embodiment of the present disclosure;
[0035] Figure 5 A structural block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0037] The following is a brief introduction to some concepts that may be involved in the embodiments of the present disclosure.
[0038] In accordance with the clear requirements issued by the Civil Aviation Administration, when air carriers, general aviation enterprises, aviation sales agents and aviation sales network platform operators involved in through flights sell through flight products, they must carefully check the filing status of the through flights and the transportation conditions set by the air carriers and general aviation enterprises through the through platform. After completing the inspection, the "through flight" logo must be uniformly set in the sales system, and through flight tickets that meet the requirements must be pushed and sold to passengers in priority.
[0039] Currently, many airlines and sales agents have engaged in the sales of through flights. Airlines have successfully expanded their route coverage by utilizing their own routes or selling routes to each other, while also significantly improving the distribution function of hub airports.
[0040] In order to vigorously promote through flights, a premium service of China's civil aviation, and to bring convenience to passengers in ticket purchase and travel, sales service providers need to place through flight products in the lists of direct flights and transfer flights respectively when selling through flight products. At the same time, through flight products should be displayed first in the transfer flight list. The entire process involves several business links, including flight query (including access to through flight connection rules, through calculation and sorting adjustment, and display of through flight brands), passenger reservation (automatic marking of through passengers), passenger departure records (independent display of through passenger logos), display adjustment of agent front end and airline front end.
[0041] To this end, the disclosed embodiment provides a method for searching through flight fares, which constructs a through flight in the flight query stage and displays the through flight logo to the outside world, so as to facilitate the front-end platform to obtain the through flight fare results and display them to passengers, which helps to improve the service experience of searching through flights for flight fares.
[0042] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of a method for searching through flight fares provided in an embodiment of the present disclosure is provided. Figure 2 A flowchart of a through flight fare realization method provided in an embodiment of the present disclosure. The through flight fare search method is equivalent to Figure 2 The purpose of the flight search step is to find applicable flights or flight combination results, as well as available cabin space results. The construction of through flights is also completed in the flight search.
[0043] In flight search, first build a path based on the departure city and arrival city entered by the user, and then search for flights for each segment of the path based on the built path. The generated path can be divided into a single segment or multiple segments. For a single segment, you can directly match available direct flights. For multiple segments, you need to set up flights. The flight setting process is divided into ordinary transfer flight setting and through flight setting. The embodiment of the present disclosure mainly describes the through flight setting process in detail, so the method for searching through flight fares includes the following steps:
[0044] S100. Obtain through flight rules.
[0045] In this embodiment, the through flight rules will be entered by the operators of each airline into the domestic through flight service management platform of the Civil Aviation Administration of China Clearing Center, that is, Figure 2 The data is pushed to the Civil Aviation Administration through flight management platform. Airlines can submit interline flight records on the through flight record platform at any time. After the airline submits the record on the flight record platform, the domestic through flight service management platform pushes the data file to the air traffic information system and distributes it to Figure 2 The data receiving module in.
[0046] In some embodiments, the data file is pushed in full volume using FTP. The file format is UTF-8 format, and line breaks support LINUX line breaks. The text file name is determined to be a new file based on whether the timestamp has changed; the push frequency is real-time push, and the data receiving module scans for new files every half an hour, and receives new files to the data receiving module.
[0047] For example, see Figure 3 , Figure 3 This is a schematic diagram of a flight rule text file provided in an embodiment of the present disclosure. The data text file pushed to the fare search system backend via the through flight service management platform has the field names in the front row and the data in the back row.
[0048] For example, there are two configurations in the rule text file:
[0049] The first data, AA-XXXX Airlines, TAO.XMN, TC9ABC, 20230901, 20241231, AA, 0001, A, TAO, XI Y, CC, 0002, XIY, XMN;
[0050] The second data, CA-XXXX Aviation, PEK, CAN, TC001, 20230106, 202301021, CA, 1235, PEK, SHA, CA, 1345, SHA, CAN;
[0051] Assume that the trip requested by the user is on July 23, 2024, PEK to CAN.
[0052] The second data in the above configuration file meets the user's requested itinerary PEK-CAN, the date is also within the range, and there are two flight plans CA1235 and CA1345 in the flight schedule. Therefore, this configuration can be used for the subsequent through flight setup process. The first data in the configuration file does not meet the user's request, so this configuration cannot be used for the subsequent through flight setup.
[0053] S200: Establish a through flight based on through flight rules.
[0054] In this embodiment, a through flight combination configuration in the through flight rule is matched to form a multi-segment flight; a through flight is formed based on two flights in the multi-segment flight. It can be understood that in the combination of multiple through flights, only two-segment through flights are considered, and flights with more than two segments are not built. In addition, the through flight combination configuration in the through flight rule file is used for matching. As long as the configured flight combination exists in the file, and there is a corresponding flight plan on the day and it meets the itinerary requested by the user, the matching requirements are met and they need to be displayed.
[0055] For example, when a through flight is transferring, the arrival time of the first leg and the departure time of the second leg must be on the same natural day, and it is not ruled out that the cross-day function will be supported in the future. In other words, based on the two flights, check whether the connecting transfer time is greater than two hours; if greater, a through flight is established; if less, the through flight establishment fails.
[0056] For example, the airline's connecting transfer rule configuration table requires that the transfer time between flight A and flight B must not be less than 120 minutes. If there is a through flight configuration of flight A + flight B in the through flight file, but the departure time of flight B - the arrival time of flight A found through the flight schedule is less than 120 minutes, in this case, the through flight A+B cannot be built.
[0057] For example, in the connecting flight transfer time, refer to Figure 3 The second data in the configuration file is flight CA1235 and flight CA1345. The scheduled arrival time of flight CA1235 is 12:30, and the scheduled departure time of flight CA1345 is 13:30 on the same day. The time difference between the two flights is 60 minutes. In the transfer rule restriction table, there is a rule that the minimum connection time between the two flights must not be less than 120 minutes, so these two flights cannot be connected.
[0058] For another example, if a flight is handled across multiple days, see Figure 3The second data in the configuration file is flight CA1235 and flight CA1345. The scheduled arrival time of flight CA1235 is 22:30, and the scheduled departure time of flight CA1345 is 6:30 the next morning. The take-off and landing times of the two flights are not on the same day. In this case, the flight cannot be set up.
[0059] For example, the interline transport agreement between airlines also needs to be verified, and the data in the interline transport agreement list needs to be used for judgment. In other words, obtain the interline transport agreement between airlines for multiple flights; based on the interline transport agreement between airlines, verify whether the airlines in the two flights are in the interline transport agreement list: if so, a through flight is established; if not, the through flight establishment fails. If airline A and airline B do not exist in the list, airline A and airline B cannot be established as a through flight.
[0060] For example, the following through flight configuration data meets the itinerary requirements: CAxxxx Airlines, PEK, CAN, TC001, 20230106, 20301021, CA, 1235, PEK, SHA, CZ, 1345, SHA, CAN; Flight CA1235 and Flight CZ2135, CA and CZ belong to different airlines. It is necessary to determine in the airline agreement table whether the two airlines have an interline agreement. If so, a through flight result of CA1235+CZ1345 can be built. If there is no interline agreement, the flight cannot be built.
[0061] For example, if the user request requires only the return of ordinary transfer results, then there is no need to set up a through flight. If the user request does not specify any requirements, then both through flights and ordinary transfer flight results need to be returned.
[0062] For example, when field control is used in the request, when connectionPrefered=1 in the request, it is not necessary to return through flight results; when connectionPrefered=2 in the request, it is necessary to return through flight and ordinary connecting flight results.
[0063] S300: Acquire the cabin information of each flight based on the through flight.
[0064] In this embodiment, the data of each flight in the through flight is obtained from the through flight management platform of the Civil Aviation Administration, and the cabin information is assigned to each flight, so as to facilitate matching of the cabin information of the through flights.
[0065] S400: Filter available through flights based on the space information of each flight, and form a through flight combination.
[0066] In this embodiment, the screening principle is to give priority to through flight results, while being subject to the upper limit of the number of connecting flights returned. That is to say, the number of through flight combinations that are limited to be returned is obtained, and then the number of available through flights and the number of ordinary connecting flights are obtained, and then based on the number of through flight combinations that are limited to be returned, a through flight combination with the same number of available through flights and ordinary connecting flights is formed.
[0067] For example, if only 10 connecting transfer results are returned, 5 through flights are built and 12 ordinary transfer results are built. Then the flight results finally returned to the main process are: 5 through flights + 5 ordinary transfer results. The main process is Figure 2 The purpose is to ensure that available through flights are returned first.
[0068] For example, if the fare search system limits each request to return only 10 connecting flight results: Assuming that the through flight has 5 available results after the above steps, and the ordinary connecting flight has 12 available results, the flight results finally returned to the main process are: 5 through flights + 5 ordinary connecting flight results. Assuming that the through flight has 12 available results after the above steps, and the ordinary connecting flight has 5 available results, the flight results finally returned to the main process are: 10 through flights. These 10 through flights are selected from the 12 flights according to the priority sorting, and the priority sorting weight here involves a series of weighing criteria such as take-off time, transfer time, detour rate, and whether they are combined with the same airline.
[0069] In some embodiments, available through flights are marked to form a through flight combination with the mark, and then the through flight combination result with the mark is returned to the main process so that the fare search system can obtain the fare later.
[0070] S500: Calculate and obtain a through flight fare based on the through flight combination.
[0071] In the embodiment of the present disclosure, a fare combination scheme is obtained according to the user's itinerary and the through flight combination, and then the fare price of each itinerary is calculated based on the fare combination scheme to generate the itinerary scheme price result, that is, Figure 2 Get the fare in ; finally, based on the itinerary plan price verification and calculation, get the through flight fare, that is Figure 2 Freight calculation and freight verification in.
[0072] Exemplarily, it is necessary to split the user's itinerary, that is, to split the user's actual itinerary into one or more fare combination plans, which can be used to mount fare information and flight information. It should be noted that the flight combination results after the above-mentioned flight is set up are attached to the fare combination plan, and the fare combination plan is the minimum calculation granularity unit for domestic fare search. The created fare combination can be divided into one-way full-trip fare, one-way multi-segment fare, round-trip full-trip fare, and round-trip multi-segment fare.
[0073] Exemplarily, the fare data is obtained according to the fare combination scheme to facilitate the verification of the fare, for example, including space verification, authority verification, rule verification, route verification, etc. Through these verifications, it can be ensured that the itinerary solution is accurate and meets the conditions, and only the itinerary solution that passes the fare verification can be returned to the main process of the fare search system.
[0074] For example, after calculating the fare price of each itinerary to generate the itinerary plan price result, after the combined verification and calculation of the fare, it is processed and displayed according to the information specified in the user input message, including flight information and its corresponding fare. In this step, direct flights, through flights, and ordinary transfer flights will all be displayed, among which through flights will also display the through flight logo to distinguish them from ordinary transfer flights.
[0075] Based on the above method, the present disclosure also provides a through flight fare search system 2000 corresponding to the above method. Figure 4 , Figure 4 2 is a block diagram of a through flight fare search system provided by an embodiment of the present disclosure, and the system includes a data receiving module 210, a building module 220, an acquisition module 230, a screening module 240, and a calculation module 250. The data receiving module 210 is used to obtain through flight rules; the building module 220 is used to build through flights based on through flight rules; the acquisition module 230 is used to obtain the space information of each flight based on the through flight; the screening module 240 is used to screen available through flights based on the space information of each flight and form a through flight combination; the calculation module 250 is used to calculate and obtain the through flight fare based on the through flight combination.
[0076] In this embodiment, by establishing through flights and marking through flights, the results of through flights can be returned preferentially through filtering logic, so that through flight results and through flight identifications can be displayed across all channels, and compliant through flight tickets can be pushed and sold to passengers preferentially.
[0077] Based on the same inventive concept as the above disclosed content, the present disclosure also provides an electronic device 3000. Figure 5 As shown, Figure 5The electronic device 3000 of the embodiment of the present disclosure includes at least one processor 310 and at least one memory 320 electrically connected to each other. The memory 320 is electrically connected to the processor 310, wherein the memory 320 stores instructions executable by the at least one processor 310, and the instructions are executed by the at least one processor 310 so that the at least one processor 310 can execute the method described above.
[0078] It should be noted that the electrical connection between the above-mentioned units does not necessarily mean the connection between lines. An indirect connection method can be applied to the embodiments of the present disclosure as long as the purpose of the present disclosure is achieved.
[0079] Based on the same inventive concept, the present disclosure also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described above is performed. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0080] Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for searching through flight fares, characterized in that: The method comprises: Get through flight rules; Establishing a through flight based on the through flight rules; Acquire the cabin information of each flight based on the through flight; Filter available through flights based on the space information of each flight, and form a through flight combination; A through flight fare is calculated based on the through flight combination.
2. The method according to claim 1, characterized in that The through flight establishment based on the through flight rules includes: Matching the through flight combination configuration in the through flight rule to form multiple flights; A through flight is formed based on two flights among the multiple flights.
3. The method according to claim 2, characterized in that The forming of a through flight based on two flights among the multiple flights comprises: Verify whether the connecting flight time is greater than two hours based on the two flights; If it is greater, a through flight will be constructed; If it is less than that, the through flight establishment fails.
4. The method according to claim 2, characterized in that: The forming of a through flight based on two flights among the multiple flights comprises: Obtain interline transport agreements between airlines for the multiple flights; Verify whether the airlines in the two flights are in the interline agreement list based on the interline agreement between the airlines; If so, a through flight will be constructed; If not, the through flight establishment fails.
5. The method according to claim 1, characterized in that The screening of available through flights based on the space information of each flight and forming a through flight combination includes: Get the number of through flight combinations that are limited to be returned; Obtain the number of available through flights and ordinary connecting flights; Based on the number of through flight combinations returned by the restriction, a through flight combination in which the number of available through flights is equal to the number of ordinary transfer flights is formed.
6. The method according to claim 5, characterized in that The number of flight combinations returned based on the restriction to form a flight combination in which the number of available through flights is equal to the number of ordinary transfer flights comprises: The available through flights are marked to form a through flight combination with the mark.
7. The method according to claim 1, characterized in that The through flight fare calculated based on the through flight combination includes: Obtain a fare combination plan based on the user's itinerary and the through flight combination; Calculate the fare price of each itinerary based on the fare combination plan and generate a itinerary plan price result; The through flight fare is obtained based on the price verification and calculation of the itinerary plan.
8. A system for searching through flight fares, characterized in that: The system comprises A data receiving module is used to obtain through flight rules; A building module, used for building a through flight based on the through flight rules; An acquisition module, used for acquiring the cabin information of each flight based on the through flight; A screening module, used for screening available through flights based on the space information of each flight, and forming a through flight combination; A calculation module is used to calculate and obtain a through flight fare based on the through flight combination.
9. An electronic device, characterized in that: The electronic device comprises: Memory for storing computer programs; A processor, configured to implement the method for searching through flight fares as described in any one of claims 1 to 7 when executing the computer program.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for searching through flight fares according to any one of claims 1 to 7.
Citation Information
Patent Citations
Low-cost flight searching system and low-cost flight searching method
CN106777312A
Data settlement method and device, storage medium and electronic equipment
CN111476651A
Management connectivity service for public transport luggage
CN114207639A
Intermodal transport data processing method and system, equipment and storage medium
CN114742626A
Freight rate calculation method and system, storage medium and electronic equipment
CN116167685A