Travel data processing method and device, storage medium and electronic device

By identifying and processing the user's itinerary data and accurately identifying connecting passengers, the problem that cannot be identified in the existing technology is solved, and the user's service experience is improved.

CN112967031BActive Publication Date: 2024-09-13TRAVELSKY TECHNOLOGY LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110259380.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-10
Publication Date
2024-09-13
Estimated Expiration
2041-03-10

AI Technical Summary

Technical Problem

Existing technology cannot accurately identify connecting passengers, resulting in users being unable to obtain flexible itinerary services when booking tickets in segments.

Method used

Through an itinerary data processing method, respond to the itinerary data processing instructions, determine whether the user meets the transfer passenger identification conditions, obtain the user's itinerary combination, select the central itinerary, determine whether it belongs to the transfer combination, and iteratively adjust the itinerary combination. Until the stop iteration condition is met to identify the user's transfer connection.

Benefits of technology

It achieves accurate identification of connecting passengers when users choose to book tickets in segments, provides more flexible services and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112967031B
    Figure CN112967031B
Patent Text Reader

Abstract

The present invention provides a method and device for processing itinerary data, a storage medium and an electronic device, the method comprising: when a user meets the identification condition of transfer passengers, selecting a central itinerary from the itinerary combination of the user; judging whether there is a transfer combination to which the central itinerary belongs in the itinerary combination; if there is a transfer combination to which the central itinerary belongs in the itinerary combination, obtaining a new itinerary combination based on each itinerary other than the transfer combination in the itinerary combination; if the new transfer combination does not meet the stop iteration condition, determining a new central itinerary in the new transfer combination, and re-judging whether there is a transfer combination to which the new central itinerary belongs in the new itinerary combination, until the new itinerary combination meets the stop iteration condition, so as to obtain each transfer combination of the user. The itinerary data processing method provided by the present invention can accurately identify the user's transfer connections.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a travel data processing method and device, a storage medium and an electronic device. Background Art

[0002] In recent years, air transportation has gradually become one of the main modes of transportation. When doing business or traveling, more and more users choose airplanes as a fast means of transportation. When users choose airplanes as a means of transportation, they may transfer through other airports between their departure and destination. Users of such routes are called transfer passengers.

[0003] In the prior art, the departure control system needs to identify transfer passengers to provide them with connecting flights transfer services, thereby improving user satisfaction; however, existing connecting flights are usually composed of multiple fixed segmented itineraries, making the user's itinerary inflexible, so users usually book tickets in segments; when the user chooses to book tickets in segments, the system cannot identify the user's connecting flights. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a trip data processing method that can accurately identify a user's transfer connection.

[0005] The present invention also provides a travel data processing device to ensure the implementation and application of the above method in practice.

[0006] A method for processing travel data, comprising:

[0007] In response to the travel data processing instruction, determining a user corresponding to the travel data processing instruction;

[0008] Determining whether the user meets the preset transfer passenger identification conditions;

[0009] If the user meets the connecting passenger identification condition, obtaining the itinerary combination of the user; the itinerary combination includes multiple itineraries sorted in chronological order;

[0010] Selecting a center stroke from each of the strokes in the stroke combination;

[0011] Determining whether there is a transfer-connection combination to which the central itinerary belongs in the itinerary combination;

[0012] If the itinerary combination includes a transfer-connection combination to which the central itinerary belongs, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the transfer-connection combination; wherein the transfer-connection combination to which the central itinerary belongs includes a plurality of itineraries that are sequentially continuous in time, and two itineraries that are sequentially adjacent in time in the transfer-connection combination meet the transfer-connection conditions corresponding to the two itineraries that are sequentially adjacent in time;

[0013] If the transfer-connection combination to which the central itinerary belongs does not exist in the itinerary combination, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the central itinerary;

[0014] When a new itinerary combination is obtained, it is determined whether the new transfer-connection combination satisfies the stop iteration condition. If not, a new central itinerary is determined in the new transfer-connection combination, and it is re-determined whether the new itinerary combination contains the transfer-connection combination to which the new central itinerary belongs, until the currently obtained new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer-connection combination of the user.

[0015] A travel data processing device, comprising:

[0016] a determining unit, configured to determine, in response to the travel data processing instruction, a user corresponding to the travel data processing instruction;

[0017] A first judging unit, used to judge whether the user meets a preset identification condition;

[0018] an acquisition unit, configured to acquire an itinerary combination of the user if the user meets the identification condition; the itinerary combination comprises a plurality of itineraries sorted in chronological order of travel time;

[0019] A selection unit, used for selecting a center stroke from each of the strokes in the stroke combination;

[0020] A second judgment unit is used to judge whether there is a transfer-connection combination to which the central itinerary belongs in the itinerary combination;

[0021] A first execution unit is configured to determine a new itinerary combination according to each itinerary other than the transfer-connection combination in the itinerary combination if the transfer-connection combination to which the central itinerary belongs exists in the itinerary combination; wherein the transfer-connection combination to which the central itinerary belongs includes a plurality of itineraries that are sequentially continuous in time, and two itineraries that are sequentially adjacent in time in the transfer-connection combination meet the transfer-connection conditions corresponding to the two itineraries that are sequentially adjacent in time;

[0022] A second execution unit is used to determine a new itinerary combination according to each itinerary in the itinerary combination except the central itinerary if the transfer-connection itinerary combination to which the central itinerary belongs does not exist in the itinerary combination;

[0023] The iteration unit is used to determine whether the new transfer connection combination satisfies the stop iteration condition when a new itinerary combination is determined. If not, a new central itinerary is determined in the new transfer connection combination, and re-determine whether the transfer connection combination to which the new central itinerary belongs exists in the new itinerary combination, until the currently determined new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer connection of the user.

