CN112965978A - Method and device for confirming relation between passenger and pedestrian, electronic equipment and storage medium - Google Patents
Method and device for confirming relation between passenger and pedestrian, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112965978A CN112965978A CN202110259369.4A CN202110259369A CN112965978A CN 112965978 A CN112965978 A CN 112965978A CN 202110259369 A CN202110259369 A CN 202110259369A CN 112965978 A CN112965978 A CN 112965978A
- Authority
- CN
- China
- Prior art keywords
- passenger
- flight
- information
- passengers
- pedestrian
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 111
- 230000008569 process Effects 0.000 claims abstract description 56
- 230000008859 change Effects 0.000 claims description 12
- 238000012163 sequencing technique Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 12
- 230000001174 ascending effect Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000011232 storage material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2291—User-Defined Types; Storage management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2453—Query optimisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24553—Query execution of query operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Economics (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Computational Linguistics (AREA)
- Development Economics (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a method and a device for confirming the relation between a passenger and a pedestrian, an electronic device and a storage medium, wherein the confirming method comprises the following steps: when the real-time passenger panoramic information corresponding to the passenger is changed, obtaining a passenger identity identification number ID for uniquely identifying the passenger based on the obtained passenger identity information and passenger historical boarding data; acquiring a passenger-to-flight information group of all passengers on a corresponding flight in the process of changing the flight state into the arrival state; calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table; and if the number is more than or equal to 2, determining that the passenger corresponding to the passenger ID combination is in the passenger-pedestrian relationship. In the scheme, the relation between passengers and pedestrians is confirmed based on the historical data of massive passengers, so that the purpose of optimizing the travel experience of the passengers based on the confirmed relation between the passengers and the pedestrians is achieved.
Description
Technical Field
The invention relates to the technical field of government data services, in particular to a method and a device for confirming the relationship between passengers and pedestrians, electronic equipment and a storage medium.
Background
At present, when passengers travel by airplane, the relation between passengers and pedestrians is very important passenger behavior data.
In the prior art, the passenger co-pedestrian relationship is generally based on the identification of the same flight co-pedestrian, when a new reservation is generated for a passenger, more targeted and more attentive services cannot be provided at different reservation stages of the passenger according to the existing passenger co-pedestrian relationship, and the travel experience of the passenger cannot be optimized.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for confirming a relationship between a passenger and a pedestrian, so as to achieve an objective of optimizing a travel experience of the passenger.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the embodiment of the invention discloses a method for confirming the relation between a passenger and a pedestrian, which comprises the following steps:
when the real-time passenger panoramic information corresponding to the passenger is changed, acquiring passenger boarding data and passenger historical boarding data of the passenger, and obtaining a passenger identification number ID for uniquely identifying the passenger based on the passenger identity information and the passenger historical boarding data;
in the process that the flight state of the flight is changed from a take-off state to an arrival state, acquiring a passenger pair flight information group corresponding to all passengers on the flight and storing the passenger pair flight information group in a data table, wherein the passenger pair flight information group consists of a passenger ID combination and flight information;
calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table;
and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
Optionally, after determining that the passenger corresponding to the passenger ID number combination is a fellow passenger, the method further includes:
acquiring navigation information of the passengers in the same line, wherein the navigation information comprises passenger information, flight segment information of the same line, seat information, luggage information and a travel target label of each time;
and storing the navigation information of the passengers in the same-row in a pre-established historical travel same-row relationship result table.
Optionally, the method further includes:
acquiring a query request, wherein the query request comprises a passenger ID and query conditions;
and inquiring the historical travel co-pedestrian relation result table based on the inquiry request to acquire the co-pedestrian information meeting the inquiry condition.
Optionally, the method further includes:
acquiring an expansion request, wherein the expansion request comprises a passenger ID and co-traveler information change or newly-added information;
and changing or adding the co-pedestrian information corresponding to the passenger ID stored in the historical travel co-pedestrian relationship result table based on the expansion request.
Optionally, in the process of changing the flight status of the flight from the departure status to the arrival status, acquiring a set of passenger-to-flight information corresponding to all passengers on the flight, and storing the set of passenger-to-flight information in a data table, where the set of passenger-to-flight information includes:
in the process that the flight state of the flight is changed from the take-off state to the arrival state, acquiring the passenger IDs of all passengers on the flight, and sequencing the passenger IDs;
based on the sorting, arranging and combining all the passenger IDs pairwise to obtain passenger pairs;
combining each passenger pair with the flight information of the flight in a key-value pair key-value mode to obtain passenger pair flight information, and collecting all the passenger pair flight information to obtain a passenger pair flight information group, wherein the passenger pair is used as a key, the flight information is used as a value, and the passenger pair flight information group is a key-value information group;
storing the key-value information set in a data table in a key-value pair key-value manner.
The second aspect of the embodiment of the invention discloses a device for confirming the relation between a passenger and a pedestrian, which comprises:
the first processing module is used for acquiring passenger boarding data and passenger historical boarding data when the real-time passenger panoramic information corresponding to the passenger is changed, and acquiring a passenger identification number ID for uniquely identifying the passenger based on the passenger identity information and the passenger historical boarding data;
the second processing module is used for acquiring a passenger-to-flight information group corresponding to all passengers on the flight in the process of changing the flight state of the flight from a take-off state to an arrival state, and storing the passenger-to-flight information group in a data table, wherein the passenger-to-flight information group is formed by a passenger ID combination and flight information;
the calculation module is used for calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table;
and the determining module is used for determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2.
Optionally, the method further includes: a storage module;
the storage module is used for acquiring the navigation information of the passengers in the same row, wherein the navigation information comprises passenger information, flight segment information of the same row, seat information, luggage information and travel target tags of each time, and the navigation information of the passengers in the same row is stored in a pre-established historical travel same-traveler relationship result table.
Optionally, the method further includes: a query module;
the inquiry module is used for acquiring an inquiry request, wherein the inquiry request comprises a passenger ID and an inquiry condition, inquiring the historical travel co-pedestrian relation result table based on the inquiry request, and acquiring the co-pedestrian information meeting the inquiry condition.
The third aspect of the embodiment of the present invention discloses an electronic device, where the electronic device is configured to run a program, where the program executes the method for confirming the relationship between a passenger and a pedestrian as disclosed in the first aspect of the embodiment of the present invention when running.
A fourth aspect of the embodiments of the present invention discloses a computer storage medium, where the storage medium includes a program for confirming a relationship between a passenger and a pedestrian, where the program, when executed by a processor, implements the method for confirming a relationship between a passenger and a pedestrian as disclosed in the first aspect of the embodiments of the present invention.
Based on the method, the device, the electronic device and the storage medium for confirming the relation between the passenger and the pedestrian, provided by the embodiment of the invention, the confirming method comprises the following steps: when the real-time passenger panoramic information corresponding to the passenger is changed, acquiring passenger boarding data and passenger historical boarding data of the passenger, and obtaining a passenger identification number ID for uniquely identifying the passenger based on the passenger identity information and the passenger historical boarding data; in the process that the flight state of the flight is changed from a take-off state to an arrival state, acquiring a passenger pair flight information group corresponding to all passengers on the flight and storing the passenger pair flight information group in a data table, wherein the passenger pair flight information group consists of a passenger ID combination and flight information; calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table; and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship. In the scheme, the relation between passengers and pedestrians is confirmed based on the historical data of massive passengers, so that the purpose of optimizing the travel experience of the passengers based on the confirmed relation between the passengers and the pedestrians is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for confirming a relationship between a passenger and a pedestrian according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a process for obtaining a set of passenger-to-flight information of a flight whose flight status is an arrival status according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another method for confirming a relationship between a passenger and a pedestrian according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for confirming a relationship between a passenger and a pedestrian according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for confirming a passenger peer relationship according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a device for confirming a relationship between a passenger and a pedestrian according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another apparatus for confirming a relationship between a passenger and a pedestrian according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a structure for confirming a relationship between a passenger and a pedestrian according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It can be known from the background art that when a new reservation is generated for a passenger, more targeted and more confident services cannot be provided at different reservation stages of the passenger according to the existing passenger co-pedestrian relationship, and the travel experience of the passenger cannot be optimized.
Therefore, the embodiment of the invention provides a method and a device for confirming the relationship between passengers and pedestrians, an electronic device and a storage medium.
Referring to fig. 1, a flow chart of a method for confirming a relationship between a passenger and a pedestrian according to an embodiment of the present invention is shown, where the method includes the following steps:
step S101: when the real-time passenger panoramic information corresponding to the passenger is changed, passenger boarding data and passenger historical boarding data are obtained, and a passenger Identity (Identity Document, ID) which uniquely identifies the passenger is obtained based on the passenger Identity information and the passenger historical boarding data.
In step S101, when a passenger travels by using a plurality of identification cards and the passenger is identified as the same person, the passenger is merged into a passenger identification number ID that uniquely identifies the passenger.
The real-time passenger panoramic information comprises preset information, ticket drawing information, security check information and check-in and departure information, wherein the preset information comprises preset time, preset agent information, flight segment information, passenger personal information and the like, the ticket drawing information comprises ticket numbers, payment information, ticket connection information and the like, the security check information comprises security check time, a security check channel, whether the check is over or not and the check-in and departure information comprises departure flight information, a check-in mode and the like.
In step S101, the real-time passenger panoramic information corresponding to the passenger is obtained in advance, and the specific obtaining process includes the following steps:
step S11: in the process of passenger reservation taking the airplane, if new passenger travel change is monitored, the host real-time data acquisition system is triggered to generate a real-time message, and the real-time message is pushed to the big data platform.
In step S11, the messages may be classified into seat reservation messages, ticket messages, passenger departure on-board messages, flight change messages, and the like according to the service type.
The message is pushed when the passenger journey is changed, for example: new reserved seats, seat changes, passenger check-in changes, flight status changes, and the like.
The real-time messages are pushed to the big data platform at a response rate of millisecond level.
In the specific implementation process of step S11, in the process of passenger reservation for boarding, once a new passenger travel change is monitored, the host real-time data acquisition system is triggered to generate a real-time message, and the real-time message is pushed to the big data platform.
Step S12: and the real-time data processing operation of the big data platform updates the passenger boarding data and the latest state of the flight in real time according to the type and content of the message.
In the process of implementing step S12, the real-time data processing job of the big data platform updates the passenger boarding data and the latest status of the flight in real time according to the type and content of the message pushed to the big data platform.
For example: the message type is a seat reservation message, the content of the message is changed from the original seat number of 36A to 45A, and the real-time data processing operation of the big data platform updates the passenger boarding data and the latest state of the flight in real time according to the seat reservation message and the seat numbers before and after the change.
Step S13: and updating passenger boarding data in real time based on the latest message combination to generate real-time passenger panoramic information.
In step S13, the combination form of the messages generally includes passenger reservation information, ticketing ticket information, passenger check-in information, and the like, where the passenger reservation information includes scheduled time, flight information, responsibility agency, space, passenger identity information, and the like, the ticketing ticket information includes ticket flight segment information, payment information, tax information, product codes, and the like, and the passenger check-in information includes flight information, passenger identity information, check-in channel, and the like.
In the process of implementing step S13, the passenger boarding data is updated in real time according to the latest message combinations, and real-time passenger panoramic information is generated.
For example: based on the seat reservation message and the seat numbers before and after the change in step S12, a latest message combination is formed, and the boarding data of the traveler is updated in real time according to the latest message combination formed, and the traveler panoramic information is generated.
In the embodiment of the invention, the real-time passenger boarding data is based on the real-time data of a booking system, a ticket system and a departure system.
In the specific implementation process of step S101, in the process of booking boarding of a traveler, if it is detected that the real-time traveler panoramic information corresponding to the traveler is changed, boarding data and traveler historical boarding data of the traveler are acquired, and a traveler identification number ID uniquely identifying the traveler is obtained based on the boarding data and the traveler historical boarding data of the traveler acquired and according to the identity information of the traveler and the traveler historical boarding data.
Step S102: and acquiring a passenger pair flight information group of all passengers on the corresponding flight in the process of changing the flight state of the flight from the takeoff state to the arrival state, and storing the information group in a data table.
In step S102, the traveler flight information group is composed of a traveler ID combination and flight information.
The passenger-to-flight information group is composed of a plurality of pieces of passenger-to-flight information, and each piece of passenger-to-flight information is composed of two passenger ID numbers and flight information.
The flight information comprises flight date, airline two-character code, flight number, departure airport IATA three-character code and arrival airport IATA three-character code.
For example: the flight date of a flight is 20200305, the flight number is XY003, the departure airport is AAA, and the arrival airport is BBB.
In the process of implementing step S102 specifically, in the process of changing the flight status of the flight from the departure status to the arrival status, that is, all the passengers on the flight have completed the journey, the passenger-to-flight information group corresponding to all the passengers on the flight is obtained, and all the passenger-to-flight information groups are stored in the data table.
Optionally, when the step S102 is executed, a process of acquiring a passenger-to-flight information set corresponding to all passengers on the flight and storing the passenger-to-flight information set in a data table in a process of changing the flight status of the flight from a takeoff status to an arrival status is involved, referring to fig. 2, a schematic flow diagram for acquiring a passenger-to-flight information set of a flight with a flight status being an arrival status according to an embodiment of the present invention is shown, and specifically includes the following steps:
step S201: and acquiring the passenger IDs of all passengers on the flight and sequencing the passenger IDs in the process of changing the flight state of the flight from the takeoff state to the arrival state.
In step S201, all the traveler IDs are sorted in the order from a to Z in the alphabet, that is, in the ascending order. Alternatively, the arrangement may be performed in a reverse order.
In the process of implementing step S201, in the process of changing the flight status of the flight from the departure status to the arrival status, that is, all the passengers on the flight have completed the journey, the passenger IDs of all the passengers on the flight are acquired, and all the passenger IDs are sorted in ascending order.
For example, three passengers are present in a flight, their passenger IDs are B, A, C, respectively, and the passenger IDs of the three passengers are sorted in ascending order, and the obtained sort is ABC.
In the embodiment of the present invention, the order of arranging the passenger IDs of the three passengers may be descending order, and the obtained order is CBA.
It should be noted that the order of sorting the passenger IDs is not limited to the above-disclosed sorting order in the embodiment of the present invention, and may be set by a technician on the basis of technical requirements.
Step S202: and carrying out pairwise arrangement and combination on all passenger IDs based on the sorting to obtain passenger pairs.
In the process of implementing step S202 specifically, according to the obtained sorting order, all passenger IDs are arranged and combined pairwise to obtain corresponding passenger pairs.
For example: based on the order ABC of ascending passenger IDs in step S201, three passenger pairs AB, AC, and BC are generated.
Step S203: and combining each passenger pair with the flight information of the flight by adopting a key-value pair key-value mode to obtain the passenger pair flight information, and collecting all the passenger pair flight information to obtain a passenger pair flight information group.
In an embodiment of the invention, the big data platform is Hbase stored, using a key-value storage structure.
In step S203, the traveler pair is the key, the flight information is the value, and the traveler pair flight information group is the key-value information group.
In the process of specifically implementing step S203, in the case of obtaining each traveler pair, combining each obtained traveler pair with the flight information of the flight in a key-value pair key-value manner to obtain the traveler-pair flight information, and integrating all the traveler-pair flight information to obtain a traveler-pair flight information group.
For example: if the flight date of a certain FLT-01 flight is 20200101, the flight number is XX001, the departure airport is YYY, and the arrival airport is ZZZ, the flight information can be combined into 20200101-XX 001-YYY-ZZZ.
Three passengers are on the FLT-01 flight, the passenger IDs are A, B and C respectively, and ascending sequencing is carried out to obtain three passenger pairs of AB, AC and BC.
Each passenger pair is combined with the flight information of the flight in a key-value pair manner to obtain the passenger pair flight information, as shown in table 1.
Table 1:
key | value |
AB | 20200101-XX001-YYY-ZZZ |
AC | 20200101-XX001-YYY-ZZZ |
BC | 20200101-XX001-YYY-ZZZ |
another example is: if the flight date of a certain FLT-02 flight is 20200201, the flight number is YY001, the departure airport is EEE, and the arrival airport is FFF, the flight information can be combined into 20200201-YY 001-EEE-FFF.
Three passengers are on the FLT-02 flight, the passenger IDs are B, C and D respectively, and ascending sequencing is carried out to obtain three passenger pairs of BC, BD and CD.
Each passenger pair is combined with the flight information of the flight in a key-value pair manner to obtain the passenger pair flight information, as shown in table 2.
Table 2:
key | value |
BC | 20200201-YY001-EEE-FFF |
BD | 20200201-YY001-EEE-FFF |
CD | 20200201-YY001-EEE-FFF |
and integrating the passenger pair flight information of FLT-01 and FLT-02 together to obtain a passenger pair flight information group, namely a key-value information group, as shown in Table 3.
Table 3:
key | value |
AB | 20200101-XX001-YYY-ZZZ |
AC | 20200101-XX001-YYY-ZZZ |
BC | 20200101-XX001-YYY-ZZZ |
BC | 20200201-YY001-EEE-FFF |
BD | 20200201-YY001-EEE-FFF |
CD | 20200201-YY001-EEE-FFF |
alternatively, all of the massive sets of flight to traveler information may be stored in an Hbase table.
Step S204: the key-value information group is stored in the data table in a key-value pair key-value manner.
In the process of specifically implementing step S204, in the case of obtaining the key-value information group, the obtained key-value information group is stored in the data table in a key-value-to-key-value manner.
Step S103: the number of pieces of traveler-to-flight information including the same traveler ID combination is calculated based on the historical traveler-to-flight information group stored in the data table.
In the process of implementing step S103 specifically, based on the historical passenger pair flight information groups stored in the data table, the passenger pairs are grouped and summarized according to key values, that is, the passenger pairs combined by the same passenger ID are grouped and summarized, and the number of values corresponding to the same key, that is, the number of times with the same trip is calculated.
Step S104: and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
Taking the example in step S203 as an example, from the data shown in table 3, it can be obtained that the number of values corresponding to BC traveler pairs is 2, that is, BC walked for 2 times, that is, B traveler and C traveler are related to each other.
The embodiment of the invention provides a method for confirming the relation between a passenger and a pedestrian, which comprises the following steps: when the real-time passenger panoramic information corresponding to the passenger is changed, acquiring passenger boarding data and passenger historical boarding data of the passenger, and obtaining a passenger identification number ID for uniquely identifying the passenger based on the passenger identity information and the passenger historical boarding data; in the process that the flight state of the flight is changed from a take-off state to an arrival state, acquiring a passenger pair flight information group corresponding to all passengers on the flight and storing the passenger pair flight information group in a data table, wherein the passenger pair flight information group consists of a passenger ID combination and flight information; calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table; and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship. In the scheme, the relation between passengers and pedestrians is confirmed based on the historical data of massive passengers, so that the purpose of optimizing the travel experience of the passengers based on the confirmed relation between the passengers and the pedestrians is achieved.
Based on the method for confirming the relationship between a passenger and a pedestrian shown in fig. 1 in the embodiment of the present invention, referring to fig. 3, a flowchart of another method for confirming the relationship between a passenger and a pedestrian provided in the embodiment of the present invention is shown, which includes the following steps:
step S301: when the real-time passenger panoramic information corresponding to the passenger is changed, passenger boarding data and passenger historical boarding data of the passenger are obtained, and a passenger identification number ID for uniquely identifying the passenger is obtained based on the passenger identification information and the passenger historical boarding data.
Step S302: and acquiring a passenger pair flight information group of all passengers on the corresponding flight in the process of changing the flight state of the flight from the takeoff state to the arrival state, and storing the information group in a data table.
Step S303: the number of pieces of traveler-to-flight information including the same traveler ID combination is calculated based on the historical traveler-to-flight information group stored in the data table.
Step S304: and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
The specific execution process of steps S301 to S304 is the same as that of steps S101 to S104 disclosed in fig. 1, and specific reference may be made to these steps, which are not described herein again.
Step S305: and acquiring the navigation information of the passengers in the same row.
In step S305, the navigation information includes traveler information, co-travel flight leg information, seat information, baggage information, and travel-by-travel target tag.
In the process of specifically implementing step S305, when the passenger corresponding to the passenger ID number combination is determined to be a fellow passenger, the navigation information of the fellow passenger is acquired based on the determined passenger ID number combination.
Step S306: and storing the navigation information of the passengers in the same-row in a pre-established historical travel same-row relationship result table.
In the process of implementing step S306 specifically, a historical travel co-traveler relationship result table is established in advance, and the acquired navigation information of the co-traveler is stored in the table.
Alternatively, in combination with the example in step S203, the co-pedestrian relationship between the BC traveler and the B traveler of the C traveler may be stored as shown in table 4 by using the B traveler as a storage agent.
Table 4:
optionally, the relationship between the mass passengers and the pedestrians may be stored in a storage manner shown in table 4, and stored in a pre-established historical travel relationship result table with the pedestrians.
According to the method for confirming the relation between the passengers and the pedestrians, provided by the embodiment of the invention, the relation between the passengers and the pedestrians is confirmed based on the historical data of massive passengers, and the obtained relation between the passengers and the pedestrians is stored in the historical travel and pedestrian relation result table according to the set storage mode, so that the confirmed relation between the passengers and the pedestrians is used for optimizing the travel experience of the passengers subsequently.
Based on the method for confirming the relationship between a passenger and a pedestrian as shown in fig. 1 and fig. 3 in the embodiment of the present invention, referring to fig. 4, a flowchart of another method for confirming the relationship between a passenger and a pedestrian according to the embodiment of the present invention is shown, which includes the following steps:
step S401: when the real-time passenger panoramic information corresponding to the passenger is changed, passenger boarding data and passenger historical boarding data of the passenger are obtained, and a passenger identification number ID for uniquely identifying the passenger is obtained based on the passenger identification information and the passenger historical boarding data.
Step S402: and acquiring a passenger pair flight information group of all passengers on the corresponding flight in the process of changing the flight state of the flight from the takeoff state to the arrival state, and storing the information group in a data table.
Step S403: the number of pieces of traveler-to-flight information including the same traveler ID combination is calculated based on the historical traveler-to-flight information group stored in the data table.
Step S404: and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
The specific execution process of steps S401 to S404 is the same as that of steps S101 to S104 disclosed in fig. 1, and specific reference may be made to these steps, which are not described herein again.
Step S405: and acquiring the navigation information of the passengers in the same row.
Step S406: and storing the navigation information of the passengers in the same-row in a pre-established historical travel same-row relationship result table.
The specific execution process of steps S405 to S406 is the same as that of steps S305 to S306 disclosed in fig. 3, and specific reference may be made to these steps, which are not described herein again.
Step S407: and acquiring the query request.
Wherein the inquiry request comprises the passenger ID and the inquiry condition.
In the embodiment of the present invention, the query condition may be a user requirement or a specific requirement.
In the process of implementing step S407 specifically, according to the user requirement, some conditions are specified to query the relationship between peers, for example, information of peers near the seat, information of peers about business trip for trip purpose, information of peers about travel trip for trip purpose, and the like may be queried, and according to a specific requirement, some trip characteristics or traveler labels may be supplemented to the historical travel relationship result table, so that the query conditions are diversified, which is not limited herein.
Step S408: and inquiring the historical travel co-pedestrian relation result table based on the inquiry request to obtain the co-pedestrian information meeting the inquiry condition.
In the process of implementing step S408 specifically, the co-traveler information of the co-traveler stored in the historical travel co-traveler relationship result table is queried based on the query condition, and the co-traveler information meeting the query condition is acquired.
According to the method for confirming the relation between the passengers and the pedestrians, provided by the embodiment of the invention, the relation between the passengers and the pedestrians is confirmed based on the historical data of massive passengers, the obtained relation between the passengers and the pedestrians is stored in a historical travel and pedestrian relation result table according to a set storage mode, the relation between the passengers and the pedestrians is inquired based on the knowledge of user requirements or specific inquiry conditions in the follow-up process, and the purpose of optimizing the travel experience of the passengers is further realized based on the inquiry result.
Based on the method for confirming the relationship between passengers and pedestrians shown in fig. 1, fig. 3 and fig. 4 in the embodiment of the present invention, referring to fig. 5, a flowchart of another method for confirming the relationship between passengers and pedestrians provided in the embodiment of the present invention is shown, which includes the following steps:
step S501: when the real-time passenger panoramic information corresponding to the passenger is changed, passenger boarding data and passenger historical boarding data of the passenger are obtained, and a passenger identification number ID for uniquely identifying the passenger is obtained based on the passenger identification information and the passenger historical boarding data.
Step S502: and acquiring a passenger pair flight information group of all passengers on the corresponding flight in the process of changing the flight state of the flight from the takeoff state to the arrival state, and storing the information group in a data table.
Step S503: the number of pieces of traveler-to-flight information including the same traveler ID combination is calculated based on the historical traveler-to-flight information group stored in the data table.
Step S504: and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
The specific execution process of steps S501 to S504 is the same as that of steps S101 to S104 disclosed in fig. 1, and specific reference may be made to these steps, which are not described herein again.
Step S505: and acquiring the navigation information of the passengers in the same row.
Step S506: and storing the navigation information of the passengers in the same-row in a pre-established historical travel same-row relationship result table.
The specific execution process of steps S505 to S506 is the same as that of steps S305 to S306 disclosed in fig. 3, and specific reference may be made to these steps, which are not described herein again.
Step S506: and acquiring the extension request.
The expansion request comprises the passenger ID and the information change or new information of the fellow passenger.
Step S507: and changing or adding the co-traveler information corresponding to the passenger ID stored in the historical travel co-traveler relationship result table based on the expansion request.
In the process of implementing step S507 specifically, the passenger information corresponding to the passenger ID stored in the history trip co-pedestrian relationship result table is changed or added based on the passenger ID in the extension condition, for example, other passenger boarding behavior information and tag information are added.
According to the method for confirming the relation between passengers and pedestrians, provided by the embodiment of the invention, the relation between passengers and pedestrians is confirmed based on the historical data of massive passengers, the obtained relation between passengers and pedestrians is stored in the historical travel and pedestrian relation result table according to a set storage mode, and conditions are provided for subsequently changing and newly adding information of passengers and pedestrians. And the purpose of optimizing the travel experience of the passenger based on the confirmed co-pedestrian relationship of the passenger is further realized.
Corresponding to the method for confirming the relationship between a passenger and a pedestrian in the embodiment of the present invention shown in fig. 1, an embodiment of the present invention further provides a device for confirming the relationship between a passenger and a pedestrian, referring to fig. 6, where the device includes: a first processing module 601, a second processing module 602, a calculation module 603 and a determination module 604.
The first processing module 601 is configured to obtain passenger boarding data and passenger historical boarding data when real-time passenger panoramic information corresponding to a passenger changes, and obtain a passenger identification number ID uniquely identifying the passenger based on the passenger identification information and the passenger historical boarding data.
The second processing module 602 is configured to, in the process that the flight status of the flight is changed from the departure status to the arrival status, obtain a set of passenger-to-flight information of all passengers on the corresponding flight, and store the set of passenger-to-flight information in the data table.
The traveler flight information group is composed of a traveler ID group and flight information.
Optionally, the second processing module 602 is specifically configured to: in the process that the flight state of the flight is changed from the takeoff state to the arrival state, acquiring the passenger IDs of all passengers on the flight, and sequencing the passenger IDs; based on the sorting, arranging and combining all passenger IDs pairwise to obtain passenger pairs; combining the flight information of each passenger pair and the flight by adopting a key-value pair key-value mode to obtain the flight information of the passenger pair, and collecting all the flight information of the passenger pair to obtain a passenger pair flight information group, wherein the passenger pair is used as a key, the flight information is used as a value, and the passenger pair flight information group is a key-value information group; the key-value information group is stored in the data table in a key-value pair key-value manner. A calculating module 603, configured to calculate the number of pieces of passenger-to-flight information including the same passenger ID combination based on the historical passenger-to-flight information group stored in the data table.
The determining module 604 is configured to determine that the passenger corresponding to the passenger ID combination is in the passenger peer relationship if the number of the passengers including the same passenger ID combination to the flight information is greater than or equal to 2.
According to the device for confirming the relation between the passenger and the pedestrian, provided by the embodiment of the invention, when the real-time passenger panoramic information corresponding to the passenger is changed, passenger boarding data and passenger historical boarding data of the passenger are obtained, and a passenger identification number ID for uniquely identifying the passenger is obtained based on the passenger identification information and the passenger historical boarding data; in the process that the flight state of the flight is changed from a take-off state to an arrival state, acquiring a passenger pair flight information group corresponding to all passengers on the flight and storing the passenger pair flight information group in a data table, wherein the passenger pair flight information group consists of a passenger ID combination and flight information; calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table; and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship. In the scheme, the relation between passengers and pedestrians is confirmed based on the historical data of massive passengers, so that the purpose of optimizing the travel experience of the passengers based on the confirmed relation between the passengers and the pedestrians is achieved.
Based on the device for confirming the relationship between a passenger and a pedestrian shown in fig. 6, as shown in fig. 7 in combination with fig. 6, the device for confirming the relationship between a passenger and a pedestrian further comprises a storage module 605, an inquiry module 606 and an expansion module 607.
The storage module 605 is configured to obtain the navigation information of the fellow passenger, where the navigation information includes passenger information, flight segment information of the fellow passenger, seat information, baggage information, and a target tag for each trip, and store the navigation information of the fellow passenger in a pre-established historical trip fellow passenger relationship result table.
And the query module 606 is configured to obtain a query request, where the query request includes a passenger ID and a query condition, query the historical travel peer relationship result table based on the query request, and obtain peer information meeting the query condition.
The expansion module 607 is configured to obtain an expansion request, where the expansion request includes a passenger ID and co-pedestrian information change or addition information, and change or add the co-pedestrian information corresponding to the passenger ID stored in the historical travel co-pedestrian relationship result table based on the expansion request.
According to the device for confirming the relation between the passengers and the pedestrians, provided by the embodiment of the invention, the relation between the passengers and the pedestrians is confirmed based on the historical data of massive passengers, so that the purpose of optimizing the traveling experience of the passengers based on the confirmed relation between the passengers and the pedestrians is realized.
Based on the device for confirming the relationship between the passenger and the pedestrian disclosed by the embodiment of the invention, the modules and the units can be realized by a hardware device consisting of a processor and a memory. The method specifically comprises the following steps: the modules and units are stored in a memory as program units, and a processor executes the program units stored in the memory to realize data processing.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more, and data processing is realized by adjusting kernel parameters.
An embodiment of the present invention provides a storage medium, where the storage medium includes a program for confirming a relationship between a passenger and a pedestrian, where the program is executed by a processor to implement a method for confirming a relationship between a passenger and a pedestrian according to any one of claims 1 to 5.
The embodiment of the invention provides a processor, which is used for running a program, wherein when the program runs, the method for confirming the relation between a passenger and a pedestrian disclosed in fig. 1 is executed.
An electronic device 80 is provided in an embodiment of the present invention, and as shown in fig. 8, a schematic structural diagram of the electronic device 80 provided in the embodiment of the present invention is shown.
The electronic device in the embodiment of the invention can be a server, a PC, a PAD, a mobile phone and the like.
The electronic device comprises at least one processor 801, and at least one memory 802 coupled to the processor, and a bus 803.
The processor 801 and the memory 802 communicate with each other via a bus 803. A processor 801 for executing programs stored in the memory 802.
A memory 802 for storing a program for at least: when the real-time passenger panoramic information corresponding to the passenger is changed, passenger boarding data and passenger historical boarding data are obtained, and a passenger identification number ID for uniquely identifying the passenger is obtained based on the passenger identity information and the passenger historical boarding data; in the process that the flight state of the flight is changed from the takeoff state to the arrival state, acquiring a passenger-to-flight information group of all passengers on the corresponding flight, and storing the passenger-to-flight information group into a data table, wherein the passenger-to-flight information group is formed by a passenger ID combination and flight information; calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table; and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on an electronic device:
when the real-time passenger panoramic information corresponding to the passenger is changed, passenger boarding data and passenger historical boarding data are obtained, and a passenger identification number ID for uniquely identifying the passenger is obtained based on the passenger identity information and the passenger historical boarding data; in the process that the flight state of the flight is changed from the takeoff state to the arrival state, acquiring a passenger-to-flight information group of all passengers on the corresponding flight, and storing the passenger-to-flight information group into a data table, wherein the passenger-to-flight information group is formed by a passenger ID combination and flight information; calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table; and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signals and carrier waves.
Based on the method and apparatus for confirming a passenger fellow walker disclosed in the above embodiment of the present invention, as shown in fig. 9, the embodiment of the present invention may also adopt the structure of fig. 9 to show the implementation principle of the method and apparatus for confirming a passenger fellow walker disclosed in the above embodiment of the present invention.
In fig. 9, the structure mainly comprises a real-time passenger panoramic view, a passenger-to-flight information group, a passenger-pedestrian relationship calculation model, and a passenger-pedestrian query service.
The real-time passenger panoramic view is used for triggering the host real-time data acquisition system to generate a real-time message and pushing the real-time message to the big data platform if a new passenger travel change is monitored in the passenger booking and boarding process; the real-time data processing operation of the big data platform updates the passenger boarding data and the latest state of the flight in real time according to the type and the content of the message; and updating passenger boarding data in real time based on the latest message combination to generate a real-time passenger panoramic view.
Constructing a passenger pair flight information group, and acquiring passenger IDs of all passengers on a flight in the process of changing the flight state of the flight from a take-off state to an arrival state, and sequencing the passenger IDs; based on the sorting, arranging and combining all passenger IDs pairwise to obtain passenger pairs; combining each passenger pair with the flight information of the flight by adopting a key-value pair key-value mode to obtain the passenger pair flight information, and collecting all the passenger pair flight information to obtain a passenger pair flight information group; storing the key-value information set in a data table in a key-value pair key-value manner.
The passenger co-pedestrian relation calculation model is used for calculating the number of passenger-to-flight information containing the same passenger ID combination based on the historical passenger-to-flight information group stored in the data table; and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
And the passenger co-pedestrian inquiry service is used for acquiring an inquiry request, inquiring the historical travel co-pedestrian relation result table based on the inquiry request and acquiring the co-pedestrian information meeting the inquiry condition.
According to the device for confirming the relation between the passengers and the pedestrians, provided by the embodiment of the invention, the relation between the passengers and the pedestrians is confirmed based on the historical data of massive passengers, so that the purpose of optimizing the traveling experience of the passengers based on the confirmed relation between the passengers and the pedestrians is realized.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for confirming passenger peer relationship, the method comprising:
when the real-time passenger panoramic information corresponding to the passenger is changed, acquiring passenger boarding data and passenger historical boarding data of the passenger, and obtaining a passenger identification number ID for uniquely identifying the passenger based on the passenger identity information and the passenger historical boarding data;
in the process that the flight state of the flight is changed from a take-off state to an arrival state, acquiring a passenger pair flight information group corresponding to all passengers on the flight and storing the passenger pair flight information group in a data table, wherein the passenger pair flight information group consists of a passenger ID combination and flight information;
calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table;
and if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2, determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship.
2. The method of claim 1, after determining that the passenger corresponding to the passenger ID number combination is a peer passenger, further comprising:
acquiring navigation information of the passengers in the same line, wherein the navigation information comprises passenger information, flight segment information of the same line, seat information, luggage information and a travel target label of each time;
and storing the navigation information of the passengers in the same-row in a pre-established historical travel same-row relationship result table.
3. The method of claim 2, further comprising:
acquiring a query request, wherein the query request comprises a passenger ID and query conditions;
and inquiring the historical travel co-pedestrian relation result table based on the inquiry request to acquire the co-pedestrian information meeting the inquiry condition.
4. The method of claim 2, further comprising:
acquiring an expansion request, wherein the expansion request comprises a passenger ID and co-traveler information change or newly-added information;
and changing or adding the co-pedestrian information corresponding to the passenger ID stored in the historical travel co-pedestrian relationship result table based on the expansion request.
5. The method according to any one of claims 1 to 4, wherein the acquiring, during the process of changing the flight status of the flight from the departure status to the arrival status, the set of passenger-to-flight information corresponding to all passengers on the flight and storing the set of passenger-to-flight information in the data table includes:
in the process that the flight state of the flight is changed from the take-off state to the arrival state, acquiring the passenger IDs of all passengers on the flight, and sequencing the passenger IDs;
based on the sorting, arranging and combining all the passenger IDs pairwise to obtain passenger pairs;
combining each passenger pair with the flight information of the flight in a key-value pair key-value mode to obtain passenger pair flight information, and collecting all the passenger pair flight information to obtain a passenger pair flight information group, wherein the passenger pair is used as a key, the flight information is used as a value, and the passenger pair flight information group is a key-value information group;
storing the key-value information set in a data table in a key-value pair key-value manner.
6. An apparatus for confirming a passenger's co-pedestrian relationship, the apparatus comprising:
the first processing module is used for acquiring passenger boarding data and passenger historical boarding data when the real-time passenger panoramic information corresponding to the passenger is changed, and acquiring a passenger identification number ID for uniquely identifying the passenger based on the passenger identity information and the passenger historical boarding data;
the second processing module is used for acquiring a passenger-to-flight information group corresponding to all passengers on the flight in the process of changing the flight state of the flight from a take-off state to an arrival state, and storing the passenger-to-flight information group in a data table, wherein the passenger-to-flight information group is formed by a passenger ID combination and flight information;
the calculation module is used for calculating the number of the passenger pair flight information containing the same passenger ID combination based on the historical passenger pair flight information group stored in the data table;
and the determining module is used for determining that the passengers corresponding to the passenger ID combination are in the passenger-pedestrian relationship if the number of the passengers containing the same passenger ID combination to the flight information is more than or equal to 2.
7. The apparatus of claim 6, further comprising: a storage module;
the storage module is used for acquiring the navigation information of the passengers in the same row, wherein the navigation information comprises passenger information, flight segment information of the same row, seat information, luggage information and travel target tags of each time, and the navigation information of the passengers in the same row is stored in a pre-established historical travel same-traveler relationship result table.
8. The apparatus of claim 7, further comprising: a query module;
the inquiry module is used for acquiring an inquiry request, wherein the inquiry request comprises a passenger ID and an inquiry condition, inquiring the historical travel co-pedestrian relation result table based on the inquiry request, and acquiring the co-pedestrian information meeting the inquiry condition.
9. An electronic device, wherein the electronic device is configured to execute a program, wherein the program executes the method for confirming a relationship between a passenger and a pedestrian according to any one of claims 1 to 5.
10. A computer storage medium, characterized in that the storage medium comprises a program for confirming the relationship of a passenger to a pedestrian, wherein the program is executed by a processor to implement the method for confirming the relationship of a passenger to a pedestrian according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110259369.4A CN112965978B (en) | 2021-03-10 | 2021-03-10 | Method and device for confirming relationship between passengers and pedestrians, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110259369.4A CN112965978B (en) | 2021-03-10 | 2021-03-10 | Method and device for confirming relationship between passengers and pedestrians, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112965978A true CN112965978A (en) | 2021-06-15 |
CN112965978B CN112965978B (en) | 2024-02-09 |
Family
ID=76277536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110259369.4A Active CN112965978B (en) | 2021-03-10 | 2021-03-10 | Method and device for confirming relationship between passengers and pedestrians, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112965978B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180285930A1 (en) * | 2017-03-31 | 2018-10-04 | Adobe Systems Incorporated | Service System To Determine Journeys Based On Companion Relationship |
CN110276272A (en) * | 2019-05-30 | 2019-09-24 | 罗普特科技集团股份有限公司 | Confirm method, apparatus, the storage medium of same administrative staff's relationship of label personnel |
KR20190125124A (en) * | 2018-04-27 | 2019-11-06 | (주) 케이씨넷 | System and method for making an patten analysis of traveler and companion based on big data |
CN110807117A (en) * | 2018-08-03 | 2020-02-18 | 深圳云天励飞技术有限公司 | User relationship prediction method and device and computer readable storage medium |
CN110837512A (en) * | 2019-11-15 | 2020-02-25 | 北京市商汤科技开发有限公司 | Visitor information management method and device, electronic equipment and storage medium |
CN111078922A (en) * | 2019-10-15 | 2020-04-28 | 深圳市商汤科技有限公司 | Information processing method and device and storage medium |
CN111191601A (en) * | 2019-12-31 | 2020-05-22 | 深圳云天励飞技术有限公司 | Method, device, server and storage medium for identifying peer users |
CN111274287A (en) * | 2020-01-16 | 2020-06-12 | 北京旷视科技有限公司 | Method and device for mining information of people group in same row and electronic equipment |
CN111488835A (en) * | 2020-04-13 | 2020-08-04 | 北京爱笔科技有限公司 | Method and device for identifying fellow persons |
KR20200109101A (en) * | 2019-03-12 | 2020-09-22 | 대한민국(관세청장) | Traveler information analysis system and method |
-
2021
- 2021-03-10 CN CN202110259369.4A patent/CN112965978B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180285930A1 (en) * | 2017-03-31 | 2018-10-04 | Adobe Systems Incorporated | Service System To Determine Journeys Based On Companion Relationship |
KR20190125124A (en) * | 2018-04-27 | 2019-11-06 | (주) 케이씨넷 | System and method for making an patten analysis of traveler and companion based on big data |
CN110807117A (en) * | 2018-08-03 | 2020-02-18 | 深圳云天励飞技术有限公司 | User relationship prediction method and device and computer readable storage medium |
KR20200109101A (en) * | 2019-03-12 | 2020-09-22 | 대한민국(관세청장) | Traveler information analysis system and method |
CN110276272A (en) * | 2019-05-30 | 2019-09-24 | 罗普特科技集团股份有限公司 | Confirm method, apparatus, the storage medium of same administrative staff's relationship of label personnel |
CN111078922A (en) * | 2019-10-15 | 2020-04-28 | 深圳市商汤科技有限公司 | Information processing method and device and storage medium |
CN110837512A (en) * | 2019-11-15 | 2020-02-25 | 北京市商汤科技开发有限公司 | Visitor information management method and device, electronic equipment and storage medium |
CN111191601A (en) * | 2019-12-31 | 2020-05-22 | 深圳云天励飞技术有限公司 | Method, device, server and storage medium for identifying peer users |
CN111274287A (en) * | 2020-01-16 | 2020-06-12 | 北京旷视科技有限公司 | Method and device for mining information of people group in same row and electronic equipment |
CN111488835A (en) * | 2020-04-13 | 2020-08-04 | 北京爱笔科技有限公司 | Method and device for identifying fellow persons |
Also Published As
Publication number | Publication date |
---|---|
CN112965978B (en) | 2024-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110147967B (en) | Risk prevention and control method and device | |
US10252461B2 (en) | Cognitive-based driving anomaly detection based on spatio-temporal landscape-specific driving models | |
US20170039488A1 (en) | System and method for a taxi sharing bridge system | |
US20160034968A1 (en) | Method and device for determining target user, and network server | |
CN105247556A (en) | Method and system for providing sign data and sign history | |
CN110717794A (en) | Freight rate calculation processing method and device | |
US11200517B2 (en) | Redistribution based on real time presence data | |
WO2015167830A1 (en) | Re-ranking search results for location refining and diversity | |
JP6688149B2 (en) | Taxi demand estimation system | |
CN110751531A (en) | Track identification method and device and electronic equipment | |
CN116150216A (en) | Stroke search method, device, electronic equipment and storage medium | |
US9589230B1 (en) | Entity location traceability and prediction | |
US20210192664A1 (en) | Dynamic geofence zones for ride sharing | |
EP2420984A1 (en) | Taxi user extraction device, taxi user extraction method, transportation user extraction device, and transportation user extraction method | |
CN107622467B (en) | Commuting travel mode extraction method and device | |
JP2017091435A (en) | Stay place prediction device | |
CN113139888A (en) | Method and device for intelligently recommending passenger delay service | |
CN112965978A (en) | Method and device for confirming relation between passenger and pedestrian, electronic equipment and storage medium | |
CN111861540A (en) | Information pushing method and device, computer equipment and storage medium | |
JP5969584B2 (en) | Attribute determination device, information extraction system, information distribution system, and program | |
CN110766420A (en) | Service information determination method and device | |
CN111274471A (en) | Information pushing method and device, server and readable storage medium | |
CN113132909B (en) | Missing person collaborative checking method and device based on network slice and edge data center | |
CN112822637A (en) | Navigation starting road section determining method and device, electronic equipment and storage medium | |
CN113011787A (en) | Virtual object allocation method based on data clustering and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |