A method, apparatus, electronic device, and storage medium for processing passenger flow data
By obtaining and analyzing the dispatch information of bus vehicles, writing into the data table and updating the processing status, the problem of traditional bus passenger flow survey methods is solved, and accurate passenger flow data is achieved in a timely manner.
Patent Information
- Application Number
- CN202111656333.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Traditional bus passenger flow survey methods consume a lot of manpower and material resources, the results are inaccurate and cannot be updated in time, and accurate passenger flow data cannot be obtained after the vehicle operation information changes.
By obtaining the scheduling information within the target time period, writing it to the target data table, analyzing the vehicle operation data to obtain passenger flow data, and updating the processing status until it is completed.
It realizes the timely acquisition of accurate passenger flow data after the vehicle operation information changes, and improves the efficiency and accuracy of data processing.
Smart Images

Figure CN114490687B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and in particular, to a method, apparatus, electronic device, and storage medium for processing passenger flow data. Background Art
[0002] In recent years, the number of buses in various cities in China, especially in large and medium-sized cities, has increased significantly, and the quality has been greatly improved. However, bus operation management, planning, and design are still at a relatively backward level. Traditional manual investigation methods for bus passenger flow include on-vehicle passenger flow investigation method, station passenger flow investigation method, inquiry investigation method, monthly pass investigation method, invoice investigation method, and form-filling investigation method. In the investigation practice, the commonly used investigation methods are mainly the on-vehicle passenger flow investigation method and the station passenger flow investigation method. The above investigations consume a lot of manpower and material resources, the results of manual statistics are inaccurate, it takes a long time, and accurate passenger flow data cannot be obtained in a timely manner after the operation information of the vehicle changes. Summary of the Invention
[0003] To solve the above technical problems or at least partially solve the above technical problems, this application provides a method, apparatus, electronic device, and storage medium for processing passenger flow data.
[0004] According to one aspect of the embodiments of this application, a method for processing passenger flow data is provided, including:
[0005] Obtain at least one piece of target scheduling information with passenger flow data within a target time period, where the target scheduling information includes a target vehicle identifier and target vehicle operation data corresponding to the target vehicle identifier;
[0006] Write the target vehicle identifier into a target data table, where the target data table is used to store the target vehicle identifier and the processing status corresponding to the target vehicle identifier;
[0007] Analyze the target vehicle operation data in the target scheduling information to obtain target passenger flow data corresponding to the target vehicle identifier;
[0008] Write the target passenger flow data into a scheduling statistical table, and update the processing status of the target vehicle identifier in the target data table until the processing status of the target vehicle identifier in the target data table is updated to the completed status.
[0009] According to another aspect of the embodiments of this application, a device for processing passenger flow data is further provided, including:
[0010] An obtaining module, configured to obtain at least one piece of target scheduling information with passenger flow data within a target time period, where the target scheduling information includes a target vehicle identifier and target vehicle operation data corresponding to the target vehicle identifier;
[0011] A writing module, configured to write the target vehicle identifier into a target data table, where the target data table is used to store the target vehicle identifier and a processing status corresponding to the target vehicle identifier;
[0012] An analysis module, configured to analyze target vehicle operation data in the target scheduling information to obtain target passenger flow data corresponding to the target vehicle identifier;
[0013] A processing module, configured to write the target passenger flow data into a scheduling statistical table and update the processing status of the target vehicle identifier in the target data table until the processing status of the target vehicle identifier in the target data table is updated to a completed status.
[0014] According to another aspect of the embodiments of the present application, there is also provided a storage medium, which includes a stored program, and when the program runs, it executes the above steps.
[0015] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; where: the memory is used to store a computer program; the processor is configured to execute the steps in the above method by running the program stored on the memory.
[0016] The embodiments of the present application also provide a computer program product containing instructions, which when running on a computer, causes the computer to execute the steps in the above method.
[0017] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art: The embodiments of the present application periodically write the target vehicle identifier into the target data table, and during the analysis of the target vehicle operation data in the target scheduling information, update the processing status of the analyzed target vehicle identifier in the target data table, so as to obtain accurate passenger flow data in a timely manner after the operation information of the vehicle changes. Description of the Drawings
[0018] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present application and used together with the description to explain the principles of the present application.
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
[0020] Figure 1 Flow chart of a method for processing passenger flow data provided by an embodiment of the present application;
[0021] Figure 2 Flow chart of a method for processing passenger flow data provided by another embodiment of the present application;
[0022] Figure 3 Flow chart of a method for processing passenger flow data provided by another embodiment of the present application;
[0023] Figure 4 Block diagram of a device for processing passenger flow data provided by an embodiment of the present application;
[0024] Figure 5 Schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0026] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another similar entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.
[0027] The embodiments of the present application provide a method, a device, an electronic device, and a storage medium for processing passenger flow data. The method provided by the embodiments of the present invention can be applied to any required electronic device, for example, it can be an electronic device such as a server, a terminal, etc., which is not specifically limited herein. For the convenience of description, it will be hereinafter simply referred to as an electronic device.
[0028] According to one aspect of the embodiments of the present application, a method embodiment for processing passenger flow data is provided. Figure 1 The following is a flowchart of a method for processing passenger flow data provided by the embodiments of the present application, as Figure 1 shown, the method includes:
[0029] Step S11, obtain at least one piece of target scheduling information with passenger flow data within a target time period, where the target scheduling information includes a target vehicle identifier and target vehicle operation data corresponding to the target vehicle identifier.
[0030] The method provided by the embodiments of the present application can be applied to intelligent terminals with data processing capabilities. The intelligent terminal can be a mobile phone, a computer, etc. A timer is provided in the intelligent terminal, and the scheduling information of means of transportation such as buses and subways is collected according to a time period through the timer. The period length of the time period can be one day, one week, etc., and no specific limitation is made here. The target time period can be a time period determined according to a preset statistical order, or a time period selected by a staff member according to business requirements.
[0031] In the embodiments of the present application, step S11, obtaining the target scheduling information with passenger flow data within a target time period, includes the following steps A1 - A3:
[0032] Step A1, obtain the initial scheduling information within a target time period, where the initial scheduling information includes a vehicle identifier and vehicle operation data corresponding to the vehicle identifier.
[0033] In the embodiments of the present application, step A1, obtaining the initial scheduling information within a target time period, includes the following steps A101 - A103:
[0034] Step A101, receive a data processing request, where the data processing request carries data processing conditions.
[0035] Step A102, obtain a scheduling set corresponding to the target time period, where the scheduling set includes all scheduling information within the target time period.
[0036] Step A103, determine the scheduling information that meets the data processing conditions obtained from the scheduling set as the initial scheduling information.
[0037] In the embodiments of the present application, a user can upload a data processing request to a smart terminal. The smart terminal reads the data processing conditions carried in the data processing request, where the data processing conditions include: full processing or partial processing. Then, it filters out the scheduling information that meets the data processing conditions from the scheduling set and determines it as the initial scheduling information. Among them, the initial scheduling information includes multiple pieces of scheduling information that are periodic within a preset time. The scheduling information carries a vehicle identifier and the vehicle operation data corresponding to the vehicle identifier. For example, the initial scheduling information is as follows: Scheduling information 1: Creation time T1, vehicle identifier A, vehicle operation data P1. Scheduling information 2: Creation time T2, vehicle identifier B, vehicle operation data P2. Scheduling information 3: Creation time T3, vehicle identifier C, vehicle operation data P3.
[0038] As an example, when the data processing condition is full processing, all the scheduling information corresponding to the target time period will be processed subsequently. Therefore, all the scheduling information corresponding to the target time period is used as the initial scheduling information. When the data processing condition is partial processing, the execution conditions corresponding to the partial processing will be determined, and subsequently, the scheduling information that meets the execution conditions among all the scheduling information will be processed. Therefore, the scheduling information that meets the execution conditions among all the scheduling information is determined as the initial scheduling information. The execution conditions can be vehicles whose running routes or running times have changed, etc.
[0039] Step A2: Read the passenger flow data from the vehicle operation data.
[0040] In the embodiments of the present application, the vehicle operation data in the initial scheduling information includes: running time, running route, passenger flow data, etc. It should be noted that the passenger flow data can include: the total passenger flow corresponding to the running route, and the passenger flow corresponding to each stop on the running route.
[0041] Step A3: Determine the initial scheduling information with passenger flow data greater than or equal to a preset threshold as the target scheduling information.
[0042] In the embodiments of the present application, determining the initial scheduling information with passenger flow data greater than or equal to a preset threshold as the target scheduling information can be achieved by comparing the total passenger flow and the preset threshold to determine the target scheduling information. The preset threshold can be set according to business requirements. Since the embodiments of the present application process passenger flow data, the preset threshold can be 0. When the total passenger flow is greater than 0, it is determined that there is passenger flow data in the initial scheduling information, and the initial scheduling information with passenger flow data is determined as the target scheduling information.
[0043] Step S12: Write the target vehicle identifier into the target data table, where the target data table stores the target vehicle identifier and the processing status corresponding to the target vehicle identifier.
[0044] In an embodiment of the present application, the target vehicle identifier (bus_id) is written into the target data table (t_statistics_event_task). The target data table can be understood as a storage data table, in which the corresponding relationship between the target vehicle identifier and the processing status is stored. The processing status is the processing status of the scheduling information corresponding to the target vehicle identifier, and the update of the processing status is determined based on whether the data processing platform has completed the analysis of the scheduling information corresponding to the target vehicle identifier.
[0045] As an example, vehicle identifier A is "0", and vehicle identifier B is "1". Here, "0" indicates that the scheduling information corresponding to vehicle identifier A has not been processed, and "1" indicates that the scheduling information corresponding to vehicle identifier B has been processed and completed.
[0046] Step S13: Analyze the target vehicle operation data in the target scheduling information to obtain the target passenger flow data corresponding to the target vehicle identifier.
[0047] In an embodiment of the present application, step S13: Analyze the target vehicle operation data in the target scheduling information to obtain the target passenger flow data corresponding to the target vehicle identifier, including: sending the target scheduling information to the data processing platform, so that the data processing platform obtains the scheduling record set corresponding to the target vehicle identifier from the target scheduling information, determines the vehicle operation data carried by each scheduling information in the scheduling set, and determines the target passenger flow data based on the vehicle operation data carried by each scheduling information.
[0048] In an embodiment of the present application, the data processing platform can be Kafka, which is used to summarize and statistically analyze the target scheduling information. Specifically, Kafka first determines all the target vehicle identifiers from the target scheduling information, and then summarizes the scheduling set associated with the target vehicle identifier from the target scheduling information. Since the scheduling set includes multiple scheduling information of the vehicle corresponding to the target vehicle identifier, the passenger flow data of each scheduling information in the scheduling set can be determined, and then the passenger flow data of each scheduling information is summarized to obtain the target passenger flow data. It should be noted that Kafka is a high-throughput distributed publish-subscribe messaging system that can process all action flow data of consumers on the website.
[0049] Step S14: Write the target passenger flow data into the scheduling statistical table and update the processing status of the target vehicle identifier in the target data table until the processing status of the target vehicle identifier in the target data table is updated to the completed status.
[0050] In an embodiment of the present application, writing the target passenger flow data into the scheduling statistical table and updating the processing status of the target vehicle identifier in the target data table includes the following steps B1 - B2:
[0051] Step B1: Write the target passenger flow data into the scheduling statistical table, and determine the target vehicle identifier corresponding to the target passenger flow data as the first vehicle identifier.
[0052] Step B2: Update the processing status corresponding to the first vehicle identifier in the target data table.
[0053] In the embodiment of the present application, since the passenger flow data of each target vehicle identifier will be processed, after processing the passenger flow data corresponding to each target vehicle identifier, the corresponding target vehicle identifier will be determined as the first vehicle identifier, and the first vehicle identifier will be obtained from the target data table, and then the processing status corresponding to the first vehicle identifier will be updated from "0" to "1". Here, "0" indicates that the scheduling information corresponding to the vehicle identifier has not been processed, and "1" indicates that the scheduling information corresponding to the vehicle identifier has been processed and completed.
[0054] In the embodiment of the present application, the target vehicle identifier is periodically written into the target data table, and during the analysis of the target vehicle operation data in the target scheduling information, the processing status of the analyzed target vehicle identifier in the target data table is updated, so that accurate passenger flow data can be obtained in time after the operation information of the vehicle changes.
[0055] In the embodiment of the present application, Figure 2 is a flowchart of a method for processing passenger flow data provided in another embodiment of the present application. As Figure 2 shown, after writing the target passenger flow data into the scheduling statistical table and updating the processing status of the target vehicle identifier in the target data table, the method further includes:
[0056] Step S21: Obtain a data storage request, where at least one statistical table is carried in the data storage request;
[0057] Step S22: Determine the table type corresponding to the statistical table based on the statistical data stored in the statistical table;
[0058] Step S23: Obtain the passenger flow data matching the table type from the target passenger flow data, and write the passenger flow data into the corresponding statistical table.
[0059] In the embodiment of the present application, after the intelligent terminal obtains the passenger flow data, the passenger flow data will be displayed. At this time, a data storage request initiated by the user can be received, and then the data in the target passenger flow data will be written into the statistical table carried in the data storage request.
[0060] Specifically, the statistical table carried in the data storage request may be: a station information statistical table, a route information statistical table, etc. Then, based on the statistical data stored in the statistical table, the table type corresponding to the statistical table is determined. The table type may be: a station passenger flow type, a route passenger flow type, etc. And the passenger flow data matching the table type is read from the target passenger flow data, and the passenger flow data is written into the corresponding data table.
[0061] As an example, the statistical table carried in the data storage request may be: a station information statistical table. Determine that the table type corresponding to the data statistical table is the station passenger flow type. At this time, the operating route corresponding to the target vehicle identifier is determined from the station information statistical table. The operating route includes multiple stations. The passenger flow data of the vehicle at each station in the operating route is obtained from the target passenger flow data, and the passenger flow data is written into the station information statistical table.
[0062] The method provided by the embodiment of the present application obtains corresponding data from the target passenger flow data according to the table type of the data table and writes it into the data table, realizing diversified data storage and providing a data basis for subsequent vehicle scheduling.
[0063] Figure 3 It is a flowchart of a method for processing passenger flow data provided by another embodiment of the present application. As Figure 3 shown, the method further includes:
[0064] Step S31, obtain historical passenger flow data corresponding to a historical time period.
[0065] Step S32, compare the historical passenger flow data with the target passenger flow data to obtain change information of the passenger flow data. Among them, the change information includes the change type corresponding to the passenger flow data and the second vehicle identifier.
[0066] In the embodiment of the present application, the historical passenger flow data is compared with the target passenger flow data to obtain a comparison result. The vehicle identifier whose change range between the target passenger flow data and the historical passenger flow data is greater than a preset range is determined as the second vehicle identifier based on the comparison result. Then, the change type is determined based on the comparison result, and the final change information is generated according to the second vehicle identifier and the change type. Among them, the change type included in the change information may be an increasing type, a decreasing type, etc.
[0067] Step S33, obtain the vehicle configuration information corresponding to the second vehicle identifier.
[0068] In the embodiment of the present application, the vehicle configuration information can be obtained according to the second vehicle indication. The vehicle configuration information includes: the operating time of the vehicle, the departure interval of the vehicle, etc.
[0069] Step S34, update the vehicle configuration information according to the change type.
[0070] The method provided by the embodiment of the present application can determine the vehicles with relatively large changes in passenger flow data by analyzing historical passenger flow data and target passenger flow data, and update the vehicle configuration information corresponding to the vehicles, so as to ensure that the vehicle scheduling operation can match the passenger flow data and ensure the reasonable utilization of the vehicles.
[0071] Figure 4 It is a block diagram of a processing device for passenger flow data provided by the embodiment of the present application. This device can be implemented as part or all of an electronic device through software, hardware, or the combination of both. As Figure 4 shown, the device includes:
[0072] An acquisition module 41, configured to acquire at least one piece of target scheduling information with passenger flow data within a target time period, where the target scheduling information includes a target vehicle identifier and target vehicle operation data corresponding to the target vehicle identifier;
[0073] A writing module 42, configured to write the target vehicle identifier into a target data table, where the target data table is used to store the target vehicle identifier and the processing status corresponding to the target vehicle identifier;
[0074] An analysis module 43, configured to analyze the target vehicle operation data in the target scheduling information to obtain target passenger flow data corresponding to the target vehicle identifier;
[0075] A processing module 44, configured to write the target passenger flow data into a scheduling statistical table, and update the processing status of the target vehicle identifier in the target data table until the processing status of the target vehicle identifier in the target data table is updated to the completed status.
[0076] In the embodiment of the present application, the acquisition module 41 is configured to acquire initial scheduling information within a target time period, where the initial scheduling information includes multiple scheduling records within a preset time period, and the scheduling records carry vehicle identifiers and vehicle operation data corresponding to the vehicle identifiers; read passenger flow data from the vehicle operation data; and determine the initial scheduling information with passenger flow data greater than or equal to a preset threshold as the target scheduling information.
[0077] In the embodiment of the present application, the acquisition module 41 is configured to receive a data processing request, where the data processing request carries data processing conditions; acquire a scheduling set corresponding to the target time period, where the scheduling set includes all scheduling information within the target time period; and determine the scheduling information that meets the data processing conditions acquired from the scheduling set as the initial scheduling information.
[0078] In an embodiment of the present application, an analysis module 43 is configured to send target scheduling information to a data processing platform, so that the data processing platform obtains a set of scheduling records corresponding to a target vehicle identifier from the target scheduling information, determines vehicle operation data carried in each scheduling record in the set of scheduling records, and determines target passenger flow data based on the vehicle operation data carried in each scheduling record.
[0079] In an embodiment of the present application, a processing module 44 is configured to write the target passenger flow data into a scheduling statistical table, and determine the target vehicle identifier corresponding to the target passenger flow data as a first vehicle identifier; update the processing status corresponding to the first vehicle identifier in the target data table.
[0080] In an embodiment of the present application, the device for processing passenger flow data further includes: a storage module, configured to obtain a data storage request, where at least one data table is carried in the data storage request; determine the table type corresponding to the data table; obtain passenger flow data matching the table type from the target passenger flow data, and write the passenger flow data into the corresponding data table.
[0081] In an embodiment of the present application, the device for processing passenger flow data further includes: an update module, configured to obtain historical passenger flow data corresponding to a historical time period; compare the historical passenger flow data with the target passenger flow data to obtain change information of the passenger flow data, where the change information includes a change type corresponding to the passenger flow data and a second vehicle identifier; obtain vehicle configuration information corresponding to the second vehicle identifier; and update the vehicle configuration information according to the change type.
[0082] In an embodiment of the present application, the target vehicle identifier is periodically written into the target data table, and during the analysis of the target vehicle operation data in the target scheduling information, the processing status of the analyzed target vehicle identifier in the target data table is updated, so that accurate passenger flow data can be obtained in a timely manner after the operation information of the vehicle changes.
[0083] An embodiment of the present application further provides an electronic device, as Figure 5 shown, the electronic device may include: a processor 1501, a communication interface 1502, a memory 1503, and a communication bus 1504. Among them, the processor 1501, the communication interface 1502, and the memory 1503 communicate with each other through the communication bus 1504.
[0084] The memory 1503 is used to store a computer program;
[0085] When the processor 1501 executes the computer program stored on the memory 1503, the steps of the above embodiment are implemented.
[0086] The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0087] The communication interface is used for communication between the above terminal and other devices.
[0088] The memory may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.
[0089] The above-mentioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0090] In another embodiment provided by this application, a computer-readable storage medium is also provided. Instructions are stored in this computer-readable storage medium. When it runs on a computer, it causes the computer to execute the processing method of the passenger flow data described in any one of the above embodiments.
[0091] In another embodiment provided by this application, a computer program product containing instructions is also provided. When it runs on a computer, it causes the computer to execute the processing method of the passenger flow data described in any one of the above embodiments.
[0092] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server, data center, etc. that contains one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state disk SolidState Disk), etc.
[0093] The above are only the preferred embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application are all included in the protection scope of the present application.
[0094] The above is only the specific implementation manner of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for processing passenger flow data, characterized in that: include: Acquire at least one target scheduling information having passenger flow data within a target time period, wherein the target scheduling information includes a target vehicle identifier and target vehicle operation data corresponding to the target vehicle identifier, wherein the target time period is a time period selected by a staff member based on business needs; Writing the target vehicle identification into a target data table, wherein the target data table is used to store the target vehicle identification and the processing status corresponding to the target vehicle identification; Analyzing the target vehicle operation data in the target scheduling information to obtain target passenger flow data corresponding to the target vehicle identifier; Writing the target passenger flow data into the dispatch statistics table and updating the processing status of the target vehicle identifiers in the target data table until the processing status of the target vehicle identifiers in the target data table are all updated to a completed state; After writing the target passenger flow data into the scheduling statistics table and updating the processing status of the target vehicle identification in the target data table, the method further includes: obtaining a data storage request, wherein the data storage request carries at least one statistical table; determining the table type corresponding to the statistical table based on the statistical data stored in the statistical table, the table type including: station passenger flow type or route passenger flow type; obtaining passenger flow data matching the table type from the target passenger flow data, and writing the passenger flow data into the corresponding statistical table; wherein obtaining passenger flow data matching the table type from the target passenger flow data and writing the passenger flow data into the corresponding statistical table includes: determining that the table type corresponding to the statistical table is the station passenger flow type, determining the operating route corresponding to the target vehicle identification from the station information statistical table, obtaining the passenger flow data of the vehicle at each station in the operating route from the target passenger flow data, and writing the passenger flow data into the station information statistical table.
2. The method according to claim 1, characterized in that The obtaining of at least one target scheduling information of passenger flow data within a target time period includes: Acquiring initial scheduling information within the target time period, wherein the initial scheduling information includes a vehicle identification and vehicle operation data corresponding to the vehicle identification; Reading passenger flow data from the vehicle operation data; The initial scheduling information in which the passenger flow data is greater than or equal to a preset threshold is determined as the target scheduling information.
3. The method according to claim 2, characterized in that The acquiring of the initial scheduling information within the target time period includes: receiving a data processing request, wherein the data processing request carries a data processing condition; Acquire a scheduling set corresponding to the target time period, wherein the scheduling set includes all scheduling information within the target time period; The scheduling information that meets the data processing condition is obtained from the scheduling set and determined as the initial scheduling information.
4. The method according to claim 1, wherein The analyzing the target vehicle operation data in the target scheduling information to obtain the target passenger flow data corresponding to the target vehicle identifier includes: The target scheduling information is sent to a data processing platform so that the data processing platform obtains a scheduling set corresponding to the target vehicle identification from the target scheduling information, determines the vehicle operation data carried by each scheduling information in the scheduling set, and determines the target passenger flow data based on the vehicle operation data carried by each scheduling information.
5. The method according to claim 1, wherein The step of writing the target passenger flow data into the dispatch statistics table and updating the processing status of the target vehicle identification in the target data table includes: Writing the target passenger flow data into the scheduling statistics table, and determining the target vehicle identification corresponding to the target passenger flow data as the first vehicle identification; Update the processing status corresponding to the first vehicle identification in the target data table.
6. The method according to claim 1, characterized in that The method further comprises: Obtain historical passenger flow data corresponding to the historical time period; Comparing the historical passenger flow data with the target passenger flow data to obtain change information of the passenger flow data, wherein the change information includes a change type corresponding to the passenger flow data and a second vehicle identifier; Obtaining vehicle configuration information corresponding to the second vehicle identification; The vehicle configuration information is updated according to the change type.
7. A passenger flow data processing device, characterized in that: include: an acquisition module, configured to acquire at least one target scheduling information having passenger flow data within a target time period, wherein the target scheduling information includes a target vehicle identifier and target vehicle operation data corresponding to the target vehicle identifier, wherein the target time period is a time period selected by a staff member based on business needs; A writing module, configured to write the target vehicle identification into a target data table, wherein the target data table is configured to store the target vehicle identification and a processing status corresponding to the target vehicle identification; An analysis module, configured to analyze the target vehicle operation data in the target scheduling information to obtain target passenger flow data corresponding to the target vehicle identifier; a processing module, configured to write the target passenger flow data into a dispatch statistics table and update the processing status of the target vehicle identifiers in the target data table until the processing status of the target vehicle identifiers in the target data table are all updated to a completed status; The processing device also includes: a storage module, used to obtain a data storage request, wherein the data storage request carries at least one statistical table; determining the table type corresponding to the statistical table based on the statistical data stored in the statistical table, the table type including: station passenger flow type or route passenger flow type; obtaining passenger flow data matching the table type from the target passenger flow data, and writing the passenger flow data into the corresponding statistical table; wherein, obtaining passenger flow data matching the table type from the target passenger flow data, and writing the passenger flow data into the corresponding statistical table, includes: determining that the table type corresponding to the statistical table is the station passenger flow type, determining the running route corresponding to the target vehicle identifier from the station information statistical table, obtaining the passenger flow data of the vehicle at each station in the running route from the target passenger flow data, and writing the passenger flow data into the station information statistical table.
8. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 6 when executed.
9. An electronic device, characterized in that: The system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: Memory for storing computer programs; A processor, configured to execute the method according to any one of claims 1 to 6 by running a program stored in a memory.
Citation Information
Patent Citations
GPS and passenger flow data processing method for city public transportation system
CN101470946A
Public transport vehicle scheduling method and device based on face recognition and computer equipment
CN110245558A
Public transport passenger flow analysis system based on positioning and card swiping information
CN112767685A