[0024] A storage medium includes storage instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the travel data processing method as described above.

[0025] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to execute the above-mentioned travel data processing method.

[0026] Compared with the prior art, the present invention has the following advantages:

[0027] The present invention provides a method and device for processing itinerary data, a storage medium and an electronic device, the method comprising: in response to an itinerary data processing instruction, determining a user corresponding to the itinerary data processing instruction; judging whether the user satisfies a preset transfer-connection passenger identification condition; if the user satisfies the transfer-connection passenger identification condition, obtaining an itinerary combination of the user; the itinerary combination comprises a plurality of itineraries sorted in chronological order of itinerary time; selecting a central itinerary from each of the itineraries in the itinerary combination; judging whether there is a transfer-connection combination to which the central itinerary belongs in the itinerary combination; if there is a transfer-connection combination to which the central itinerary belongs in the itinerary combination, obtaining a new itinerary combination based on each itinerary in the itinerary combination except the transfer-connection combination; wherein the central itinerary The transfer and connection combination includes multiple itineraries that are continuous in time sequence, and two itineraries that are adjacent in time sequence in the transfer and connection combination meet the transfer and connection conditions corresponding to the two itineraries that are adjacent in time sequence; if the transfer and connection combination to which the central itinerary belongs does not exist in the itinerary combination, a new itinerary combination is obtained based on each itinerary other than the central itinerary in the itinerary combination; when a new itinerary combination is obtained, it is determined whether the new transfer and connection combination meets the stop iteration condition, and if not, a new central itinerary is determined in the new transfer and connection combination, and it is re-determined whether the transfer and connection combination to which the new central itinerary belongs exists in the new itinerary combination, until the new itinerary combination currently obtained meets the preset stop iteration condition, so as to obtain each transfer and connection combination of the user. The itinerary data processing method provided by the present invention can accurately identify the user's transfer and connection when the user chooses to book tickets in sections, provide a guarantee for the user's transfer and connection service, and improve the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention 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 only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0029] Figure 1 A method flow chart of a method for processing travel data provided by the present invention;

[0030] Figure 2 A flow chart for determining whether a user meets a preset transfer passenger identification condition provided by the present invention;

[0031] Figure 3 A system architecture diagram of a departure control system provided by the present invention;

[0032] Figure 4 A flowchart of a process of processing data by a departure control system provided by the present invention;

[0033] Figure 5 A flow chart of a process for identifying a passenger's connecting flight provided by the present invention;

[0034] Figure 6 A flowchart of a process for determining whether a passenger is a connecting flight passenger provided by the present invention;

[0035] Figure 7 A schematic structural diagram of a travel data processing device provided by the present invention;

[0036] Figure 8 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION

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

[0038] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0039] An embodiment of the present invention provides a method for processing trip data. The execution subject of the method may be an electronic device, which may be a server, and a departure control system may be run on the server. The method flow chart of the method is shown in FIG. Figure 1 As shown, specifically including:

[0040] S101: In response to a travel data processing instruction, determining a user corresponding to the travel data processing instruction.

[0041] In the method provided by the embodiment of the present invention, the travel data processing instruction may be an instruction triggered by receiving an information change message.

[0042] Optionally, an information change message corresponding to the travel data processing instruction may be determined, passenger information contained in the information change message may be obtained, and a user corresponding to the travel data processing instruction may be determined based on the passenger information. The user may be a passenger.

[0043] S102: Determine whether the user meets the preset transfer passenger identification conditions. If yes, execute S103; if no, execute S104.

[0044] The state of the user's identification switch may be determined, and the state of the identification switch may be used to determine whether the user meets a preset transfer passenger identification condition, where the transfer passenger identification condition may be that the user's switch state is in an on state.

[0045] S103: Acquire an itinerary combination of the user; the itinerary combination includes a plurality of itineraries sorted in chronological order.

[0046] In the method provided by the embodiment of the present invention, the user's itinerary can be determined based on his / her flight information.

[0047] S104: End the identification of the user's connecting trip.

[0048] S105: Selecting a center stroke from each of the strokes in the stroke combination.

[0049] In the method provided by the embodiment of the present invention, one or more strokes can be arbitrarily selected from the stroke combination as the central stroke.

[0050] S106: Determine whether there is a transfer-connection combination to which the central trip belongs in the trip combination, if yes, execute S107, if not, execute S108.

[0051] In the method provided by an embodiment of the present invention, when the central itinerary is neither the first itinerary in the itinerary combination nor the last itinerary in the itinerary combination, the central itinerary can be taken as the center, and it can be determined in sequence whether the itineraries before and after the central itinerary are the transfer connections corresponding to the central itinerary, and the central itinerary and the transfer connections corresponding to the central itinerary can be combined into a transfer connection combination.

[0052] S107: Obtain a new itinerary combination based on each itinerary in the itinerary combination except the transfer-connecting itinerary combination; wherein the transfer-connecting itinerary combination to which the central itinerary belongs includes a plurality of itineraries that are continuous in time sequence, and two itineraries that are adjacent in time sequence in the transfer-connecting itinerary combination meet the transfer-connecting itinerary conditions corresponding to the two itineraries that are adjacent in time sequence.

[0053] In the method provided by the embodiment of the present invention, the transfer-connection combination to which the central trip belongs includes the central trip and trips continuous with the central trip.

[0054] Specifically, the transfer connection conditions corresponding to two chronologically adjacent itineraries may be that the airports corresponding to the two itineraries provide transfer connection passenger services and / or the flight information of the itineraries satisfies the pre-configured transfer connection rules.

