Trajectory data processing method and device, electronic equipment and storage medium
By generating a trajectory storage path and storing abnormal trajectory data in a text file, the problem of low trajectory data query efficiency and resource waste in existing technologies is solved, and efficient trajectory data management and query are achieved.
Patent Information
- Application Number
- CN202310814128.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-04
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2043-07-04
AI Technical Summary
In existing technologies, trajectory data query efficiency is low and database resources are wasted, especially when the data volume is large, query efficiency and security are difficult to meet the requirements.
By generating a trajectory storage path and utilizing target application form identification information and vehicle identification information, abnormal trajectory data is stored in a text file, reducing reliance on the database and improving query efficiency.
It improves the efficiency of trajectory data classification and querying, saves database resources, and ensures the accuracy and flexibility of queries.
Smart Images

Figure CN116842282B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of big data, the field of Internet of Things technology, and the field of financial technology, and in particular, to a trajectory data processing method and device, an electronic device, a medium, and a program product. BACKGROUND
[0002] With the development of Internet of Things technology, Internet of Things devices are increasingly widely used. For example, a vehicle-mounted positioning device can provide real-time trajectory data of a vehicle.
[0003] In the process of implementing the present disclosure, the inventors have found that in the related art, because there is a large amount of trajectory data, the efficiency of querying the trajectory data is low. SUMMARY
[0004] In view of the above problems, the present disclosure provides a trajectory data processing method and device, an electronic device, a medium, and a program product.
[0005] According to a first aspect of the present disclosure, a trajectory data processing method is provided, comprising: determining target application form information corresponding to a target vehicle according to received trajectory data from the target vehicle, wherein the target application form information includes target application form identification information, vehicle identification information of the target vehicle, and application use area information, the application use area information being used to determine an area in which a target object applies to use the target vehicle; verifying the trajectory data according to the application use area information to obtain a verification result; generating a first trajectory storage path based on the target application form identification information and the vehicle identification information according to a first path generation rule; and storing trajectory data whose verification result is abnormal in a first text file located at the first trajectory storage path.
[0006] According to an embodiment of the present disclosure, the trajectory data includes a plurality of coordinate information and time information corresponding to each of the plurality of coordinate information; the target application form information further includes application use time period information of the target object using the target vehicle; and the trajectory data processing method further includes: determining first target coordinate information corresponding to time information within the application use time period information from the plurality of coordinate information; generating a second trajectory storage path based on the target application form identification information and the vehicle identification information according to a second path generation rule; and storing the first target coordinate information and the time information corresponding to the first target coordinate information in a second text file located at the second trajectory storage path.
[0007] According to an embodiment of the present disclosure, verifying the trajectory data according to the application use area information to obtain a verification result includes: matching the first target coordinate information in the second text file with the application use area information to verify the first target coordinate information in the second text file to obtain a verification result corresponding to the first target coordinate information.
[0008] According to an embodiment of the present disclosure, the target application form identification information includes object identification information of the target object and application time identification information, and the application time identification information is determined according to an application time at which the target object applies to use the target vehicle.
[0009] According to an embodiment of the present disclosure, the second trajectory storage path is generated based on the target application form identification information and the vehicle identification information according to the second path generation rule, including: splitting the application time identification information to obtain date identification information and time identification information; generating a first date identification storage path according to the date identification information based on the first preset path; generating a time identification storage path according to the time identification information based on the first date storage path; generating an object identification storage path according to the object identification information based on the time storage path; and generating the second trajectory storage path according to the vehicle identification information based on the object identification storage path.
[0010] According to an embodiment of the present disclosure, the first target coordinate information and the time information corresponding to the first target coordinate information are stored in the second text file located in the second trajectory storage path, including: generating the second text file in the second trajectory storage path; determining file identification information of the second text file according to the object identification information, the application time identification information and the vehicle identification information; and storing the first target coordinate information and the time information corresponding to the first target coordinate information in the second text file.
[0011] According to an embodiment of the present disclosure, the trajectory data representing an exception in the verification result is stored in the first text file located in the first trajectory storage path, including: generating the first text file in the first trajectory storage path; generating file identification information of the first text file according to the vehicle identification information; and storing the abnormal first target coordinate information and the time information corresponding to the abnormal first target coordinate information in the second text file representing an exception in the verification result in the first text file.
[0012] According to an embodiment of the present disclosure, the trajectory data processing method further includes: determining, from the plurality of coordinate information, second target coordinate information corresponding to time information not in the application use time period information.
[0013] According to an embodiment of the present disclosure, the application use area information includes parking area information; and the trajectory data is verified according to the application use area information to obtain a verification result, including: matching the second target coordinate information with the parking area information to verify the second target coordinate information to obtain a verification result corresponding to the second target coordinate information.
[0014] According to an embodiment of the present disclosure, the trajectory data represented by the abnormality of the check result is stored into a first text file located at the first trajectory storage path, including: storing the abnormal second target coordinate information represented by the abnormality of the check result and time information corresponding to the abnormal second target coordinate information into the first text file.
[0015] According to an embodiment of the present disclosure, the first trajectory storage path is generated based on the target application form identification information and the vehicle identification information according to the first path generation rule, including: splitting the vehicle identification information according to a vehicle identification splitting rule to obtain n pieces of split vehicle identification information, where n is a positive integer greater than 2; generating a second date identification storage path according to the date identification information based on a second preset path; generating a first-level split identification storage path according to the first-level split vehicle identification information based on the second date identification storage path; generating an i-level split identification storage path according to the i-level split vehicle identification information based on an (i-1)-level split identification storage path, where i is a positive integer greater than or equal to 2 and less than or equal to n; and generating the first trajectory storage path according to the vehicle identification information based on an n-level split identification storage path.
[0016] According to an embodiment of the present disclosure, the trajectory data processing method further includes generating warning information about the target vehicle based on the first text file stored in the first trajectory storage path.
[0017] A second aspect of the present disclosure provides a trajectory data processing apparatus, including: a first determination module configured to determine target application form information corresponding to a target vehicle according to received trajectory data from the target vehicle, wherein the target application form information includes target application form identification information, vehicle identification information of the target vehicle, and application use area information, and the application use area information is used to determine an area in which a target object applies to use the target vehicle; a check module configured to check the trajectory data according to the application use area information to obtain a check result; a first generation module configured to generate a first trajectory storage path based on the target application form identification information and the vehicle identification information according to a first path generation rule; and a first storage module configured to store trajectory data represented by an abnormality of the check result into a first text file located at the first trajectory storage path.
[0018] A third aspect of the present disclosure provides an electronic device, including: one or more processors; a memory configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors perform the above method.
[0019] A fourth aspect of the present disclosure further provides a computer-readable storage medium having stored executable instructions, which, when executed by a processor, cause the processor to perform the above method.
[0020] The fifth aspect of this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0021] According to the trajectory data processing method, apparatus, electronic device, medium, and program product provided in this disclosure, by verifying the trajectory data using the application area in the target application form information, it is possible to determine that the trajectory data of the target vehicle is abnormal. This allows the abnormal trajectory data to be stored in a first text file, improving the efficiency of trajectory data classification. Furthermore, since a storage path for storing abnormal trajectory data is generated based on the application form identification information and vehicle identification information according to the first path generation rule, abnormal trajectories can be queried using only the target application form identification information and vehicle identification information, improving trajectory query efficiency. Moreover, since the trajectory data is stored in a first text file, the first text file can be stored on a hard disk, further improving the efficiency of trajectory querying and saving database resources compared to storing trajectory data in a database. Attached Figure Description
[0022] The foregoing contents, as well as other objects, features, and advantages of this disclosure, will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0023] Figure 1 This diagram illustrates an application scenario of the trajectory data processing method according to an embodiment of the present disclosure.
[0024] Figure 2 A flowchart illustrating a trajectory data processing method according to an embodiment of the present disclosure is shown schematically.
[0025] Figure 3 A flowchart illustrating a first trajectory storage path generation method according to an embodiment of the present disclosure is shown schematically.
[0026] Figure 4 A flowchart illustrating a trajectory data processing method according to another embodiment of the present disclosure is shown schematically;
[0027] Figure 5 A schematic block diagram of a trajectory data processing apparatus according to an embodiment of the present disclosure is shown; and
[0028] Figure 6 A block diagram of an electronic device suitable for implementing a trajectory data processing method according to an embodiment of the present disclosure is shown schematically. Detailed Implementation
[0029] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0030] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0031] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0032] When using expressions such as "at least one of A, B, and C", they should generally be interpreted in accordance with the meaning that is commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B, and C, etc.).
[0033] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision, disclosure, and application of data (including but not limited to user personal information) comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and they do not violate public order and good morals.
[0034] Because there is a large amount of trajectory data, querying the required trajectory data in the database is inefficient.
[0035] According to embodiments of this disclosure, trajectory data can be stored using methods such as database sharding, caching + distributed database, and time-series-based database.
[0036] In the process of realizing the inventive concept disclosed herein, the inventors discovered that when the amount of trajectory data is large, storing trajectory data using a database sharding and table partitioning method will result in too many databases and tables, which in turn leads to low query efficiency.
[0037] However, using a combination of caching and distributed databases to store trajectory data presents challenges in terms of data security and confidentiality. Furthermore, when the data volume reaches a certain level, it can lead to wasted database storage resources and low query efficiency.
[0038] Time-series databases have weak support for querying data based on identifier information, and their development time is relatively short, making it difficult to meet performance requirements.
[0039] Therefore, existing technologies suffer from the problems of using databases to store trajectory data, resulting in significant resource waste and low efficiency in querying trajectories.
[0040] In view of this, embodiments of the present disclosure provide a trajectory data processing method, comprising: determining target application form information corresponding to the target vehicle based on received trajectory data from the target vehicle, wherein the target application form information includes target application form identification information, vehicle identification information of the target vehicle, and application usage area information, the application usage area information being used to determine the area where the target object applies to use the target vehicle; verifying the trajectory data according to the application usage area information to obtain a verification result; generating a first trajectory storage path based on the target application form identification information and vehicle identification information according to a first path generation rule; and storing trajectory data indicating anomalies as represented by the verification result into a first text file located in the first trajectory storage path.
[0041] Figure 1 The diagram illustrates an application scenario of the trajectory data processing method according to an embodiment of the present disclosure.
[0042] like Figure 1 As shown, application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0043] Users can interact with server 105 via network 104 using at least one of the first terminal device 101, second terminal device 102, and third terminal device 103 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, second terminal device 102, and third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0044] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0045] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (this is just an example). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.
[0046] It should be noted that the trajectory data processing method provided in this embodiment can generally be executed by server 105. Correspondingly, the trajectory data processing device provided in this embodiment can generally be located in server 105. The trajectory data processing method provided in this embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105. Correspondingly, the trajectory data processing device provided in this embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105.
[0047] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0048] The following will be based on Figure 1 The described scene, through Figures 2 to 4 The trajectory data processing method of the disclosed embodiments will be described in detail.
[0049] Figure 2 A flowchart illustrating a trajectory data processing method according to an embodiment of the present disclosure is shown schematically.
[0050] like Figure 2 As shown, the trajectory data processing method of this embodiment includes operations S210 to S240.
[0051] In operation S210, based on the trajectory data received from the target vehicle, the target application form information corresponding to the target vehicle is determined. The target application form information includes target application form identification information, target vehicle identification information, and application area information. The application area information is used to determine the area where the target object applies to use the target vehicle.
[0052] When operating S220, the trajectory data is verified according to the requested area information, and the verification result is obtained.
[0053] During operation S230, the first trajectory storage path is generated based on the target application form identification information and vehicle identification information, according to the first path generation rule.
[0054] In operation S240, the trajectory data that indicates an anomaly in the verification result is stored in a first text file located in the first trajectory storage path.
[0055] According to embodiments of this disclosure, the target vehicle can be a vehicle whose trajectory data is to be stored. The target vehicle can be equipped with a positioning device, which can transmit the trajectory data of the target vehicle. The trajectory data can be the driving trajectory of the target vehicle. The trajectory data can include the coordinate information of the target vehicle within a certain time period. The positioning device can transmit the coordinate information at a frequency such as once per second. For example, the trajectory data can include the longitude and latitude coordinates of the target vehicle per second, but is not limited to this; it can also include the time information corresponding to the longitude and latitude coordinates. For example, the trajectory data can include "20°N, 30°W, November 15, 2021, 11:28:05:12 ms". When the target vehicle is moving, the multiple coordinate information in the trajectory data can be different; when the target vehicle is stationary, the multiple coordinate information in the trajectory data can be the same.
[0056] According to embodiments of this disclosure, the target application form information may be generated when a target object applies to use a target vehicle. The target application form information may include target application form identification information, vehicle identification information of the target vehicle, and application area information.
[0057] The target application form identification information can be used to identify the application form generated when a target object applies to use the target vehicle. The target application form identification information can be determined based on the target object's object identification information and the application time information for using the target vehicle. For example, target application form identification information can be generated based on the application time information and object identification information. This target application form identification information can include application time identification information and object identification information corresponding to the application time information. For example, the application time information can include year, month, day, hour, minute, second, and millisecond. Therefore, the target application form identification information can include 8 digits representing the year, month, and day, 9 digits representing the hour, minute, second, and millisecond, and object identification information, such as 2023071918181818112345678. Here, 20230428 can be the aforementioned 8 digits representing the year, month, and day, 181818181 can be the aforementioned digits representing the hour, minute, second, and millisecond, and 12345678 can be the object identification information.
[0058] Vehicle identification information can be used to distinguish a target vehicle from other vehicles. Vehicle identification information may include, but is not limited to, the license plate information of the target vehicle. If a positioning device is deployed on the target vehicle, the device identification information of that positioning device can be used as the license plate information of the target vehicle. For example, the license plate information could be 1q2w3e4r5t6y7u8i9o;
[0059] The requested area information can be the area where the target vehicle is requested to use the vehicle. For example, an area can be defined on a map, and the requested area information can be determined based on this defined area. The target vehicle can only drive or park within the requested area information. The requested area information can include driving area information and parking area information. Each area in the requested area information can have a distinguishing identifier.
[0060] The requested area information can also be used to verify trajectory data and obtain verification results. These results can be used to identify abnormal trajectory data. Based on the verification results, it can be determined whether the target vehicle's trajectory exceeds the area where the target user requested to use the vehicle. If the target vehicle's trajectory exceeds the area where the target user requested to use the vehicle, the trajectory data can be determined to be abnormal.
[0061] According to embodiments of this disclosure, the target application form identification information and vehicle identification information can also be used to generate a first trajectory storage path. The first trajectory storage path can be used to store abnormal trajectory data. Since the first trajectory storage path is generated based on the target application form identification information and vehicle identification information, the text file stored in the first trajectory storage path can be retrieved based on the target application form identification information and vehicle identification information, thus improving the query efficiency of retrieving the text file.
[0062] According to embodiments of this disclosure, a first path generation rule can be used to generate a first trajectory storage path. For example, the first path generation rule can be used to split the target application form identification information and vehicle identification information to obtain multiple split identifiers, and then generate a first trajectory storage path based on these multiple split identifiers. Thus, text files in the first trajectory storage path can be retrieved using the target application form identification information and vehicle identification information.
[0063] According to embodiments of this disclosure, a first text file located in a first trajectory storage path may include abnormal trajectory data. By using the first text file to store abnormal trajectory data, the abnormal trajectory data can be transferred from the server to the hardware device, thereby saving server resources.
[0064] According to embodiments of this disclosure, trajectory data may also include vehicle identification information. Upon receiving trajectory data from a target vehicle, target application information, which also includes the vehicle identification information, can be determined based on the vehicle identification information in the trajectory data.
[0065] According to embodiments of this disclosure, the trajectory data can be verified by determining whether the coordinate information in the trajectory data falls within the requested usage area information, thereby obtaining a verification result. If the coordinate information in the trajectory data falls within the requested usage area information, the trajectory data can be determined to be normal; if the coordinate information in the trajectory data does not fall within the requested usage area information, the trajectory data can be determined to be abnormal.
[0066] According to embodiments of this disclosure, a first trajectory storage path is generated based on the target application form identifier information and vehicle identifier information according to a first path generation rule. The first trajectory storage path corresponding to the target application form identifier information and vehicle identifier information can be generated according to the first path generation rule. Therefore, text files within the first trajectory storage path can be queried based on the target application form identifier information and vehicle identifier information. Based on this, even if the trajectory data increases, the efficiency of trajectory data query can still meet the requirements.
[0067] According to embodiments of this disclosure, by verifying the trajectory data using the application usage area in the target application form information, it can be determined that the trajectory data of the target vehicle is abnormal. This allows the abnormal trajectory data to be stored in a first text file, improving the efficiency of trajectory data classification. Furthermore, since a storage path for storing abnormal trajectory data is generated based on the application form identification information and vehicle identification information according to the first path generation rule, abnormal trajectories can be queried using only the target application form identification information and vehicle identification information, improving trajectory query efficiency. Moreover, since the trajectory data is stored in a first text file, the first text file can be stored on a hard disk, further improving the efficiency of trajectory querying and saving database resources compared to storing the trajectory data in a database.
[0068] According to embodiments of this disclosure, the target vehicle can be a publicly used vehicle, thereby allowing the determination of abnormal trajectories of the publicly used vehicle by verifying its trajectory data.
[0069] According to embodiments of this disclosure, the trajectory data includes multiple coordinate information and corresponding time information for each coordinate information. The target application form information also includes the application period information for the target object to use the target vehicle. The trajectory data processing method further includes: determining, from the multiple coordinate information, a first target coordinate information whose corresponding time information is within the application period information; generating a second trajectory storage path based on the target application form identification information and vehicle identification information according to a second path generation rule; and storing the first target coordinate information and the corresponding time information in a second text file located in the second trajectory storage path.
[0070] According to embodiments of this disclosure, the requested usage time period information can be determined based on the time period during which the target object requests to use the target vehicle. For example, when a target object requests to use the target vehicle, the target object can select the time period for using the target vehicle, thereby determining the requested usage time period information. The requested usage time information may include start usage time information and end usage time information, etc. The start usage time information may be the start time of the requested usage time information, and the end usage time information may be the end time of the requested usage time information.
[0071] According to embodiments of this disclosure, the first target coordinate information may be the coordinate information of the corresponding time period information within the application period information.
[0072] According to embodiments of this disclosure, a second path generation rule can be used to generate a second trajectory storage path. For example, the second path generation rule can be used to generate a second trajectory storage path based on target application form identification information and vehicle identification information. Therefore, a second text file within the second trajectory storage path can be retrieved using the target application form identification information and vehicle identification information.
[0073] According to embodiments of this disclosure, a second text file in the second trajectory storage path can be used to store trajectory data to be verified. Before verifying the trajectory data, the trajectory data can be stored in the second text file in the second trajectory storage path.
[0074] According to embodiments of this disclosure, the time information corresponding to the coordinate information can be matched with the application period information to determine the coordinate information of the time information that is within the application period information as the first target coordinate information from multiple coordinate information.
[0075] According to embodiments of this disclosure, a second trajectory storage path is generated based on the target application form identifier information and vehicle identifier information according to the second path generation rule. The target application form identifier information and vehicle identifier information can be separately decomposed according to the second path generation rule to obtain the second trajectory storage path corresponding to the second path generation rule. Therefore, text files in the second trajectory storage path can be queried based on the target application form identifier information and vehicle identifier information.
[0076] According to the embodiments of this disclosure, since a second trajectory storage path is generated based on the target application form identification information and vehicle identification information according to the second path generation rule, a second trajectory storage path is generated to store the coordinate information of the time period information within the application period information. Therefore, the coordinate information and the time information corresponding to the coordinate information can be stored in a second text file of the second trajectory storage path. Thus, the trajectory data of the target vehicle can be queried based on the target application form identification information and vehicle identification information, thereby improving the efficiency of querying the trajectory data of the target vehicle.
[0077] According to embodiments of this disclosure, the trajectory data is verified according to the application area information to obtain a verification result, including: matching the first target coordinate information in the second text file with the application area information to verify the first target coordinate information in the second text file and obtaining a verification result corresponding to the first target coordinate information.
[0078] According to embodiments of this disclosure, the first target coordinate information in the second text file can be matched with the application area information to determine whether the first target coordinate information is within the application area information, thereby obtaining a verification result corresponding to the first target coordinate information.
[0079] If the first target coordinate information is within the application area information, the verification result corresponding to the first target coordinate information can indicate that the first target coordinate information is normal.
[0080] If the first target coordinate information is not within the application area information, the verification result corresponding to the first target coordinate information can indicate that the first target coordinate information is abnormal.
[0081] According to embodiments of this disclosure, by matching the application area information and the first target coordinate information in the second text file to verify the first target coordinate information in the second text file, the accuracy of determining trajectory data anomalies is improved.
[0082] According to embodiments of this disclosure, the target application form identification information includes the object identification information of the target object and the application time identification information, wherein the application time identification information is determined based on the application time of the target object applying to use the target vehicle.
[0083] According to embodiments of this disclosure, since the target application form identification information includes object identification information and application time identification information, when a trajectory storage path is generated based on the target application form identification information, the required trajectory data can be queried based on the object identification information and the application time identification information, thereby improving the efficiency of querying trajectory data.
[0084] According to embodiments of this disclosure, a second trajectory storage path is generated based on the target application form identifier information and vehicle identifier information, following a second path generation rule. This includes: splitting the application time identifier information to obtain date identifier information and time identifier information; generating a first date identifier storage path based on the date identifier information, based on the first preset path; generating a time identifier storage path based on the time identifier information, based on the time identifier information; generating an object identifier storage path based on the object identifier storage path, based on the object identifier storage path; and generating a second trajectory storage path based on the vehicle identifier information, based on the object identifier storage path.
[0085] According to embodiments of this disclosure, the application time information may include date information and time information. Therefore, by splitting the application time identifier information, date identifier information corresponding to the date information and time identifier information corresponding to the time information can be obtained.
[0086] According to embodiments of this disclosure, when the application period ends, the trajectory data can be stored in a second text file in a second trajectory storage path.
[0087] The second trajectory storage path may include a first preset path and a filename path. The filename path may include an 8-digit number representing the year, month, and day; a 9-digit number representing the hour, minute, second, and millisecond; object identification information; and vehicle identification information.txt.
[0088] For example: / home / ap / nas / location / 20230428 / 1818 / 18181 / 12345678 / 1q2w3e4r5t6y7u8i9o.txt
[0089] Wherein, / home / ap / nas / location / can be the first preset path; / 20230428 / can be the above 8 digits representing the year, month and day, i.e., date identification information; / 1818 / 18181 / can be the above 9 digits representing the hour, minute, second and millisecond, i.e. time identification information; / 12345678 / can be the above object identification information; and 1q2w3e4r5t6y7u8i9o can be the above vehicle identification information.
[0090] According to embodiments of this disclosure, by splitting the application time identifier information to obtain date identifier information and time identifier information, and then, based on a first preset path, a first date identifier storage path corresponding to the date identifier information is generated. Then, based on the first date identifier storage path, a time identifier storage path corresponding to the time identifier information is generated. Next, based on the time identifier storage path, an object identifier storage path corresponding to the object identifier information is generated. Finally, based on the object identifier storage path, a second trajectory storage path is generated based on the vehicle identifier information. Based on this, trajectory data in the second trajectory storage path can be accurately retrieved using the date identifier information, time identifier information, object identifier information, and vehicle identifier information, improving the accuracy and efficiency of trajectory data retrieval.
[0091] According to the embodiments of this disclosure, when querying trajectory data, application information can be retrieved based on the time period, and the corresponding vehicle identification information can be retrieved based on the application information, thus obtaining the trajectory data.
[0092] According to embodiments of this disclosure, storing the first target coordinate information and the corresponding time information into a second text file located in a second trajectory storage path includes: generating a second text file in the second trajectory storage path; determining file identification information of the second text file based on object identification information, application time identification information, and vehicle identification information; and storing the first target coordinate information and the corresponding time information into the second text file.
[0093] According to embodiments of this disclosure, the file identification information of the second text file can be determined based on the object identification information, the application time identification information, and the vehicle identification information. For example, the file identification information may be / 20230428 / 1818 / 18181 / 12345678 / 1q2w3e4r5t6y7u8i9o / .
[0094] Among them, / 20230428 / 1818 / 18181 / can be the application time identifier information, / 12345678 / can be the object identifier information, and / 1q2w3e4r5t6y7u8i9o / can be the vehicle identifier information.
[0095] According to embodiments of this disclosure, by determining the file identification information of the second text file based on the object identification information, the application time identification information, and the vehicle identification information, the second text file can be accurately retrieved based on the object identification information, the application time identification information, and the vehicle identification information, thereby improving the efficiency and accuracy of retrieving the trajectory data stored in the second text file.
[0096] According to embodiments of this disclosure, storing trajectory data indicating anomalies in the verification results into a first text file located in a first trajectory storage path includes: generating a first text file in the first trajectory storage path; generating file identification information for the first text file based on application time identification information and vehicle identification information; and storing the abnormal first target coordinate information and the corresponding time information from a second text file indicating anomalies in the verification results into the first text file.
[0097] According to embodiments of this disclosure, file identification information for a first text file can be generated based on the application time identification information and vehicle identification information. For example, the vehicle identification information can be split to obtain split vehicle identification information. Similarly, the application time identification information can be split to obtain date identification information.
[0098] Then, based on the vehicle identification information, the split vehicle identification information, and the application time identification information, a file identification information for the first text file is generated. This text file identification information is, for example: / 20230428 / 1q2w / 3e4r / 5t6y / 7u8i / 1q2w3e4r5t6y7u8i9o / . Here, / 20230428 / can be the application time identification information, specifically, the date identification information within the application time identification information; / 1q2w / , / 3e4r / , / 5t6y / , and / 7u8i / can all be split vehicle identification information, and / 1q2w3e4r5t6y7u8i9o / can be the vehicle identification information itself.
[0099] According to an embodiment of this disclosure, when the abnormal first target coordinate information and the time information corresponding to the abnormal first target coordinate information are stored in a first text file, the abnormal first target coordinate information and the time information corresponding to the abnormal first target coordinate information can be retained in a second text file for querying.
[0100] According to the embodiments of this disclosure, by generating file identification information of a first text file based on the application time identification information and vehicle identification information, and then storing the abnormal first target coordinate information and the time information corresponding to the abnormal first target coordinate information in the second text file representing the abnormality of the verification result into the first text file, the abnormal trajectory data stored in the first text file can be accurately queried through the time information and vehicle identification information, thereby improving the accuracy and efficiency of querying abnormal trajectory data.
[0101] According to an embodiment of this disclosure, the trajectory data processing method further includes: determining, from multiple coordinate information, a second target coordinate information in which the corresponding time information is not located within the requested time period information.
[0102] According to embodiments of this disclosure, the second target coordinate information may be coordinate information whose corresponding time information is not within the requested usage time period information. The time information corresponding to the coordinate information can be matched with the requested usage time period information to determine, from multiple coordinate information sets, the coordinate information whose time information is not within the requested usage time period information as the second target coordinate information.
[0103] According to embodiments of this disclosure, the second target coordinate information, whose corresponding time information is not within the application period information, and the time information corresponding to the second target coordinate information can be stored in a third text file. The third trajectory storage path used to store the third text file can be generated based on the target application form identification information and vehicle identification information according to the second path generation rule; that is, the generation rule for the third trajectory storage path of the third text file can be the same as the generation rule for the second trajectory storage path used for the second text file.
[0104] According to embodiments of this disclosure, the file identification information of a third text file can be determined based on object identification information, application time identification information, and vehicle identification information. That is, the generation rule for the file identification information of the third text file can be the same as the generation rule for the file identification information of the second text file. For example, the file identification information of the third text file could be / 20230428 / 1818 / 18181 / 12345678 / 1q2w3e4r5t6y7u8i9o / .
[0105] Among them, / 20230428 / 1818 / 18181 / can be the application time identifier information, / 12345678 / can be the object identifier information, and / 1q2w3e4r5t6y7u8i9o / can be the vehicle identifier information.
[0106] According to embodiments of this disclosure, by determining from multiple coordinate information that the corresponding time information is not within the second target coordinate information of the requested time period, it is possible to determine whether the second target coordinate information is abnormal. Based on this, if the second target coordinate information is abnormal, it can be stored in a first text file, thereby improving the flexibility of storing trajectory data.
[0107] According to embodiments of this disclosure, the area information to be used includes parking area information. The trajectory data is verified according to the area information to obtain a verification result, including: matching the second target coordinate information with the parking area information to verify the second target coordinate information, and obtaining a verification result corresponding to the second target coordinate information.
[0108] According to embodiments of this disclosure, the second target coordinate information can be matched with the parking area information to determine whether the second target coordinate information is within the parking area information, thereby obtaining a verification result corresponding to the second target coordinate information.
[0109] If the second target coordinate information is within the parking area information, the verification result corresponding to the second target coordinate information can indicate that the second target coordinate information is normal.
[0110] If the second target coordinate information is not within the parking area information, the verification result corresponding to the second target coordinate information can indicate that the second target coordinate information is abnormal.
[0111] According to embodiments of this disclosure, by matching the second target coordinate information with parking area information to verify the second target coordinate information, it is possible to determine whether the second target coordinate information is abnormal, thereby improving the accuracy of identifying abnormal trajectory data. Furthermore, since only the parking area information and the second target coordinate information are matched, rather than matching the entire application area information with the second target coordinate information, the efficiency of identifying trajectory anomalies and the flexibility of trajectory verification are improved.
[0112] According to embodiments of this disclosure, the area information to be used may further include information on prohibited driving areas. The coordinate information in the trajectory data can be matched with the information on prohibited driving areas to verify the trajectory data and obtain a verification result. If the target vehicle travels through a prohibited driving area, this verification result can indicate an anomaly in the trajectory data. The coordinate information corresponding to the prohibited driving area in the trajectory data and the corresponding time information can be stored in a first text file. Based on this, the flexibility in determining abnormal trajectories is improved.
[0113] According to an embodiment of this disclosure, storing trajectory data representing an anomaly from the verification result into a first text file located in the first trajectory storage path includes: storing the coordinate information of the abnormal second target representing the anomaly from the verification result and the time information corresponding to the coordinate information of the abnormal second target into the first text file.
[0114] According to embodiments of this disclosure, when the abnormal second target coordinate information and the time information corresponding to the abnormal second target coordinate information are stored in a second text file, the abnormal second target coordinate information and the time information corresponding to the abnormal second target coordinate information can be retained in a third text file for querying.
[0115] According to embodiments of this disclosure, by storing the abnormal second target coordinate information, which represents the abnormality in the verification result, and the time information corresponding to the abnormal second target coordinate information, into a first text file, the abnormal second target coordinate information can be accurately retrieved from the first text file, thereby improving the accuracy and efficiency of querying abnormal trajectories.
[0116] Figure 3 A flowchart illustrating a first trajectory storage path generation method according to an embodiment of the present disclosure is shown.
[0117] like Figure 3 As shown, the first trajectory storage path generation method of this embodiment includes operations S310 to S350.
[0118] In operation S310, the vehicle identification information is split according to the vehicle identification splitting rules to obtain n split vehicle identification information, where n is a positive integer greater than 2.
[0119] During operation S320, a second date identifier storage path is generated based on the second preset path and the date identifier information.
[0120] In operation S330, based on the second date identifier storage path, the first-level split identifier storage path is generated according to the first-level split vehicle identifier information.
[0121] In operation S340, based on the (i-1)th level split identifier storage path, the i-th level split identifier storage path is generated according to the i-th level split vehicle identifier information, where i is a positive integer greater than or equal to 2 and less than or equal to n.
[0122] In operation S350, based on the nth level split identifier storage path, the first trajectory storage path is generated according to the vehicle identifier information.
[0123] According to embodiments of this disclosure, abnormal trajectory data from a second text file can be stored in a first text file during a target time period. The first trajectory storage path may include a second preset path, date identification information, and a filename path. The vehicle identification information can be split according to a vehicle identification splitting rule to obtain the filename path. For example, the splitting rule can be to split the vehicle identification information every 4 characters, and not split it if it is less than 4 characters, and finally concatenate the vehicle identification information. For example: / home / ap / nas / warn / 20230428 / 1q2w / 3e4r / 5t6y / 7u8i / 1q2w3e4r5t6y7u8i9o.txt.
[0124] Among them, / home / ap / nas / warn / can be a second preset path; / 20230428 / can be date identification information; / 1q2w / , / 3e4r / , / 5t6y / and / 7u8i / can all be split vehicle identification information; / 1q2w3e4r5t6y7u8i9o / can be vehicle identification information.
[0125] According to embodiments of this disclosure, based on the second preset path, a second date identifier storage path is generated corresponding to the date identifier information. Then, based on the second date identifier storage path, storage paths are generated level by level based on the split vehicle identifier information. Finally, based on the split identifier storage path corresponding to the last level of split vehicle identifier information, a first trajectory storage path is generated according to the vehicle identifier information. Therefore, trajectory data in the first trajectory storage path can be retrieved level by level based on the vehicle identifier information, improving the accuracy and efficiency of trajectory data retrieval.
[0126] According to embodiments of this disclosure, when querying abnormal vehicle trajectories, the abnormal trajectory data can be retrieved based on the date and vehicle identification information.
[0127] According to embodiments of this disclosure, the above-described trajectory data processing method further includes: generating warning information about the target vehicle based on a first text file stored in a first trajectory storage path.
[0128] According to embodiments of this disclosure, warning information can be used to alert users to abnormal trajectory data of a target vehicle. The warning information may include the aforementioned abnormal first target coordinate information, the time information corresponding to the abnormal first target coordinate information, the abnormal second target coordinate information, and the time information corresponding to the abnormal second target coordinate information.
[0129] According to embodiments of this disclosure, warning information about a target vehicle is generated based on trajectory data stored in a first text file in a first trajectory storage path, thereby improving the accuracy of the generated warning information.
[0130] Figure 4 A flowchart illustrating a trajectory data processing method according to another embodiment of the present disclosure is shown schematically.
[0131] like Figure 4 As shown, the trajectory data processing method of this embodiment includes operations S401 to S410.
[0132] In operation S401, based on the trajectory data received from the target vehicle.
[0133] In operation S402, from the multiple coordinate information included in the trajectory data, the corresponding time information is determined to be the first target coordinate information of the requested time period information.
[0134] In operation S403, according to the second path generation rule, a second trajectory storage path is generated based on the target application form identification information and vehicle identification information.
[0135] In operation S404, the first target coordinate information and the corresponding time information are stored in a second text file located in the second trajectory storage path.
[0136] In operation S405, the coordinate information of the first target in the second text file is verified according to the application area information, and the verification result corresponding to the coordinate information of the first target is obtained.
[0137] In operation S406, the first target coordinate information representing the anomaly of the verification result and the time information corresponding to the first target coordinate information are stored in the first text file.
[0138] In operation S407, from the multiple coordinate information included in the trajectory data, it is determined that the corresponding time information is not in the second target coordinate information of the requested time period information.
[0139] In operation S408, the coordinate information of the second target is verified according to the parking area information, and the verification result corresponding to the coordinate information of the second target is obtained.
[0140] In operation S409, the coordinate information of the second target that indicates the anomaly in the verification result and the time information corresponding to the second target coordinate information are stored in the first text file.
[0141] During operation S410, a warning message about the target vehicle is generated based on the coordinate information in the first text file.
[0142] According to embodiments of this disclosure, the trajectory data processing method can be executed on a server. The server may include a caching unit. The fields of the data table in the caching unit may include vehicle identification information, and the field values may include coordinate information from the trajectory data, the time information corresponding to the coordinate information, and application form information, etc. The application form information may include application usage period information, application usage area information, and application form identification information, etc. The application usage period information may include start time information and end time information, which will not overlap; that is, the start time information and end time information will not be the same time. Starting from the start time information, the coordinate information can be sorted according to the time information corresponding to the coordinate information. The application usage area information may also include area identification information. The caching unit can be used to receive trajectory data from a positioning device.
[0143] According to embodiments of this disclosure, the identifier of the vehicle's positioning device can be stored in a cache unit. The fields in the data table of the cache unit can be vehicle identification information. The coordinate information, the time information corresponding to the coordinate information, and the application period information in the field values can all be empty. The application area information can include the area identification information of the area where the target vehicle can drive.
[0144] According to embodiments of this disclosure, for vehicle identification information not included in the fields of the data table in the cache unit, the trajectory data corresponding to the vehicle identification information can be discarded.
[0145] According to embodiments of this disclosure, when trajectory data is received and the cache unit contains device identification information corresponding to the trajectory data, the trajectory data can be cached. It can be determined whether the cache unit contains application usage time information corresponding to the trajectory data. If the cache unit stores the application usage time information, the time information corresponding to the coordinate information in the trajectory data can be compared sequentially with the start and end time information of the application usage time information to determine whether the time information corresponding to the coordinate information falls within the application usage time information.
[0146] The system can verify trajectory data within the requested usage time period based on the driving area information in the requested usage area information. If the coordinates in the trajectory data are not within the driving area information, the trajectory data can be determined to be abnormal. Similarly, the system can verify trajectory data outside the requested usage time period. If the coordinates in the trajectory data are not within the parking area information, the trajectory data can be determined to be abnormal.
[0147] Based on the above trajectory data processing method, this disclosure also provides a trajectory data processing apparatus. The following will be combined with... Figure 5 The device is described in detail.
[0148] Figure 5 A schematic block diagram of a trajectory data processing apparatus according to an embodiment of the present disclosure is shown.
[0149] like Figure 5 As shown, the trajectory data processing device 500 of this embodiment includes a first determining module 510, a verification module 520, a first generating module 530, and a first storage module 540.
[0150] The first determining module 510 is used to determine the target application form information corresponding to the target vehicle based on the received trajectory data from the target vehicle. The target application form information includes target application form identification information, target vehicle identification information, and application area information. The application area information is used to determine the area where the target object applies to use the target vehicle. In one embodiment, the first determining module 510 can be used to perform the operation S210 described above, which will not be repeated here.
[0151] The verification module 520 is used to verify the trajectory data according to the applied area information and obtain the verification result. In one embodiment, the verification module 520 can be used to perform the operation S220 described above, which will not be repeated here.
[0152] The first generation module 530 is used to generate a first trajectory storage path based on the target application form identification information and vehicle identification information, according to the first path generation rules. In one embodiment, the first generation module 530 can be used to perform the operation S230 described above, which will not be repeated here.
[0153] The first storage module 540 is used to store the trajectory data representing the anomaly in the verification result into a first text file located in the first trajectory storage path. In one embodiment, the first storage module 540 can be used to perform the operation S240 described above, which will not be repeated here.
[0154] According to embodiments of this disclosure, the trajectory data processing apparatus further includes a second determining module, a second generating module, and a second storage module. The second determining module is used to determine, from multiple coordinate information, the first target coordinate information whose corresponding time information falls within the requested usage time period information; the second generating module is used to generate a second trajectory storage path based on the target application form identifier information and vehicle identifier information according to a second path generation rule; and the second storage module is used to store the first target coordinate information and the time information corresponding to the first target coordinate information into a second text file located on the second trajectory storage path.
[0155] According to embodiments of this disclosure, the verification module 520 includes a matching submodule. The matching submodule is used to match the first target coordinate information in the second text file with the application area information to verify the first target coordinate information in the second text file and obtain a verification result corresponding to the first target coordinate information.
[0156] According to embodiments of this disclosure, the trajectory data processing apparatus is further configured to process target application form identification information. The target application form identification information includes object identification information of the target object and application time identification information, wherein the application time identification information is determined based on the application time of the target object's application to use the target vehicle.
[0157] According to embodiments of this disclosure, the second generation module includes a first splitting submodule, a first generation submodule, a second generation submodule, a third generation submodule, and a fourth generation submodule. Specifically, the first splitting submodule is used to split the application time identifier information to obtain date identifier information and time identifier information; the first generation submodule is used to generate a first date identifier storage path based on a first preset path and the date identifier information; the second generation submodule is used to generate a time identifier storage path based on the first date storage path and the time identifier information; the third generation submodule is used to generate an object identifier storage path based on the time identifier storage path and the object identifier information; and the fourth generation submodule is used to generate a second trajectory storage path based on the object identifier storage path and the vehicle identifier information.
[0158] According to embodiments of this disclosure, the second storage module includes a fifth generation submodule, a determination submodule, and a first storage submodule. The fifth generation submodule is used to generate a second text file along the second trajectory storage path; the determination submodule is used to determine the file identifier information of the second text file based on object identifier information, application time identifier information, and vehicle identifier information; and the first storage submodule is used to store the first target coordinate information and the time information corresponding to the first target coordinate information into the second text file.
[0159] According to embodiments of this disclosure, the first storage module 540 includes a sixth generation submodule, a seventh generation submodule, and a second storage submodule. The sixth generation submodule is used to generate a first text file along a first trajectory storage path; the seventh generation submodule is used to generate file identification information for the first text file based on application time identification information and vehicle identification information; and the second storage submodule is used to store the abnormal first target coordinate information and the corresponding time information from the second text file representing the verification result anomalies into the first text file.
[0160] According to embodiments of this disclosure, the trajectory data processing apparatus further includes a third determining module. This third determining module is used to determine, from multiple coordinate information, the second target coordinate information whose corresponding time information is not within the requested time period information.
[0161] According to embodiments of this disclosure, the verification module further includes a third matching submodule. The third matching submodule is used to match the second target coordinate information with the parking area information to verify the second target coordinate information and obtain a verification result corresponding to the second target coordinate information.
[0162] According to an embodiment of this disclosure, the first storage module 540 further includes a third storage submodule. The third storage submodule is used to store the coordinate information of the abnormal second target representing the anomaly in the verification result and the time information corresponding to the coordinate information of the abnormal second target into a first text file.
[0163] According to embodiments of this disclosure, the first generation module 530 includes a second splitting submodule, an eighth generation submodule, a ninth generation submodule, a tenth generation submodule, and an eleventh generation submodule. The second splitting submodule is used to split vehicle identifier information according to vehicle identifier splitting rules to obtain n split vehicle identifier information pieces, where n is a positive integer greater than 2. The eighth generation submodule is used to generate a second date identifier storage path based on a second preset path and date identifier information. The ninth generation submodule is used to generate a first-level split identifier storage path based on the second date identifier storage path and first-level split vehicle identifier information. The tenth generation submodule is used to generate an i-th level split identifier storage path based on the (i-1)-th level split identifier storage path and i-th level split vehicle identifier information, where i is a positive integer greater than or equal to 2 and less than or equal to n. The eleventh generation submodule is used to generate a first trajectory storage path based on the n-th level split identifier storage path and vehicle identifier information.
[0164] According to embodiments of this disclosure, the trajectory data processing apparatus further includes a third generation module. This third generation module is used to generate warning information about the target vehicle based on a first text file stored in the first trajectory storage path.
[0165] According to embodiments of this disclosure, any plurality of modules among the first determining module 510, the verification module 520, the first generating module 530, and the first storage module 540 may be combined into one module, or any one of these modules may be split into multiple modules. Alternatively, at least a portion of the functionality of one or more of these modules may be combined with at least a portion of the functionality of other modules and implemented in one module. According to embodiments of this disclosure, at least one of the first determining module 510, the verification module 520, the first generating module 530, and the first storage module 540 may be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging circuitry, or implemented in any one of software, hardware, and firmware methods, or in a suitable combination of any of these methods. Alternatively, at least one of the first determining module 510, the verification module 520, the first generating module 530, and the first storage module 540 may be implemented at least partially as a computer program module, which can perform corresponding functions when the computer program module is run.
[0166] Figure 6 A block diagram of an electronic device suitable for implementing a trajectory data processing method according to an embodiment of the present disclosure is shown schematically.
[0167] like Figure 6 As shown, an electronic device 600 according to an embodiment of this disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage portion 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of this disclosure.
[0168] RAM 603 stores various programs and data required for the operation of electronic device 600. Processor 601, ROM 602, and RAM 603 are interconnected via bus 604. Processor 601 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 602 and / or RAM 603. It should be noted that the programs may also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0169] According to embodiments of this disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to a bus 604. The electronic device 600 may also include one or more of the following components connected to the input / output (I / O) interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 610 as needed so that computer programs read from it can be installed into the storage section 608 as needed.
[0170] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0171] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 602 and / or RAM 603 and / or one or more memories other than ROM 602 and RAM 603 described above.
[0172] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code enables the computer system to implement the trajectory data processing method provided in the embodiments of this disclosure.
[0173] When the computer program is executed by the processor 601, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0174] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via the communication section 609, and / or installed from the removable medium 611. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0175] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0176] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0177] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0178] It should be noted that, unless it is explicitly stated that there is a sequential order of execution between different operations, or that there is a sequential order of execution between different operations in terms of technical implementation, the execution order between multiple operations may not be significant, and multiple operations may be executed simultaneously.
[0179] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0180] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A trajectory data processing method, characterized in that, include: Based on the received trajectory data from the target vehicle, the target application form information corresponding to the target vehicle is determined. The target application form information includes target application form identification information, vehicle identification information of the target vehicle, and application area information. The application area information is used to determine the area where the target object applies to use the target vehicle. The trajectory data is verified according to the application area information to obtain the verification result; According to the first path generation rule, a first trajectory storage path is generated based on the target application form identification information and the vehicle identification information; The trajectory data that represents the anomaly by the verification result is stored in a first text file located in the first trajectory storage path; The trajectory data includes multiple coordinate information and the time information corresponding to each of the multiple coordinate information; the target application form information also includes the application period information of the target object using the target vehicle; The method further includes: From the plurality of coordinate information, determine the corresponding time information that is located in the first target coordinate information of the application period information; According to the second path generation rule, a second trajectory storage path is generated based on the target application form identification information and the vehicle identification information; The first target coordinate information and the time information corresponding to the first target coordinate information are stored in a second text file located in the second trajectory storage path; The step of verifying the trajectory data according to the application area information to obtain the verification result includes: The first target coordinate information in the second text file is matched with the application area information to verify the first target coordinate information in the second text file, and a verification result corresponding to the first target coordinate information is obtained.
2. The method according to claim 1, wherein, The target application form identification information includes the object identification information of the target object and the application time identification information. The application time identification information is determined based on the application time when the target object applies to use the target vehicle.
3. The method according to claim 2, wherein, The step of generating a second trajectory storage path according to the second path generation rule, based on the target application form identification information and the vehicle identification information, includes: The application time identifier information is split to obtain date identifier information and time identifier information; Based on the first preset path, a first date identifier storage path is generated according to the date identifier information; Based on the first date identifier storage path, a time identifier storage path is generated according to the time identifier information; Based on the time identifier storage path, an object identifier storage path is generated according to the object identifier information; Based on the object identifier storage path, the second trajectory storage path is generated according to the vehicle identifier information.
4. The method according to claim 2, wherein, The step of storing the first target coordinate information and the time information corresponding to the first target coordinate information into a second text file located in the second trajectory storage path includes: Generate the second text file in the second trajectory storage path; The file identification information of the second text file is determined based on the object identification information, the application time identification information, and the vehicle identification information; The first target coordinate information and the corresponding time information are stored in the second text file.
5. The method according to claim 2, wherein, The step of storing the trajectory data representing the anomaly from the verification result into a first text file located in the first trajectory storage path includes: Generate a first text file in the first trajectory storage path; Based on the application time identifier information and the vehicle identifier information, generate the file identifier information of the first text file; The coordinate information of the first abnormal target and the time information corresponding to the coordinate information of the first abnormal target in the second text file representing the abnormality of the verification result are stored in the first text file.
6. The method according to claim 5, further comprising: From the multiple coordinate information, determine the corresponding time information that is not within the second target coordinate information of the application period information.
7. The method according to claim 6, wherein, The requested area information includes parking area information; The step of verifying the trajectory data according to the requested area information and obtaining the verification result includes: The second target coordinate information is matched with the parking area information to verify the second target coordinate information and obtain a verification result corresponding to the second target coordinate information.
8. The method according to claim 7, wherein, The step of storing the trajectory data representing the anomaly from the verification result into a first text file located in the first trajectory storage path includes: The coordinate information of the abnormal second target, which represents the abnormality in the verification result, and the time information corresponding to the coordinate information of the abnormal second target are stored in the first text file.
9. The method according to claim 3, wherein, The step of generating a first trajectory storage path according to the first path generation rule, based on the target application form identification information and the vehicle identification information, includes: The vehicle identification information is split according to the vehicle identification splitting rules to obtain n split vehicle identification information, where n is a positive integer greater than 2; Based on the second preset path, a second date identifier storage path is generated according to the date identifier information; Based on the second date identifier storage path, and according to the first-level split vehicle identifier information, the first-level split identifier storage path is generated; Based on the (i-1)th level split identifier storage path, the i-th level split identifier storage path is generated according to the i-th level split vehicle identifier information, where i is a positive integer greater than or equal to 2 and less than or equal to n. Based on the nth level of the split identifier storage path, the first trajectory storage path is generated according to the vehicle identifier information.
10. The method according to claim 1, further comprising: Based on the first text file stored in the first trajectory storage path, a warning message about the target vehicle is generated.
11. A trajectory data processing device, characterized in that, include: The first determining module is used to determine the target application form information corresponding to the target vehicle based on the trajectory data received from the target vehicle. The target application form information includes target application form identification information, vehicle identification information of the target vehicle, and application area information. The application area information is used to determine the area where the target object applies to use the target vehicle. The verification module is used to verify the trajectory data according to the application area information and obtain the verification result; The first generation module is used to generate a first trajectory storage path based on the target application form identification information and the vehicle identification information, according to the first path generation rules. The first storage module is used to store the trajectory data representing the abnormality of the verification result into a first text file located in the first trajectory storage path; The trajectory data includes multiple coordinate information and the time information corresponding to each of the multiple coordinate information; the target application form information also includes the application period information of the target object using the target vehicle; The device is also used for: From the plurality of coordinate information, determine the corresponding time information that is located in the first target coordinate information of the application period information; According to the second path generation rule, a second trajectory storage path is generated based on the target application form identification information and the vehicle identification information; The first target coordinate information and the time information corresponding to the first target coordinate information are stored in a second text file located in the second trajectory storage path; The step of verifying the trajectory data according to the application area information to obtain the verification result includes: The first target coordinate information in the second text file is matched with the application area information to verify the first target coordinate information in the second text file, and a verification result corresponding to the first target coordinate information is obtained.
12. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, It stores executable instructions that, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 10.
14. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
A method for extracting taxi GPS trajectory data beyond the business scope
CN109101549A
Internet of vehicles security data management method, device, system, equipment and medium
CN116366675A