Method, apparatus, device, and computer program product for sending traffic data
By slicing and assembling the information of the traffic supervision system, the problems of data redundancy and low evaluation efficiency in enterprise-level business travel platforms are solved, and a fast and accurate traffic cost-effectiveness assessment is achieved.
Patent Information
- Application Number
- CN202111500633.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2041-12-09
AI Technical Summary
In enterprise-level business travel platforms, multi-vendor resources and a large amount of traffic data lead to long transmission time, redundant data, excessive storage space, and difficult analysis and comparison when the server evaluates traffic cost performance levels and is inefficient.
By obtaining the traffic information specified by the user, the traffic supervision system information is sliced based on the information, assembled into traffic combination data and sent to the server for evaluation, avoiding the transmission and processing of redundant data.
It reduces the amount of data, reduces the difficulty of analysis and comparison, improves the efficiency of the server's evaluation of user traffic cost performance levels, and prevents errors from being prompted by users and managers through verification and evaluation results.
Smart Images

Figure CN114143886B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of artificial intelligence data mining, and in particular, to a method, device, equipment and computer program product for obtaining traffic data. Background Art
[0002] In an enterprise-level business travel platform, from the perspective of maximizing the savings of enterprise travel costs, the enterprise supervises employees to select the means of transportation with the optimal price according to actual needs as much as possible. How to evaluate whether the price of the means of transportation booked by employees is the optimal one. For business scenarios that require later analysis and comparison of the required traffic data, the common method is to save all traffic data at one time and then perform analysis and comparison later. For example, in the process of collecting all traffic data of the same type of traffic supervision system and caching the traffic data to the local database, the first step is to obtain the query instruction input by the user, send a traffic query instruction to the traffic supervision system, and the query instruction includes traffic information of the starting location and running time; the second step is to receive the traffic information that meets the starting location and running time in the query instruction sent by the traffic supervision system. The third step is to cache the traffic information to the local database
[0003] However, when the platform accesses multiple supplier resources and the traffic volume is huge, it will cause long transmission time, data redundancy, occupy too much storage space, and even after the server obtains a large amount of traffic data, when evaluating the traffic level of users, the analysis and comparison are difficult, time-consuming and inefficient. Summary of the Invention
[0004] The embodiments of the present invention provide a method, device, equipment and computer program product for sending traffic data to achieve rapid upload of traffic data.
[0005] In a first aspect, the embodiments of the present invention provide a method for sending traffic data, including: obtaining user-specified traffic information;
[0006] Obtaining traffic information of the traffic supervision system, and slicing the traffic information of the traffic supervision system based on the user-specified traffic information to obtain traffic slice information of the traffic supervision system;
[0007] Assembling the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combined data;
[0008] Sending the traffic combined data to the server so that the server evaluates the traffic performance level of the user according to the traffic combined data.
[0009] In a second aspect, the embodiments of the present invention provide a device for sending traffic data, including: a user-specified traffic information acquisition module for obtaining user-specified traffic information;
[0010] The traffic slice information acquisition module of the traffic supervision system is used to acquire the traffic information of the traffic supervision system and slice the traffic information of the traffic supervision system based on the user-specified traffic information to obtain the traffic slice information of the traffic supervision system;
[0011] The traffic combination data acquisition module is used to assemble the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combination data;
[0012] The evaluation module is used to send the traffic combination data to the server so that the server can evaluate the user's traffic performance level according to the traffic combination data.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device, which includes:
[0014] One or more processors;
[0015] A storage device for storing one or more programs,
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.
[0017] In a fourth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0018] The technical solution of the embodiment of the present invention slices the traffic information of the traffic supervision system according to the user-specified traffic information, avoiding redundant data, which can greatly reduce the amount of data to be saved and processed, thereby reducing the difficulty of analysis and comparison and facilitating the server to quickly evaluate the user's traffic performance level. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0020] Figure 1 is a flowchart of the method for sending traffic data provided in the first embodiment of the present invention;
[0021] Figure 2 is a flowchart of the method for sending traffic data provided in the second embodiment of the present invention;
[0022] Figure 3It is a flowchart of the method for sending traffic data provided in Embodiment 3 of the present invention;
[0023] Figure 4 It is a schematic structural diagram of the traffic data sending device provided in Embodiment 4 of the present invention;
[0024] Figure 5 It is a schematic structural diagram of an electronic device provided in Embodiment 5 of the present invention. Detailed implementation manners
[0025] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention.
[0026] In addition, it should also be noted that for the sake of convenience of description, only parts related to the present invention are shown in the accompanying drawings rather than all the content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. When the operations are completed, the process can be terminated, but there may also be additional steps not included in the drawings. The process can correspond to a method, software implementation, hardware implementation, etc. The acquisition, storage, use, processing, etc. of data in the technical solution of the present application all comply with the relevant regulations of national laws and regulations.
[0027] Embodiment 1
[0028] Figure 1 It is a flowchart of the method for sending traffic data provided in the embodiments of the present invention. This embodiment is applicable to the situation of uploading traffic data in the evaluation of user business trip expenses. This method can be executed by the traffic data sending device in the embodiments of the present invention, and the device can be implemented in software and / or hardware. As Figure 1 shown, the method specifically includes the following operations:
[0029] Step S101, obtain the user-specified traffic information.
[0030] Optionally, obtaining the user-specified traffic information includes: receiving a predetermined traffic instruction specified by the user; performing information collection according to the predetermined traffic instruction to obtain the user-specified traffic information.
[0031] Among them, this embodiment is mainly applied to the application scenario of enterprises evaluating the business travel costs of employees. When an employee user makes a reservation for transportation on the client side, information is collected through JavaScript technology according to the user's selection instructions, and the current transportation information specified by the user is automatically obtained. The transportation information may include: starting location, running time, price, and seat information. Of course, the transportation information also includes: running duration and arrival time. In this embodiment, the specific content of the transportation information is not limited.
[0032] It should be noted that the specific type of transportation used by the user is not limited in this embodiment. The transportation means can specifically be an airplane, a train, or a long-distance bus. Any transportation means that can mainly achieve online ticket purchasing is within the protection scope of this application. When the transportation means is an airplane, the starting location mainly includes: departure city, departure airport, arrival city, and arrival airport. The seat information specifically includes: class and sub-class code, etc.
[0033] Step S102, obtain the transportation information of the transportation supervision system, and slice the transportation information of the transportation supervision system based on the transportation information specified by the user to obtain the transportation slice information of the transportation supervision system.
[0034] Optionally, slicing the transportation information of the transportation supervision system based on the transportation information specified by the user to obtain the transportation slice information of the transportation supervision system includes: determining a slice interval according to the running time in the transportation information specified by the user; slicing the transportation information of the transportation supervision system according to the slice interval to obtain the transportation slice information of the transportation supervision system.
[0035] Optionally, determining a slice interval according to the running time in the transportation information specified by the user includes: using the running time in the transportation information specified by the user as the reference time; using the time earlier than the reference time by a unit duration as the first time, and using the time later than the reference time by a unit duration as the second time; using the time interval formed by the first time and the second time as the slice interval.
[0036] Optionally, slicing the transportation information of the transportation supervision system according to the slice interval to obtain the transportation slice information of the transportation supervision system includes: obtaining the running time of each transportation means in the transportation information of the transportation supervision system; retaining the transportation information whose running time is within the slice interval to obtain the transportation slice information of the transportation supervision system.
[0037] Among them, the traffic information in the traffic supervision system of this embodiment has the same starting position as the user-specified traffic information. However, even with the same starting position, the data volume of the traffic information in the traffic supervision system is usually very large. At this time, if it is directly transmitted to the enterprise server to evaluate the business trips of employee users, it will seriously affect work efficiency. Therefore, the running time in the user-specified traffic information is used as the reference time, and the range of the previous and subsequent unit time is limited. The traffic information in the current page is traversed, and the traffic data that meets the limited time range is selected and used as the traffic slice information of the traffic supervision system.
[0038] In a specific implementation, if the running time time1 in the user-specified traffic information is 8:00 am on November 10th, then time1 is used as the reference time, the unit duration is selected as 1 hour, and the time minTime = 7:00 am on November 10th, which is 1 hour earlier than the reference time, is used as the first time, and the time maxTime = 9:00 am on November 10th, which is 1 hour later than the reference time, is used as the second time. The time interval formed by [minTime maxTime] is used as the slice interval. When the slice interval is determined, the running time of each vehicle in the traffic information of the traffic supervision system is obtained. For example, when it is determined that the vehicle used by the user is an airplane, the traffic supervision system specifically refers to the airport system. Among the flight information of the airport system obtained, there are 500 flights, but only 100 flight information has the takeoff time within the slice interval. Then, the 100 flight information is retained to obtain the flight slice information of the airport system. It can be known from the above process that the data volume of the slice information obtained after slicing the flight information of the airport system is significantly reduced.
[0039] It should be noted that in this embodiment, after obtaining the running time of each vehicle in the traffic information of the traffic supervision system, for the convenience of subsequent calculations, the running time of each vehicle is converted into an integer in milliseconds. Therefore, when slicing, the traffic information in which the converted running time of each vehicle is within the slice interval is specifically retained to obtain the traffic slice information of the traffic supervision system.
[0040] Step S103: Assemble the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combination data.
[0041] Optionally, assembling the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combination data may include: forming a reference traffic data object with the user-specified traffic information in a specified language; forming a traffic slice data object of the traffic supervision system with the traffic slice information of the traffic supervision system in a specified language; assembling the reference traffic data object and the traffic slice data object of the traffic supervision system to obtain traffic combination data.
[0042] Specifically, when receiving the user's order submission instruction, it will trigger the composition of the user-specified traffic information into a reference traffic data object flightData in JavaScript, the composition of the traffic slice information of the traffic supervision system into a traffic slice data object jsonData of the traffic supervision system in JavaScript, and the assembly of the reference traffic data object and the traffic slice data object of the traffic supervision system to obtain traffic combination data. Among them, the traffic combination data records the association relationship between the user-specified traffic information and the traffic slice information of the traffic supervision system in the form of JavaScript language.
[0043] Step S104: Send the traffic combination data to the server so that the server can evaluate the user's traffic cost performance level according to the traffic combination data.
[0044] Optionally, sending the traffic combination data to the server so that the server can evaluate the user's traffic cost performance level according to the traffic combination data may include: sending the traffic combination data to the server in a specified format so that the server can obtain the user entity object according to the reference traffic data object and obtain the traffic supervision system array object according to the traffic slice data object of the traffic supervision system; so that the server can determine the traffic mapping relationship according to the user entity object and the traffic supervision system array object and evaluate the user's traffic cost performance level according to the traffic mapping relationship.
[0045] Among them, in this embodiment, sending the traffic combination data to the server, compared with directly sending the traffic raw data, the data volume is smaller, so the transmission rate is faster. And the traffic combination data will be sent to the server in a specified format, such as text text format, etc.
[0046] In a specific implementation, after the server obtains the traffic combination data, it will restore the assembled data. Specifically, it will convert the reference traffic data object flightData into a database user entity object flightObject, convert the traffic slice data object jsonData of the traffic supervision system into a traffic supervision system array object list, and generate a mapping relationship between the user entity object and the traffic supervision system array object and store it in the database table.
[0047] It should be noted that when the server receives the business trip evaluation instruction from the enterprise manager, it will sort the user entity object and multiple traffic supervision system array objects included in the traffic supervision system array object according to the specified rules. For example, it can be sorted in ascending order only according to the price, or sorted in ascending order according to the weighted sum result of the price and seat information. Of course, this is only an example in this embodiment, and the specific sorting method is not limited. And when evaluating the employee user, the price-performance level is determined specifically according to the sorting position of the traffic information specified by the employee user. The evaluation rule can be specifically that if the traffic information specified by the user is in the upper reaches, it is determined as the first level; if the traffic information specified by the user is in the middle reaches, it is determined as the second level; if the traffic information specified by the user is in the lower reaches, it is determined as the third level. The first level indicates that the traffic reserved by the employee user has a relatively high price-performance ratio, the second level indicates that the traffic reserved by the employee user has an average price-performance ratio, and the third level indicates that the traffic reserved by the employee user has a relatively low price-performance ratio. And when it is determined that the user is in the third level, key attention needs to be paid, because there is a risk that the employee user deliberately reserves high-price transportation tools.
[0048] The technical solution of the embodiment of the present invention slices the traffic information of the traffic supervision system according to the traffic information specified by the user, avoiding redundant data, which can greatly reduce the amount of data to be saved and processed, thereby reducing the difficulty of analysis and comparison, and facilitating the server to quickly evaluate the user's traffic level.
[0049] Embodiment 2
[0050] Figure 2 It is a flowchart of the method for sending traffic data provided by the embodiment of the present invention. Based on the above embodiment, after sending the traffic combination data to the server, it further includes: receiving the evaluation result feedback by the server and verifying the evaluation result. The method steps specifically include the following operations:
[0051] Step S201, obtain the traffic information specified by the user.
[0052] Optionally, obtaining the traffic information specified by the user includes: receiving the reserved traffic instruction specified by the user; collecting information according to the reserved traffic instruction to obtain the traffic information specified by the user.
[0053] Step S202, obtain the traffic information of the traffic supervision system, and slice the traffic information of the traffic supervision system based on the traffic information specified by the user to obtain the traffic supervision system traffic slice information.
[0054] Optionally, slice the traffic information of the traffic supervision system based on the user-specified traffic information to obtain the traffic slice information of the traffic supervision system, including: determining the slice interval according to the running time in the user-specified traffic information; slicing the traffic information of the traffic supervision system according to the slice interval to obtain the traffic slice information of the traffic supervision system.
[0055] Optionally, determining the slice interval according to the running time in the user-specified traffic information includes: using the running time in the user-specified traffic information as the reference time; using the time earlier than the unit duration of the reference time as the first time, and using the time later than the unit duration of the reference time as the second time; using the time interval formed by the first time and the second time as the slice interval.
[0056] Optionally, slicing the traffic information of the traffic supervision system according to the slice interval to obtain the traffic slice information of the traffic supervision system includes: obtaining the running time of each traffic in the traffic information of the traffic supervision system; retaining the traffic information whose running time is within the slice interval to obtain the traffic slice information of the traffic supervision system.
[0057] Step S203: Assemble the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combination data.
[0058] Optionally, assembling the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combination data may include: forming a reference traffic data object with the user-specified traffic information in a specified language; forming a traffic slice data object of the traffic supervision system with the traffic slice information of the traffic supervision system in a specified language; assembling the reference traffic data object and the traffic slice data object of the traffic supervision system to obtain traffic combination data.
[0059] Step S204: Send the traffic combination data to the server so that the server can evaluate the traffic performance level of the user according to the traffic combination data.
[0060] Optionally, sending the traffic combination data to the server so that the server can evaluate the traffic performance level of the user according to the traffic combination data may include: sending the traffic combination data to the server in a specified format so that the server can obtain the user entity object according to the reference traffic data object and obtain the traffic supervision system array object according to the specified traffic supervision system traffic data object; enabling the server to determine the traffic mapping relationship according to the user entity object and the traffic supervision system array object, and evaluate the traffic performance level of the user according to the traffic mapping relationship.
[0061] Step S205: Receive the evaluation result feedback by the server and check the evaluation result.
[0062] It should be noted that in this embodiment, the server may output incorrect evaluation results due to network terminals or data processing errors. Therefore, after obtaining the evaluation results, the server feeds back the evaluation results to the user client. If the user finds that the evaluation results are significantly incorrect, for example, the means of transportation the user takes is an airplane and a discounted economy class is booked, but the given evaluation level is the third level, an alarm prompt will be given to the user at this time to reflect to the enterprise manager in a timely manner.
[0063] The technical solution of the embodiment of the present invention slices the traffic information of the traffic supervision system according to the user-specified traffic information, avoiding redundant data, which can greatly reduce the amount of data to be saved and processed, thereby reducing the difficulty of analysis and comparison, and facilitating the server to quickly evaluate the user's traffic level. And by checking the evaluation feedback from the receiving server and giving an alarm prompt to the user when it is determined that the evaluation result is significantly incorrect, so that the user can reflect to the enterprise manager according to the prompt, so as to avoid incorrect evaluation of the user due to server failure.
[0064] Embodiment III
[0065] Figure 3 It is a flowchart of the method for sending traffic data provided by the embodiment of the present invention. This embodiment is based on the above embodiment and specifically describes step S103. The method steps specifically include the following operations:
[0066] Step S301, forming a reference traffic data object with the user-specified traffic information in a specified language.
[0067] Specifically, in this embodiment, after obtaining the user-specified traffic information, the means of transportation used by the user, as well as the starting position, running time, price, seat information, etc. of the traffic are included in the user-specified traffic information. In order to further reduce the amount of data transmission, after obtaining the user-specified traffic information, the assembly unit will be triggered, and the assembly unit will form a reference traffic data object flightData with the user-specified traffic information in JavaScript language. Specifically, the starting position, running time, price, and seat information included in the specified traffic information are represented by specified symbols. For example, the starting position is from Beijing to Shanghai, the seat information is first class, the running time is 8 o'clock on November 10, 2021, and the price is 500 yuan. Then, in the reference traffic data object flightData, it specifically includes (BH T 2021.11.10.8 500), where BH represents Beijing to Shanghai, and T represents first class, etc., and is converted in a specified language, thereby reducing the amount of data of the specified traffic information.
[0068] Step S302: Compose the traffic slice information of the traffic supervision system into a traffic slice data object of the traffic supervision system in a specified language.
[0069] Specifically, in this embodiment, when it is determined that the means of transportation used by the user is a flight, after obtaining the traffic slice information of the traffic supervision system, the traffic slice information of the traffic supervision system includes the starting position, running time, price, seat information, etc. of each flight within a specified time range. To further reduce the data transmission volume, after obtaining the user-specified traffic information, the assembly unit will be triggered, and the traffic slice information of the traffic supervision system will be composed into a traffic slice data object of the traffic supervision system using the JavaScript language. The specific conversion method is generally the same as the method for determining the reference traffic data object described above, but the difference is that since the traffic slice information of the traffic supervision system contains multiple flight information, the traffic slice data object in this embodiment is represented in the form of a data sequence.
[0070] For example, it is determined that the traffic slice information of the traffic supervision system contains two flight information, which are: the starting position is from Beijing to Shanghai, the seat information is economy class, the running time is 7:00 on November 10, 2021, and the price is 450 yuan; and the starting position is from Beijing to Shanghai, the seat information is first-class discounted class, the running time is 8:00 on November 10, 2021, and the price is 480 yuan. Then the traffic slice data object of the traffic supervision system includes a data sequence Of course, this is only an example in this embodiment, and it does not limit the specific type of the specified symbol used for the specific parameters of each flight information.
[0071] Step S303: Assemble the reference traffic data object and the traffic slice data object of the traffic supervision system to obtain traffic combination data.
[0072] Among them, in this embodiment, after obtaining the reference traffic data object and the traffic slice data object of the traffic supervision system, the two data objects will be assembled to establish a correspondence relationship between the data objects, so as to obtain traffic combination data. Thus, it can be known that the traffic combination data obtained through assembly has a significantly reduced data volume compared with the original data, thereby further improving the efficiency of traffic data transmission.
[0073] The technical solution of the embodiment of the present invention slices the traffic information of the traffic supervision system according to the user-specified traffic information, avoiding redundant data, which can greatly reduce the amount of data to be saved and processed, thereby reducing the difficulty of analysis and comparison and facilitating the server to quickly evaluate the user's traffic level. And by checking the evaluation feedback from the receiving server and giving an alarm prompt to the user when it is determined that the evaluation result is significantly incorrect, so that the user can reflect to the enterprise manager according to the prompt to avoid incorrect evaluation of the user due to server failure. And by assembling the specified traffic information and the traffic slice information of the traffic supervision system according to the specified language, the number of transmitted traffic data can be further reduced.
[0074] Embodiment 4
[0075] Figure 4 FIG. is a schematic structural diagram of a traffic data sending device provided by an embodiment of the present invention. The device includes: a user-specified traffic information acquisition module 310, a traffic supervision system traffic slice information acquisition module 320, a traffic combination data acquisition module 330, and an evaluation module 340.
[0076] The user-specified traffic information acquisition module 310 is used to acquire user-specified traffic information;
[0077] The traffic supervision system traffic slice information acquisition module 320 is used to acquire the traffic information of the traffic supervision system and slice the traffic information of the traffic supervision system based on the user-specified traffic information to obtain traffic supervision system traffic slice information;
[0078] The traffic combination data acquisition module 330 is used to assemble the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combination data;
[0079] The evaluation module 340 is used to send the traffic combination data to the server so that the server evaluates the traffic performance level of the user according to the traffic combination data.
[0080] Optionally, the traffic information includes: starting position, running time, ticket price, and cabin class information.
[0081] Optionally, the user-specified traffic information acquisition module is specifically used to receive a predetermined traffic instruction specified by the user;
[0082] Collect information according to the predetermined traffic instruction to obtain user-specified traffic information.
[0083] Optionally, the traffic supervision system traffic slice information acquisition module specifically includes: a slice interval determination sub-module, which is used to determine the slice interval according to the running time in the user-specified traffic information;
[0084] The slicing sub-module is used to slice the traffic information of the traffic supervision system according to the slicing interval to obtain the traffic slicing information of the traffic supervision system.
[0085] Optionally, the slicing interval determination sub-module includes: a reference time determination module for using the running time in the user-specified traffic information as the reference time;
[0086] An interval endpoint time determination module for using the time earlier than the reference time unit duration as the first time and the time later than the reference time unit duration as the second time;
[0087] The slicing interval acquisition module is used to use the time interval formed by the first time and the second time as the slicing interval.
[0088] Optionally, the slicing sub-module is used to obtain the running time of each vehicle in the traffic information of the traffic supervision system;
[0089] Retain the traffic information whose running time is within the slicing interval to obtain the traffic slicing information of the traffic supervision system.
[0090] Optionally, the device further includes a running time conversion module for converting each traffic running time according to a unified unit time to obtain the converted running time;
[0091] The slicing sub-module is specifically used to retain the traffic information whose converted running time of each traffic is within the slicing interval to obtain the traffic slicing information of the traffic supervision system.
[0092] Optionally, the traffic combination data acquisition module includes: a reference traffic data object acquisition module for forming a reference traffic data object from the user-specified traffic information in a specified language;
[0093] The traffic slicing data object acquisition module of the traffic supervision system is used to form a traffic slicing data object of the traffic supervision system from the traffic slicing information of the traffic supervision system in a specified language;
[0094] The assembly module is used to assemble the reference traffic data object and the traffic slicing data object of the traffic supervision system to obtain traffic combination data.
[0095] Optionally, the evaluation module is used to send the traffic combination data to the server in a specified format, so that the server can obtain the user entity object according to the reference traffic data object and obtain the traffic supervision system array object according to the specified traffic supervision system data object;
[0096] So that the server can determine the traffic mapping relationship according to the user entity object and the traffic supervision system array object, and evaluate the traffic performance level of the user according to the traffic mapping relationship.
[0097] Optionally, the traffic information further includes: flight duration and arrival time.
[0098] Optionally, the specified language includes: JavaScript.
[0099] Optionally, the apparatus further includes an inspection module, configured to receive the evaluation result fed back by the server; and inspect the evaluation result.
[0100] The above apparatus can execute the method for sending traffic data provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
[0101] Embodiment Five
[0102] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 5 It shows a block diagram of an exemplary electronic device 412 suitable for implementing the embodiments of the present invention. Figure 5 The shown electronic device 412 is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present invention.
[0103] As Figure 5 shown, the electronic device 412 appears in the form of a general-purpose computing device. The components of the electronic device 412 may include but are not limited to: one or more processors 416, a memory 428, and a bus 418 connecting different system components (including the memory 428 and the processor 416).
[0104] The bus 418 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the multiple bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0105] The electronic device 412 typically includes a variety of computer system-readable media. These media can be any available media accessible by the electronic device 412, including volatile and non-volatile media, removable and non-removable media.
[0106] The memory 428 is used to store instructions. The memory 428 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 432. The electronic device 412 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 434 may be used for reading and writing on non-removable, non-volatile magnetic media ( Figure 4 not shown, commonly referred to as a "hard disk drive"). Although Figure 5 not shown in, a disk drive for reading and writing on removable non-volatile disks (such as "floppy disks") and an optical disk drive for reading and writing on removable non-volatile optical disks (such as CD-ROM, DVD-ROM or other optical media) may be provided. In these cases, each drive may be connected to the bus 418 through one or more data media interfaces. The memory 428 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0107] A program / utility 440 having a set (at least one) of program modules 442 may be stored, for example, in the memory 428. Such program modules 442 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules 442 generally perform the functions and / or methods in the embodiments described in the present invention.
[0108] The electronic device 412 may also communicate with one or more external devices 414 (such as a keyboard, a pointing device, a display 424, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 412, and / or communicate with any device that enables the electronic device 412 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication may be carried out through the input / output (I / O) interface 422. Also, the electronic device 412 may communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 420. As shown in the figure, the network adapter 420 communicates with other modules of the electronic device 412 through the bus 418. It should be understood that although Figure 4 not shown in, other hardware and / or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0109] The processor 416 executes various functional applications and data processing by running instructions stored in the memory 428, such as implementing the traffic data sending method provided by the embodiments of the present invention: obtaining user-specified traffic information; obtaining traffic information of the traffic supervision system, and slicing the traffic information of the traffic supervision system based on the user-specified traffic information to obtain traffic slice information of the traffic supervision system; assembling the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combined data; sending the traffic combined data to the server so that the server evaluates the traffic performance grade of the user according to the traffic combined data.
[0110] Embodiment Six
[0111] The embodiments of the present invention provide a computer program product, including a computer program, which when executed by a processor, implements the traffic data sending method provided by all the embodiments of the present application: obtaining user-specified traffic information; obtaining traffic information of the traffic supervision system, and slicing the traffic information of the traffic supervision system based on the user-specified traffic information to obtain traffic slice information of the traffic supervision system; assembling the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combined data; sending the traffic combined data to the server so that the server evaluates the traffic performance grade of the user according to the traffic combined data.
[0112] One or more arbitrary combinations of computer-readable media can be adopted. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device.
[0113] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0114] The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination of the foregoing.
[0115] The computer program code for performing the operations of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).
[0116] Note that the above is only the preferred embodiment of the present invention and the applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for sending traffic data, characterized in that, Including: Obtaining user-specified traffic information, where the traffic information includes: starting location, running time, price, and seat information; Obtaining traffic information from a traffic supervision system, and slicing the traffic information from the traffic supervision system based on the user-specified traffic information to obtain traffic slice information of the traffic supervision system; Assembling the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combination data; Sending the traffic combination data to a server so that the server evaluates the user's traffic cost-performance level based on the traffic combination data; The slicing the traffic information from the traffic supervision system based on the user-specified traffic information to obtain traffic slice information of the traffic supervision system includes: determining a slice interval according to the running time in the user-specified traffic information; slicing the traffic information from the traffic supervision system according to the slice interval to obtain the traffic slice information of the traffic supervision system.
2. The method according to claim 1, wherein The obtaining the user-specified traffic information includes: Receiving a predetermined traffic instruction specified by the user; Performing information collection according to the predetermined traffic instruction to obtain the user-specified traffic information.
3. The method according to claim 1, characterized in that The determining the slice interval according to the running time in the user-specified traffic information includes: Taking the running time in the user-specified traffic information as a reference time; Taking the time earlier than the reference time by a unit duration as the first time, and taking the time later than the reference time by a unit duration as the second time; Taking the time interval formed by the first time and the second time as the slice interval.
4. The method according to claim 1, characterized in that, The slicing the traffic information from the traffic supervision system according to the slice interval to obtain traffic slice information of the traffic supervision system includes: Obtaining the running time of each vehicle in the traffic information of the traffic supervision system; Retaining the traffic information whose running time is within the slice interval to obtain the traffic slice information of the traffic supervision system.
5. According to the method described in claim 4, after obtaining the running time of each vehicle in the traffic information of the traffic supervision system, it further includes: Converting the running time of each vehicle into a unified unit time to obtain the converted running time; The retaining the traffic information whose running time is within the slice interval to obtain the traffic slice information of the traffic supervision system includes: Retaining the traffic information whose converted running time of each vehicle is within the slice interval to obtain the traffic slice information of the traffic supervision system.
6. The method according to claim 1, wherein The assembling the user-specified traffic information and the traffic slice information of the traffic supervision system to obtain traffic combination data includes: Composing the user-specified traffic information into a reference traffic data object in a specified language; Composing the traffic slice information of the traffic supervision system into a traffic slice data object of the traffic supervision system in a specified language; Assembling the reference traffic data object and the traffic slice data object of the traffic supervision system to obtain the traffic combination data.
7. The method according to claim 6, characterized in that, Sending the traffic combination data to a server so that the server evaluates the user's traffic cost-performance level based on the traffic combination data includes: Send the traffic combination data to the server in a specified format, so that the server can obtain the user entity object according to the reference traffic data object, and obtain the traffic supervision system array object according to the traffic slice data object of the traffic supervision system; So that the server can determine the traffic mapping relationship according to the user entity object and the traffic supervision system array object, and evaluate the traffic performance level of the user according to the traffic mapping relationship.
8. The method according to claim 1, characterized in that, The traffic information further includes: running duration and arrival time.
9. The method according to claim 6, wherein The specified language includes: JavaScript.
10. The method according to any one of claims 1 to 8, characterized in that After sending the traffic combination data to the server so that the server can evaluate the traffic performance level of the user according to the traffic combination data, it further includes: Receiving the evaluation result feedback by the server; Checking the evaluation result.
11. A traffic data sending device, characterized in that, Including: A user-specified traffic information acquisition module for acquiring user-specified traffic information, where the traffic information includes: starting position, running time, price, and seat information; A traffic supervision system traffic slice information acquisition module for acquiring traffic supervision system traffic information, and slicing the traffic supervision system traffic information based on the user-specified traffic information to obtain traffic supervision system traffic slice information; A traffic combination data acquisition module for assembling the user-specified traffic information and the traffic supervision system traffic slice information to obtain traffic combination data; An evaluation module for sending the traffic combination data to the server so that the server can evaluate the traffic performance level of the user according to the traffic combination data; Among them, the traffic supervision system traffic slice information acquisition module includes: a slice interval determination sub-module for determining a slice interval according to the running time in the user-specified traffic information; A slicing sub-module for slicing the traffic supervision system traffic information according to the slice interval to obtain the traffic supervision system traffic slice information.
12. The device according to claim 11, wherein, The slice interval determination sub-module includes: A reference time determination module for using the running time in the user-specified traffic information as the reference time; An interval endpoint time determination module for using the time earlier than the reference time unit duration as the first time, and the time later than the reference time unit duration as the second time; A slice interval acquisition module for using the time interval formed by the first time and the second time as the slice interval.
13. The device according to claim 11, wherein The traffic combination data acquisition module includes: A reference traffic data object acquisition module for forming a reference traffic data object by using the user-specified traffic information in a specified language; A traffic supervision system traffic slice data object acquisition module for forming a traffic supervision system traffic slice data object by using the traffic supervision system traffic slice information in a specified language; An assembly module for assembling the reference traffic data object and the traffic supervision system traffic slice data object to obtain the traffic combination data.
14. An electronic device, characterized in that, The electronic device includes: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-10.
15. A computer program product, comprising a computer program, characterized in that, The computer program, when executed by a processor, implements the method according to any one of claims 1-10.
Citation Information
Patent Citations
Travel order monitoring method and device, computer equipment and storage medium
CN110135815A
Order task processing method, device and travel service providing method and device
CN112150106A