[0055] Among them, the flight information may include one or more of flight number, airline information, flight schedule, take-off time, arrival time, departure station and arrival station. If the airlines of the two itineraries are cooperative airlines, the flight numbers of the two itineraries are within the preset flight number range, the arrival station of the first itinerary of the two itineraries is the same as the departure station of the second itinerary, the departure station of the first itinerary is not the same as the arrival station of the second itinerary, the flight schedules of the two itineraries are within the preset flight schedules, and the connection time of the two flights is within the preset time range, then it is determined that the two itineraries meet the transfer and connecting rules, and the time sequence of the first itinerary of the two itineraries that are adjacent in time sequence precedes the time sequence of the second itinerary.

[0056] S108: Obtain a new stroke combination according to each stroke in the stroke combination except the central stroke.

[0057] In the method provided by the embodiment of the present invention, a new itinerary combination can be formed by each itinerary other than the central itinerary in the itinerary combination, and each itinerary in the new itinerary combination is sorted in the order of their travel time.

[0058] S109: When a new itinerary combination is obtained, determine whether the new transfer-connection combination satisfies the condition for stopping iteration. If so, execute S110; if not, execute S111.

[0059] In the method provided by the embodiment of the present invention, the condition for stopping iteration may be that the number of remaining trips in the new transfer-connection combination is not greater than a preset threshold, and the threshold may be any value, for example, the threshold may be 1.

[0060] S110: Determine a new central trip in the new transfer-connection combination, and re-execute 106 to determine whether the new trip combination includes the transfer-connection combination to which the new central trip belongs.

[0061] In the method provided by the embodiment of the present invention, a feasible way to determine a new central itinerary in a new transfer and connecting trip combination may be: in the new transfer and connecting trip combination, the itinerary closest in time sequence to the central itinerary is used as the new central itinerary; specifically, in each iteration process, the central itinerary selected for the first time may be used as a reference, and in the new transfer and connecting trip combination, the itinerary closest in time sequence to the central itinerary selected for the first time may be used as the new central itinerary; or, in the new transfer and connecting trip combination, the itinerary closest in time sequence to the central itinerary selected for the previous time may be used as the new central itinerary.

[0062] For example, the original central itinerary is T7, "7" is its time sequence, and the itineraries in the new transfer and connecting combination are T1, T2, T3, T4, T11 and T12. It can be seen that in the new transfer and connecting combination, itinerary T4 is closest to the time sequence of the original central itinerary T7, so T4 can be used as the new central itinerary.

[0063] Optionally, if there are multiple trips in the new transfer and connection combination that are closest to the original central trip in time sequence, you can select any one of the multiple trips that are closest to the original central trip in time sequence as the new central trip, or you can determine all the multiple trips that are closest to the original central trip in time sequence as the new central trip.

[0064] S111: Obtaining various transfer connections of the user.

[0065] The determined transfer-connection combinations may be used as the user's transfer-connection combinations, and the number of the user's transfer-connection combinations may be one or more.

[0066] By applying the itinerary data processing method provided by the present invention, when the user chooses to book tickets in sections, the user's transfer connections can be accurately identified, thereby providing a guarantee for the user's transfer connection service and improving the user experience.

[0067] The method provided in the embodiment of the present invention is based on the above implementation process. Specifically, the determination of whether the user meets the preset transfer passenger identification conditions is as follows: Figure 2 As shown, specifically including:

[0068] S201: Acquire status information of an identification switch corresponding to the user.

[0069] In the method provided by an embodiment of the present invention, the status information of the identification switch may be an on state or an off state, and the status of the identification switch is set according to the identification authority of the user. When the user has the identification authority, the status information of the identification switch may be an on state, that is, indicating that the user has registered for the transfer connection identification function; when the user does not have the identification authority, the status information of the identification switch is an off state, that is, indicating that the user has not registered for the transfer connection identification function.

[0070] S202: If the status information indicates that the user has registered for a transfer connection identification function, it is determined that the user meets a preset transfer connection passenger identification condition.

[0071] S203: If the status information indicates that the user has not registered for the transfer connection identification function, it is determined that the user does not meet the preset transfer connection passenger identification condition.

[0072] The method provided by the embodiment of the present invention is based on the above implementation process. Specifically, the step of obtaining the itinerary combination of the user includes:

[0073] Acquire the itinerary information of the user; the itinerary information includes each itinerary of the user;

[0074] The itineraries are sorted in descending order of the travel time of each itinerary to obtain the itinerary combination of the user.

[0075] The user's itinerary information may be obtained based on the flight information of the user's current flight.

[0076] The method provided by the embodiment of the present invention is based on the above implementation process. Specifically, the step of judging whether the currently determined new transfer connection combination satisfies a preset stop iteration condition includes:

[0077] Obtain the number of currently remaining trips in the new transfer connection combination;

[0078] Determining whether the number of currently remaining trips in the new transfer-connection combination is greater than a preset number threshold;

[0079] If the number is greater than a preset threshold, it is determined that the new transfer connection combination does not meet the preset stop iteration condition;

[0080] If the number is not greater than a preset threshold, it is determined that the new transfer connection combination meets a preset stop iteration condition.

[0081] Among them, the quantity threshold may be 1. If the number of trips in the new transfer-connection combination is less than or equal to 1, it is determined that the new transfer-connection combination meets the stop iteration condition; if the number of trips in the new transfer-connection combination is greater than 1, it is determined that the new transfer-connection combination does not meet the stop iteration condition.

[0082] The method provided by the embodiment of the present invention is based on the above implementation process. Specifically, after obtaining each transfer connection of the user, the method further includes:

[0083] Adding a transfer identifier corresponding to each of the transfer connections for the user;

[0084] Each of the transfer connections is associated with its corresponding transfer identifier to obtain the connection information of the user.

[0085] Among them, when receiving the user's check-in request, it is determined whether the user has a transit ID. If the user has a transit ID, whether the itinerary corresponding to the transit ID matches the itinerary corresponding to the check-in request. If they match, the user can be prompted to apply for the transit service. When the selection result sent by the user based on the prompt is received, the check-in operation corresponding to the selection result is executed. The check-in operation can be a regular check-in operation or a transit service check-in operation.

[0086] The itinerary data processing method provided in the embodiment of the present invention can be applied to the field of air transportation. The itinerary data processing method can be executed by a departure control system, thereby realizing the service of connecting passengers. Figure 3 , which is the system architecture diagram of the departure control system, including passenger query component, departure front-end component, order component and departure control component.

[0087] The passenger inquiry component can collect passenger flight inquiry, ticket booking, check-in and other message instructions, and send them to the reservation component and departure front-end component.

[0088] The booking component can receive passenger query front-end message instructions, generate order information, and send it to the departure component.

[0089] The departure control component can store passenger data of all flights in the departure stage and parse order change information; at the same time, it initializes flights according to order information, generates departure flight information, and identifies and judges generalized transfer passengers; when a passenger has an itinerary combination that meets the generalized transfer conditions, the departure control component adds a generalized transfer identifier to the passenger, links the itinerary combination, and provides a basis for subsequent transfer services.

[0090] The departure front-end component can determine whether the passenger information contains a generalized transfer mark, and prompt the passenger to handle the corresponding service based on the specific information.

[0091] The process of data processing of the departure control system is shown in Figure 4 , users can query flight information, book tickets, and check in through the passenger front-end query component. After the user performs the booking operation through the front-end query component, the front-end query component sends the booking instruction corresponding to the booking operation to the booking component, so that the booking component generates order information and sends the order information to the departure control component. The departure control component initializes the flight and generates departure flight information. When the user has an itinerary combination that meets the transfer connection conditions, a transfer mark is added for the user, and the itinerary combination is linked to provide a basis for subsequent transfer services; if there are marked passengers who no longer meet the general transfer connection conditions, the departure control system should promptly delete the passenger's general transfer mark, disconnect the link to the itinerary combination, and update the status of the passenger transfer service in a linked manner.

[0092] The passenger checks in through the front-end query component, which generates a corresponding check-in instruction and sends the check-in instruction to the departure front-end component. The departure front-end component determines whether the passenger corresponding to the check-in instruction has a transfer identification. If the passenger has a transfer identification, the passenger is prompted to apply for transfer service. The passenger can choose whether to apply for check-in with generalized transfer service through the departure front-end control component. The departure front-end control component receives the passenger's selection result and performs the corresponding check-in operation based on the selection result. The check-in operation can be a regular check-in operation or a check-in operation with transfer service.

[0093] Among them, all itinerary information of the passenger can be extracted and sorted by flight time of the itinerary, T1, T2, T3...Tn...Tm. When the passenger's itinerary meets the following conditions, the passenger can be determined to be a generalized transfer passenger:

[0094] 1. For two consecutive itineraries, the arrival destination of the previous flight must be the same as that of the next flight.

[0095] 2. The route combination that forms a broad transfer connection cannot have completely repeated airports.

[0096] For example, T1: departure station A - arrival station B; T2: departure station B - arrival station A; the airports of these two itineraries are exactly the same and do not meet the connecting flight conditions.

[0097] 3. For two adjacent itineraries, the two flights must meet the agreement rules established by the airline: flight number, route, flight schedule, connection time, validity period of the rules, etc.

[0098] Optionally, if S1: departure station A-arrival station C, S2: departure station B-arrival station C, S3: departure station C-arrival station D, when performing generalized transfer connection identification, the trip with the closest time interval is selected.

[0099] Specifically, passengers with connecting flights in a broad sense refer to passengers who travel continuously on two or more flights. The flights are booked separately, forming multiple reservation orders. The flights of each segment of the route can be refunded or rescheduled separately. The passenger's itinerary changes dynamically. If the connecting flight restrictions are met, they can enjoy connecting check-in, connecting baggage and other services. We define such passengers as connecting passengers in a broad sense.

[0100] In the method provided in the embodiment of the present invention, the process of identifying the connecting flight of the passenger is as follows: Figure 5 As shown, specifically including:

[0101] Step 1: After the flight is initialized, the departure control system generates flight and passenger information and stores passenger information for all initialized flights.

[0102] Step 2: Information changes in the passenger order system will also be sent to the departure control system in real time for storage.

[0103] Step 3: After receiving the information change message, the departure control system performs a logical judgment on the generalized transfer passengers.

[0104] Step 4: Determine whether the generalized transfer passenger identification switch is turned on. If the switch is not turned on, the process ends.

[0105] Step 5. If the identification switch is on, query all the passenger's itineraries according to the passenger's name and ID number.

[0106] Step 6: Perform logical judgment on generalized transfer passengers according to the rules. The rules for defining generalized transfer passengers are configurable. The rules can set the airports that open generalized transfer passenger services, the cooperating airlines, the flight number range, the flight schedule, and the connection time between the two segments. The connection time refers to the departure time of the second segment - the arrival time of the first segment. The connection time can be configured as 40 minutes, etc.

[0107] For example, you can configure rules for Xishuangbanna Airport and Kunming Airport. Xishuangbanna Airport and Kunming Airport have opened 3U and MU generalized transfer services, and the shortest connection time for domestic segments is 40 minutes. For the following adjacent itineraries:

[0108] Itinerary 1: Xishuangbanna-Kunming (3U8622) Departure time: 06:45 Arrival time: 08:00;

[0109] Itinerary 2: Kunming-Harbin (MU5821) Departure time: 08:20 Arrival time: 10:20;

[0110] Itinerary 3: Kunming-Harbin (MU5823) Departure time: 09:15 Arrival time: 11:00.

[0111] Among them, itinerary 1 and itinerary 3 meet the transfer connection conditions, that is, itinerary 1 and itinerary 3 are transfer connections.

[0112] Specifically, the process of determining whether a passenger is a connecting flight passenger, such as Figure 6 As shown, specifically including:

[0113] Step A: Receive the passenger list report of the flight.

[0114] Step B: determine whether the generalized transfer passenger identification switch is turned on. If the generalized transfer identification function is not turned on, the system does not perform identification.

[0115] Step C: extract all the itineraries of the passenger according to the passenger name and ID number, and sort them according to the flight time of the itinerary, T1, T2...Tn...Tm.

[0116] Step D: Taking Tn as the center trip, determine whether the previous trip Tn-1, the next trip Tn+1 and Tn meet the conditions of the generalized transfer definition rule. If they do, continue to determine the generalized transfer connection relationship between the previous trip Tn-2 and Tn-1, and the next trip Sn+2 and Sn+1 until the conditions are no longer met.

[0117] Step E: Record the generalized transfer trip combinations Tn-2, Tn-1, Tn, Tn+1, and Tn+2 identified in this cycle, and delete the trips in the combination from the original trip combination.

[0118] Step F: Continue to identify the remaining trips before Sn, take the trip closest to Sn as the center trip, and confirm whether there is a trip combination that satisfies the generalized transfer relationship. Continue to identify the remaining trips after Sn, take the trip closest to Sn as the center trip, and confirm whether there is a trip combination that satisfies the generalized transfer relationship. Delete the trips that form the generalized transfer combination and the trips that do not satisfy the generalized transfer relationship from the original trip combination.

[0119] Step G: When the number of trips in the final trip combination is less than or equal to 1, the identification process ends.

[0120] Step H: adding a generalized transfer identifier to passengers of corresponding flights according to the identified generalized transfer and connecting flight combinations, and linking the itinerary combinations to form connecting flight information, thereby providing a data basis for subsequent transfer services.

[0121] Step I: The identified passenger receives the passenger update information, re-identifies the passenger's generalized transfer connection relationship according to the above steps, and dynamically updates the passenger information as needed; if the identified passenger no longer meets the generalized transfer connection conditions, the departure control system shall promptly delete the passenger's generalized transfer identification, disconnect the link of the itinerary combination, and update the status of the passenger's transfer service in a linked manner.

[0122] and Figure 1 Corresponding to the method described above, the embodiment of the present invention further provides a travel data processing device for Figure 1 In order to implement the method in the embodiment of the present invention, the travel data processing device provided in the embodiment of the present invention can be applied to electronic equipment, and its structural diagram is as follows: Figure 7 As shown, specifically including:

[0123] A determination unit 701, configured to determine a user corresponding to the travel data processing instruction in response to the travel data processing instruction;

[0124] The first judging unit 702 is used to judge whether the user meets the preset identification condition;

[0125] The acquisition unit 703 is used to acquire an itinerary combination of the user if the user meets the identification condition; the itinerary combination includes multiple itineraries sorted in chronological order;

[0126] A selection unit 704, configured to select a central stroke from each of the strokes in the stroke combination;

[0127] The second judgment unit 705 is used to judge whether there is a transfer and connecting trip combination to which the central trip belongs in the trip combination;

[0128] The first execution unit 706 is configured to determine a new itinerary combination according to each itinerary other than the transfer-connection combination in the itinerary combination if the transfer-connection combination to which the central itinerary belongs exists in the itinerary combination; wherein the transfer-connection combination to which the central itinerary belongs includes a plurality of itineraries that are sequentially continuous in time, and two itineraries that are sequentially adjacent in time in the transfer-connection combination meet the transfer-connection conditions corresponding to the two itineraries that are sequentially adjacent in time;

[0129] The second execution unit 707 is configured to determine a new itinerary combination according to each itinerary in the itinerary combination except the central itinerary if the transfer-connection itinerary combination to which the central itinerary belongs does not exist in the itinerary combination;

[0130] The iteration unit 708 is used to determine whether the new transfer connection combination satisfies the stop iteration condition when a new itinerary combination is determined. If not, a new central itinerary is determined in the new transfer connection combination, and it is re-determined whether there is a transfer connection combination to which the new central itinerary belongs in the new itinerary combination, until the currently determined new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer connection of the user.

[0131] In an embodiment provided by the present invention, based on the above solution, specifically, the first judging unit 702 includes:

[0132] A first acquisition subunit, used to acquire the status information of the identification switch corresponding to the user;

[0133] A first determination subunit is configured to determine that the user meets a preset transfer passenger identification condition if the status information indicates that the user has registered for a transfer identification function;

[0134] The second determination subunit is configured to determine that the user does not meet a preset transfer passenger identification condition if the status information indicates that the user has not registered for a transfer connection identification function.

[0135] In an embodiment provided by the present invention, based on the above solution, specifically, the acquisition unit 703 includes:

[0136] A second acquisition subunit is used to acquire the itinerary information of the user; the itinerary information includes each itinerary of the user;

[0137] The sorting subunit is used to sort the itineraries in descending order of the travel time of each itinerary to obtain the itinerary combination of the user.

[0138] In an embodiment provided by the present invention, based on the above solution, specifically, the iteration unit 708 for determining whether the currently determined new transfer connection combination satisfies a preset stop iteration condition is configured as follows:

[0139] Obtain the number of currently remaining trips in the new transfer connection combination;

[0140] Determining whether the number of currently remaining trips in the new transfer-connection combination is greater than a preset number threshold;

[0141] If the number is greater than a preset threshold, it is determined that the new transfer connection combination meets a preset stop iteration condition;

[0142] If the number is not greater than a preset threshold, it is determined that the new transfer connection combination does not meet a preset condition for stopping iteration.

[0143] In an embodiment provided by the present invention, based on the above solution, specifically, the travel data processing device further includes a processing unit, and the processing unit is configured to:

[0144] Adding a transfer identifier corresponding to each of the transfer connections for the user;

[0145] Each of the transfer connections is associated with its corresponding transfer identifier to obtain the connection information of the user.

[0146] The specific principles and execution processes of each unit and module in the travel data processing device disclosed in the above embodiment of the present invention are the same as the travel data processing method disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the travel data processing method provided in the above embodiment of the present invention, and will not be repeated here.

[0147] An embodiment of the present invention further provides a storage medium, wherein the storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned travel data processing method, and the method specifically includes:

[0148] In response to the travel data processing instruction, determining a user corresponding to the travel data processing instruction;

[0149] Determining whether the user meets the preset transfer passenger identification conditions;

[0150] If the user meets the connecting passenger identification condition, obtaining the itinerary combination of the user; the itinerary combination includes multiple itineraries sorted in chronological order;

[0151] Selecting a center stroke from each of the strokes in the stroke combination;

[0152] Determining whether there is a transfer-connection combination to which the central itinerary belongs in the itinerary combination;

[0153] If the itinerary combination includes a transfer-connection combination to which the central itinerary belongs, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the transfer-connection combination; wherein the transfer-connection combination to which the central itinerary belongs includes a plurality of itineraries that are sequentially continuous in time, and two itineraries that are sequentially adjacent in time in the transfer-connection combination meet the transfer-connection conditions corresponding to the two itineraries that are sequentially adjacent in time;

[0154] If the transfer-connection combination to which the central itinerary belongs does not exist in the itinerary combination, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the central itinerary;

[0155] When a new itinerary combination is obtained, it is determined whether the new transfer-connection combination satisfies the stop iteration condition. If not, a new central itinerary is determined in the new transfer-connection combination, and it is re-determined whether the new itinerary combination contains the transfer-connection combination to which the new central itinerary belongs, until the currently obtained new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer-connection combination of the user.

[0156] In the above method, optionally, the determining whether the user meets a preset transfer passenger identification condition includes:

[0157] Acquire status information of an identification switch corresponding to the user;

[0158] If the status information indicates that the user has registered for the transfer connection identification function, determining that the user meets the preset transfer connection passenger identification condition;

[0159] If the status information indicates that the user has not registered for the transfer connection identification function, it is determined that the user does not meet the preset transfer connection passenger identification condition.

[0160] In the above method, optionally, obtaining the itinerary combination of the user includes:

[0161] Acquire the itinerary information of the user; the itinerary information includes each itinerary of the user;

[0162] The itineraries are sorted in descending order of the travel time of each itinerary to obtain the itinerary combination of the user.

[0163] In the above method, optionally, the step of judging whether the currently determined new transfer connection combination satisfies a preset stop iteration condition includes:

[0164] Obtain the number of currently remaining trips in the new transfer connection combination;

[0165] Determining whether the number of currently remaining trips in the new transfer-connection combination is greater than a preset number threshold;

[0166] If the number is greater than a preset threshold, it is determined that the new transfer connection combination meets a preset stop iteration condition;

[0167] If the number is not greater than a preset threshold, it is determined that the new transfer connection combination does not meet a preset condition for stopping iteration.

[0168] Optionally, the above method, after obtaining each transfer connection of the user, further comprises:

[0169] Adding a transfer identifier corresponding to each of the transfer connections for the user;

[0170] Each of the transfer connections is associated with its corresponding transfer identifier to obtain the connection information of the user.

[0171] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 8As shown, it specifically includes a memory 801 and one or more instructions 802, wherein the one or more instructions 802 are stored in the memory 801 and are configured to be executed by one or more processors 803 to perform the following operations:

[0172] In response to the travel data processing instruction, determining a user corresponding to the travel data processing instruction;

[0173] Determining whether the user meets the preset transfer passenger identification conditions;

[0174] If the user meets the connecting passenger identification condition, obtaining the itinerary combination of the user; the itinerary combination includes multiple itineraries sorted in chronological order;

[0175] Selecting a center stroke from each of the strokes in the stroke combination;

[0176] Determining whether there is a transfer-connection combination to which the central itinerary belongs in the itinerary combination;

[0177] If the itinerary combination includes a transfer-connection combination to which the central itinerary belongs, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the transfer-connection combination; wherein the transfer-connection combination to which the central itinerary belongs includes a plurality of itineraries that are sequentially continuous in time, and two itineraries that are sequentially adjacent in time in the transfer-connection combination meet the transfer-connection conditions corresponding to the two itineraries that are sequentially adjacent in time;

[0178] If the transfer-connection combination to which the central itinerary belongs does not exist in the itinerary combination, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the central itinerary;

[0179] When a new itinerary combination is obtained, it is determined whether the new transfer-connection combination satisfies the stop iteration condition. If not, a new central itinerary is determined in the new transfer-connection combination, and it is re-determined whether the new itinerary combination contains the transfer-connection combination to which the new central itinerary belongs, until the currently obtained new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer-connection combination of the user.

[0180] According to one or more embodiments of the present disclosure, Figure 1 An embodiment of the present invention provides a method for processing travel data, the method comprising:

[0181] In response to the travel data processing instruction, determining a user corresponding to the travel data processing instruction;

[0182] Determining whether the user meets the preset transfer passenger identification conditions;

[0183] If the user meets the connecting passenger identification condition, obtaining the itinerary combination of the user; the itinerary combination includes multiple itineraries sorted in chronological order;

[0184] Selecting a center stroke from each of the strokes in the stroke combination;

[0185] Determining whether there is a transfer-connection combination to which the central itinerary belongs in the itinerary combination;

[0186] If the itinerary combination includes a transfer-connection combination to which the central itinerary belongs, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the transfer-connection combination; wherein the transfer-connection combination to which the central itinerary belongs includes a plurality of itineraries that are sequentially continuous in time, and two itineraries that are sequentially adjacent in time in the transfer-connection combination meet the transfer-connection conditions corresponding to the two itineraries that are sequentially adjacent in time;

[0187] If the transfer-connection combination to which the central itinerary belongs does not exist in the itinerary combination, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the central itinerary;

[0188] When a new itinerary combination is obtained, it is determined whether the new transfer-connection combination satisfies the stop iteration condition. If not, a new central itinerary is determined in the new transfer-connection combination, and it is re-determined whether the new itinerary combination contains the transfer-connection combination to which the new central itinerary belongs, until the currently obtained new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer-connection combination of the user.

[0189] In the above method, optionally, the determining whether the user meets a preset transfer passenger identification condition includes:

[0190] Acquire status information of an identification switch corresponding to the user;

[0191] If the status information indicates that the user has registered for the transfer connection identification function, determining that the user meets the preset transfer connection passenger identification condition;

[0192] If the status information indicates that the user has not registered for the transfer connection identification function, it is determined that the user does not meet the preset transfer connection passenger identification condition.

[0193] In the above method, optionally, obtaining the itinerary combination of the user includes:

[0194] Acquire the itinerary information of the user; the itinerary information includes each itinerary of the user;

[0195] The itineraries are sorted in descending order of the travel time of each itinerary to obtain the itinerary combination of the user.

[0196] In the above method, optionally, the step of judging whether the currently determined new transfer connection combination satisfies a preset stop iteration condition includes:

[0197] Obtain the number of currently remaining trips in the new transfer connection combination;

[0198] Determining whether the number of currently remaining trips in the new transfer-connection combination is greater than a preset number threshold;

[0199] If the number is greater than a preset threshold, it is determined that the new transfer connection combination meets a preset stop iteration condition;

[0200] If the number is not greater than a preset threshold, it is determined that the new transfer connection combination does not meet a preset condition for stopping iteration.

[0201] Optionally, the above method, after obtaining each transfer connection of the user, further comprises:

[0202] Adding a transfer identifier corresponding to each of the transfer connections for the user;

[0203] Each of the transfer connections is associated with its corresponding transfer identifier to obtain the connection information of the user.

[0204] According to one or more embodiments of the present disclosure, Figure 6 An embodiment of the present invention provides a travel data processing device, the device comprising:

[0205] a determining unit, configured to determine, in response to the travel data processing instruction, a user corresponding to the travel data processing instruction;

[0206] A first judging unit, used to judge whether the user meets a preset identification condition;

[0207] an acquisition unit, configured to acquire an itinerary combination of the user if the user meets the identification condition; the itinerary combination comprises a plurality of itineraries sorted in chronological order of travel time;

[0208] A selection unit, used for selecting a center stroke from each of the strokes in the stroke combination;

[0209] A second judgment unit is used to judge whether there is a transfer-connection combination to which the central itinerary belongs in the itinerary combination;

[0210] A first execution unit is configured to determine a new itinerary combination according to each itinerary other than the transfer-connection combination in the itinerary combination if the transfer-connection combination to which the central itinerary belongs exists in the itinerary combination; wherein the transfer-connection combination to which the central itinerary belongs includes a plurality of itineraries that are sequentially continuous in time, and two itineraries that are sequentially adjacent in time in the transfer-connection combination meet the transfer-connection conditions corresponding to the two itineraries that are sequentially adjacent in time;

[0211] A second execution unit is used to determine a new itinerary combination according to each itinerary in the itinerary combination except the central itinerary if the transfer-connection itinerary combination to which the central itinerary belongs does not exist in the itinerary combination;

[0212] The iteration unit is used to determine whether the new transfer connection combination satisfies the stop iteration condition when a new itinerary combination is determined. If not, a new central itinerary is determined in the new transfer connection combination, and re-determine whether the transfer connection combination to which the new central itinerary belongs exists in the new itinerary combination, until the currently determined new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer connection of the user.

[0213] In the above device, optionally, the first judging unit includes:

[0214] A first acquisition subunit, used to acquire the state information of the identification switch corresponding to the user;

[0215] A first determination subunit is configured to determine that the user meets a preset transfer passenger identification condition if the status information indicates that the user has registered for a transfer identification function;

[0216] The second determination subunit is configured to determine that the user does not meet a preset transfer passenger identification condition if the status information indicates that the user has not registered for a transfer connection identification function.

[0217] In the above device, optionally, the acquisition unit includes:

[0218] A second acquisition subunit is used to acquire the itinerary information of the user; the itinerary information includes each itinerary of the user;

[0219] The sorting subunit is used to sort the itineraries in descending order of the travel time of each itinerary to obtain the itinerary combination of the user.

[0220] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0221] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0222] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0223] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0224] The above is a detailed introduction to a method for processing travel data provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for processing travel data, characterized in that: include: In response to the travel data processing instruction, determining a user corresponding to the travel data processing instruction; Determining whether the user meets the preset transfer passenger identification conditions; If the user meets the connecting passenger identification condition, obtaining the itinerary combination of the user; the itinerary combination includes multiple itineraries sorted in chronological order; Selecting a center stroke from each of the strokes in the stroke combination; When the central trip is neither the first trip nor the last trip in the trip combination, determining in sequence whether the trips before and after the central trip are connecting trips corresponding to the central trip; If there is a transfer connection corresponding to the central itinerary, the central itinerary and the transfer connection corresponding to the central itinerary are combined into a transfer connection combination; A new itinerary combination is obtained based on each itinerary other than the transfer-connection combination in the itinerary combination; wherein the transfer-connection combination to which the central itinerary belongs includes a plurality of itineraries that are continuous in time sequence, and two itineraries that are adjacent in time sequence in the transfer-connection combination meet the transfer-connection conditions corresponding to the two itineraries that are adjacent in time sequence; the transfer-connection conditions corresponding to the two itineraries that are adjacent in time sequence are that the airports corresponding to the two itineraries provide transfer-connection passenger services and / or the flight information to which the itineraries belong meet the pre-configured transfer-connection rules; If the transfer-connection combination to which the central itinerary belongs does not exist in the itinerary combination, a new itinerary combination is obtained according to each itinerary in the itinerary combination except the central itinerary; When a new itinerary combination is obtained, it is determined whether the new transfer-connection combination satisfies the stop iteration condition. If not, a new central itinerary is determined in the new transfer-connection combination, and it is re-determined whether the new itinerary combination contains the transfer-connection combination to which the new central itinerary belongs, until the currently obtained new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer-connection combination of the user.

2. The method according to claim 1, characterized in that The determining whether the user meets the preset transfer passenger identification condition includes: Acquire status information of an identification switch corresponding to the user; If the status information indicates that the user has registered for the transfer connection identification function, determining that the user meets the preset transfer connection passenger identification condition; If the status information indicates that the user has not registered for the transfer connection identification function, it is determined that the user does not meet the preset transfer connection passenger identification condition.

3. The method according to claim 1, characterized in that The obtaining the itinerary combination of the user includes: Acquire the itinerary information of the user; the itinerary information includes each itinerary of the user; The itineraries are sorted in descending order of the travel time of each itinerary to obtain the itinerary combination of the user.

4. The method according to claim 1, characterized in that: Determine whether the currently determined new transfer connection combination meets the preset stop iteration condition, including: Obtain the number of currently remaining trips in the new transfer connection combination; Determining whether the number of currently remaining trips in the new transfer-connection combination is greater than a preset number threshold; If the number is greater than a preset threshold, it is determined that the new transfer connection combination meets a preset stop iteration condition; If the number is not greater than a preset threshold, it is determined that the new transfer connection combination does not meet a preset condition for stopping iteration.

5. The method according to claim 1, characterized in that After obtaining each transfer and connecting flight combination of the user, the method further includes: Adding a transfer identifier corresponding to each of the transfer connections for the user; Each of the transfer connections is associated with its corresponding transfer identifier to obtain the connection information of the user.

6. A travel data processing device, characterized in that: include: a determining unit, configured to determine, in response to the travel data processing instruction, a user corresponding to the travel data processing instruction; A first judging unit, used to judge whether the user meets a preset identification condition; an acquisition unit, configured to acquire an itinerary combination of the user if the user meets the identification condition; the itinerary combination comprises a plurality of itineraries sorted in chronological order of travel time; A selection unit, used for selecting a center stroke from each of the strokes in the stroke combination; A second judgment unit is used to judge, when the central itinerary is not the first itinerary in the itinerary combination and is not the last itinerary in the itinerary combination, whether the itineraries before and after the central itinerary are connecting itineraries corresponding to the central itinerary; A first execution unit is configured to form a transfer connection combination by combining the central itinerary and the transfer connection corresponding to the central itinerary if there is a transfer connection corresponding to the central itinerary; and determine a new itinerary combination according to each itinerary other than the transfer connection combination in the itinerary combination; wherein the transfer connection combination to which the central itinerary belongs includes a plurality of itineraries that are continuous in time sequence, and two itineraries that are adjacent in time sequence in the transfer connection combination meet the transfer connection conditions corresponding to the two itineraries that are adjacent in time sequence; and the transfer connection conditions corresponding to the two itineraries that are adjacent in time sequence are that the airports corresponding to the two itineraries have opened transfer connection passenger services and / or the flight information to which the itineraries belong meet the pre-configured transfer connection rules; A second execution unit is used to determine a new itinerary combination according to each itinerary in the itinerary combination except the central itinerary if the transfer-connection itinerary combination to which the central itinerary belongs does not exist in the itinerary combination; The iteration unit is used to determine whether the new transfer-connection combination satisfies the stop iteration condition when a new itinerary combination is determined. If not, a new central itinerary is determined in the new transfer-connection combination, and re-determine whether the transfer-connection combination to which the new central itinerary belongs exists in the new itinerary combination, until the currently determined new itinerary combination satisfies the preset stop iteration condition, so as to obtain each transfer-connection combination of the user.

7. The device according to claim 6, characterized in that The first judging unit includes: A first acquisition subunit, used to acquire the status information of the identification switch corresponding to the user; A first determination subunit is configured to determine that the user meets a preset transfer passenger identification condition if the status information indicates that the user has registered for a transfer identification function; The second determination subunit is configured to determine that the user does not meet a preset transfer passenger identification condition if the status information indicates that the user has not registered for a transfer connection identification function.

8. The device according to claim 6, characterized in that The acquisition unit comprises: A second acquisition subunit is used to acquire the itinerary information of the user; the itinerary information includes each itinerary of the user; The sorting subunit is used to sort the itineraries in descending order of the travel time of each itinerary to obtain the itinerary combination of the user.

9. A storage medium, characterized in that: The storage medium includes storage instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the travel data processing method according to any one of claims 1 to 5.

10. An electronic device, characterized in that: It comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the travel data processing method as described in any one of claims 1 to 5.