Historical track playback method and device based on interaction, electronic equipment and storage medium
By presenting a map on the interactive interface of the GIS system and responding to the user's operation of selecting the area, the historical trajectories within the area are presented in sequence, which solves the problem that existing GIS systems cannot conveniently view changes in the historical trajectory of a specific area, and improves the user's analysis and reconstruction efficiency and experience.
Patent Information
- Application Number
- CN202411669837.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-14
AI Technical Summary
Existing GIS systems cannot easily view changes in historical trajectory in specific areas, which limits users' applications in spatial data analysis and historical event reconstruction.
By presenting the map on the interactive interface and responding to the user's operation of selecting the region of interest, historical trajectories are presented in the order of historical trajectory points of each object in the region. Users can select objects and time intervals to generate and present historical trajectories that meet the conditions.
It realizes convenient playback of all resource historical trajectories in a specified area, improves users' efficiency and experience in spatial data analysis and historical event reconstruction, and meets users' diverse needs for trajectory data replay.
Smart Images

Figure CN119621748A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of geographic information systems, and in particular to a method, device, electronic device and storage medium for historical trajectory playback. Background Art
[0002] At present, Geographic Information System (GIS) is mainly used for real-time display of geographic data and spatial analysis, but has limited playback functions for historical trajectory data. Some existing solutions can only playback the trajectory of a certain resource displayed on the map within a period of time, and cannot playback the historical trajectory of all resources in a specified area, which limits the application of users in spatial data analysis and historical event reconstruction.
[0003] In the prior art, users cannot select a map area to replay historical trajectories through some interactive methods. This results in users having to replay resources passing through a specific area one by one within a selected time range when they need to view historical trajectory changes in a specific area. This process is cumbersome and inefficient. In addition, the existing system can only display a single resource in the visualization of trajectory data, which cannot meet the diverse needs of users. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for replaying historical trajectories based on interaction, which are used to solve the technical problem in the prior art that a map area cannot be selected for replaying historical trajectories based on interaction.
[0005] According to one aspect of the present application, a historical trajectory playback method based on interaction is provided, which is applied to an interactive interface and includes:
[0006] Presenting a map on the interactive interface;
[0007] In response to an operation of selecting an area of interest on the map of the interactive interface, the historical track is presented on the interactive interface in the area in the order in which the historical track points of each object within the area are generated.
[0008] Further, in response to the operation of selecting an area of interest on the map of the interactive interface, presenting the historical tracks on the interactive interface in the area in the order in which the historical tracks of each object within the area were generated, includes:
[0009] Receiving a first operation of demarcating at least one closed area on a map of the interactive interface as the range of the selected area of interest;
[0010] Provide objects and time intervals of historical tracks within the area for selection;
[0011] In response to a second operation including selecting an object and a time interval, a history track satisfying the object and the time interval is generated and presented.
[0012] Furthermore, demarcating at least one closed area on the map of the interactive interface includes:
[0013] Use the mouse to select a closed area;
[0014] Alternatively, a closed area is formed by selecting a number of edge points and based on the edge points.
[0015] Furthermore, providing the objects and time intervals of the historical tracks within the area for selection includes:
[0016] Selecting a trajectory point whose coordinates are within the area in the trajectory data storage database;
[0017] Among the trajectory points, several of them belonging to different objects and having the same timestamp and coordinates are selected as target trajectory points. According to the earliest timestamp T1 and the latest timestamp T2 in each of the target trajectory points, each time interval related to the target trajectory point is obtained as (T1-ΔT, T2+ΔT) to provide a selection, and the ΔT is at least greater than the period of the traffic signal at the road intersection where the target trajectory point is located.
[0018] Furthermore, in response to the second operation including selecting an object and a time interval, generating and presenting a historical track satisfying the object and time includes:
[0019] The trajectory points belonging to the same object are presented sequentially at the corresponding coordinates of the map according to the timestamp order; wherein, among every two adjacent trajectory points, when the trajectory point with an earlier timestamp is presented with a first mark, a continuous line segment is presented starting from the first mark until the trajectory point with a later timestamp is presented with a second mark as the end point.
[0020] Furthermore, the presenting the track points belonging to the same object at corresponding coordinates of the map in sequence according to the timestamp order includes:
[0021] Obtaining a path between two adjacent trajectory points within the area;
[0022] Receive a trajectory playback speed instruction, wherein the trajectory playback speed instruction includes a speed for indicating the speed of presenting the historical trajectory between two trajectory points Among them, d tis the distance between the two trajectory points on the path, Δt is the time difference between the two trajectory points, and v is a multiple;
[0023] The points between the two endpoints of the continuous line segment follow the speed s t The way to carry out the movement gradually emerges.
[0024] Furthermore, in response to the second operation including selecting an object and a time interval, generating and presenting a historical track satisfying the object and the time interval further includes:
[0025] Acquire the roads that each of the objects passes through within the time interval;
[0026] Acquire a historical traffic signal sequence of the road within the time interval;
[0027] During the presentation of the historical trajectory, the historical traffic signal sequence is presented in the form of a third mark at the corresponding coordinate of each historical traffic signal sequence, and the presentation speed of the third mark is v times that of the historical traffic signal sequence.
[0028] A second aspect of the present application provides an interactive historical track playback device, which is applied to an interactive interface and includes:
[0029] A map presentation module, which presents a map on the interactive interface;
[0030] The historical track presentation module, in response to an operation of selecting an area of interest on the map of the interactive interface, presents the historical track on the interactive interface in the order in which the historical track points of each object within the area are generated.
[0031] The third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements any method described in the first aspect of the present application.
[0032] The fourth aspect of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is run on a computer, the computer executes the method described in any one of the first aspects of the present application.
[0033] Beneficial Effects
[0034] In an embodiment of the present application, an interactive historical trajectory playback method is used and applied to an interactive interface, including: presenting a map on the interactive interface; in response to an operation of selecting an area of interest on the map of the interactive interface, presenting the historical trajectory on the interactive interface in the order in which the historical trajectory points of each object within the area are generated. The present invention solves the problem that the changes in the historical trajectory of a specific area cannot be easily viewed in the existing GIS system by realizing the regional historical trajectory playback function, greatly improving the efficiency and experience of users in spatial data analysis and historical event reconstruction. At the same time, a flexible time control interface is provided to meet the diverse needs of users for trajectory data playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0036] Figure 1 The present invention is a flowchart of a method for replaying historical tracks based on interaction according to an embodiment of the present application.
[0037] Figure 2 is a schematic diagram of an interactive historical trajectory playback module according to an embodiment of the present application.
[0038] Figure 3 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0041] Compared with road traffic, underground traffic has more blind spots and cannot be fully monitored. For example, when a traffic accident occurs underground, if the location is in a monitoring blind spot, it is not easy to find the cause of the accident. Based on this, the embodiment of the present application provides a historical trajectory playback method based on interaction, such as Figure 1 As shown, the interactive historical trajectory playback method is applied to an interactive interface, and the method includes:
[0042] Step S101: presenting a map on the interactive interface.
[0043] The carrier of the interactive interface can be any display device, including but not limited to a computer monitor, a television display, a mobile phone display, a mobile wearable device display, etc.
[0044] The map is pre-stored in a memory that interacts with the interactive interface, and the map displays the underground traffic layout.
[0045] Step S102: in response to an operation of selecting an area of interest on the map of the interactive interface, presenting the historical trajectory on the interactive interface in the area in the order in which the historical trajectory points of each object within the area were generated.
[0046] The region of interest is usually generated by an unexpected situation. For example, an underground traffic accident occurs in this area, and an alarm is issued through the portable equipment of underground workers, the equipment on the mine car, or the relevant equipment in the tunnel. The alarm information carries positioning information, and the area where the positioning information is located becomes the region of interest. In order to reproduce the on-site situation before and after the accident, the historical trajectory of each object in the region of interest on the interactive interface can help analyze the cause of the accident.
[0047] In some preferred embodiments, in response to the operation of selecting an area of interest on the map of the interactive interface, presenting the historical tracks on the interactive interface in the area in the order in which the historical tracks of each object within the area were generated, comprises:
[0048] Step S1021: receiving a first operation of demarcating at least one closed area on the map of the interactive interface as the range of the selected area of interest.
[0049] There can be multiple regions of interest. For example, if you need to review accidents that occurred in multiple locations in the mine history, you can select multiple regions of interest, and each region of interest presents the historical trajectory in the order in which the historical trajectory of each object within the region is generated.
[0050] Step S1022: providing objects and time intervals of historical tracks within the area for selection.
[0051] Similarly, for multiple regions of interest, since the time of the accident may be different, objects and time intervals in the region are provided for selection for each region of interest, which will not cause mutual influence between different regions of interest.
[0052] Step S1023: In response to a second operation including selecting an object and a time interval, a historical trajectory satisfying the object and the time interval is generated and presented.
[0053] When all regions of interest have completed the selection of objects and time intervals, this embodiment also provides options for the order of presenting historical tracks between different regions of interest, and the user can choose to present each region of interest at the same time or in other configurable order as needed. Preferably, when presenting the historical track in each region of interest, the time when the historical track occurred is also presented at the same time.
[0054] In some preferred embodiments, in order to facilitate interaction, the at least one closed area is demarcated on the map of the interactive interface, including one of the following two methods:
[0055] Method 1: Use the mouse to select a closed area.
[0056] Method 2: Selecting a number of edge points and forming a closed area based on the edge points.
[0057] For example, a rectangular box is formed on the map by dragging the mouse, and the map area corresponding to the rectangular box is the area of interest; for another example, edge points can be selected by mouse operation or other methods that can be received by the interactive interface, including but not limited to inputting coordinates, clicking or sliding on the touch screen, etc.
[0058] After obtaining the closed area, it is necessary to calculate the boundary coordinates of the area. In some specific embodiments, the coordinates of the n vertices of the closed area are (x1, y1), (x2, y2), ..., (x n ,y n ), generate the enclosing interval [x min ,x max ,y min ,y max ] as the query space range, and then perform data screening, where:
[0059] x min =min(x1,x2,…,x n ),x max =max(x1,x2,…,x n )
[0060] y min =min(y1,y2,…,y n ),y max =max(y1,y2,…,y n )
[0061] In this embodiment, map rendering is performed using a library such as openlayers, and a box selection mode can be enabled. By holding down the ctrl key, a rectangular box selection can be performed. After the box selection is completed, four vertex coordinates, i.e., the enclosing interval, will be obtained.
[0062] In the above embodiment, when the time range selected by the user is [t start ,t end ], the timestamp t of the selected trajectory points satisfies the following conditions t start ≤t≤t end , then the time of the trajectory point is considered to be consistent with the time interval.
[0063] In some preferred embodiments, in step S1022, providing the objects and time intervals of the historical tracks within the area for selection includes:
[0064] Step S10221: Select a trajectory point whose coordinates are within the area in the trajectory data storage database.
[0065] The trajectory data contains multiple attributes, such as trajectory ID, timestamp, geographic coordinates (longitude, latitude), speed, direction, etc. In this embodiment, the trajectory data storage database is a spatiotemporal database, and a spatial index structure (such as an R-tree or a quadtree) can be used to improve query efficiency. For a large amount of historical data, it can be compressed and stored in formats such as Protobuf or Parquet to reduce storage space.
[0066] Determine whether the trajectory point (x, y) falls within the selected area. If the area of interest is a rectangular frame, when x min ≤x≤x max And y min ≤y≤y max When , the trajectory point (x, y) is considered to be in the rectangular box, otherwise it is not in the rectangular box. If a polygon is formed for the area of interest, the ray method can be used to determine whether the point is inside the polygon.
[0067] Step S10222: select several trajectory points belonging to different objects and having the same timestamp and coordinates as target trajectory points, and obtain each time interval related to the target trajectory point as (T1-ΔT, T2+ΔT) according to the earliest timestamp T1 and the latest timestamp T2 in each target trajectory point to provide a selection, wherein ΔT is at least greater than the period of the traffic signal at the intersection where the target trajectory point is located.
[0068] The method considers making a step in the area of interest to select the time range before and after the accident. The timestamps and coordinates of the trajectory points of different objects are the same, and the coordinate points and timestamps are determined to correspond to the location and time of the accident. In this state, multiple objects have the same coordinate position due to collision and will last for a period of time, that is, between T1 and T2. Therefore, the time (T1-ΔT, T2+ΔT) provided by the system can greatly improve the efficiency of reviewing the accident process. The ΔT is at least greater than the cycle of the traffic signal at the intersection of the road where the target trajectory point is located. The trajectory playback process can at least present a complete traffic signal cycle range before the accident occurs, so as to facilitate the identification of the cause of the accident in combination with the traffic signal, and at least present a complete traffic signal cycle range after the vehicle is separated, so as to facilitate the viewing of the traffic recovery situation after the accident is handled.
[0069] In some preferred embodiments, in step S1023, in response to the second operation including selecting an object and a time interval, generating and presenting a historical track satisfying the object and time includes:
[0070] The trajectory points belonging to the same object are presented sequentially at the corresponding coordinates of the map according to the timestamp order; wherein, among every two adjacent trajectory points, when the trajectory point with an earlier timestamp is presented with a first mark, a continuous line segment is presented starting from the first mark until the trajectory point with a later timestamp is presented with a second mark as the end point.
[0071] In the above process, the system uses linear interpolation to smoothly move the trajectory points on the map and dynamically update their positions. When there is data loss in the trajectory, the time linear interval difference method can be used to fill in the missing points to improve the integrity of the trajectory. In addition, in order to improve the playback performance of large-scale trajectory data, the system can load the trajectory data in batches and pre-render it in the background.
[0072] In some preferred embodiments, in order to further improve the efficiency of historical trajectory presentation, presenting the trajectory points belonging to the same object at corresponding coordinates of the map in sequence according to the timestamp order includes:
[0073] Step S10231: Obtain a path between two adjacent trajectory points within the area.
[0074] Step S10232: Receive a trajectory playback speed instruction, wherein the trajectory playback speed instruction includes a speed for indicating the speed of presenting the historical trajectory between two trajectory points. Among them, d t is the distance between the two trajectory points on the path, Δt is the time difference between the two trajectory points, and v is a multiple.
[0075] Step S10233: The point between the two endpoints of the continuous line segment is moved at the speed s t The way to carry out the movement gradually emerges.
[0076] The above method adjusts the speed of visualization of historical trajectories, which is conducive to adjustment according to needs. For example, when the time interval from the accident of concern is long, the presentation speed of the historical trajectory can be accelerated, and v is greater than 1 at this time. When the time interval from the accident of concern is short, the presentation speed of historical monuments can be slowed down, and v is less than 1 at this time.
[0077] In some preferred embodiments, in step S1023, in response to the second operation including selecting an object and a time interval, generating and presenting a historical track that satisfies the object and the time interval, further includes:
[0078] Step S10234: Obtain the roads that each of the objects passes through within the time interval.
[0079] Step S10235: Obtain a historical traffic signal sequence of the road within the time interval.
[0080] Step S10236: during the presentation of the historical trajectory, present the historical traffic signal sequence in the form of a third mark at the corresponding coordinate of each historical traffic signal sequence, and the presentation speed of the third mark is v times that of the historical traffic signal sequence.
[0081] By synchronously presenting the historical traffic signal sequence and the historical trajectory, and adjusting the presentation speed as needed, the review of historical events is more comprehensive, making it easier to identify the cause of the accident.
[0082] Based on the same inventive concept as the above method embodiment, the embodiment of the present invention is also based on an interactive historical trajectory playback device, which is applied to an interactive interface, such as Figure 2 As shown, the playback device includes:
[0083] A map presentation module, which presents a map on the interactive interface;
[0084] The historical track presentation module, in response to an operation of selecting an area of interest on the map of the interactive interface, presents the historical track on the interactive interface in the order in which the historical track points of each object within the area are generated.
[0085] In some preferred embodiments, the historical track presentation module includes:
[0086] A first receiving module is used to receive a first operation of demarcating at least one closed area on the map of the interactive interface as the range of the selected area of interest;
[0087] Providing a selection module, for providing objects and time intervals to which historical tracks belong within the area for selection;
[0088] The generating module is used for generating and presenting a historical track satisfying the object and the time interval in response to a second operation including selecting an object and a time interval.
[0089] In some preferred embodiments, the first receiving module is used to receive at least one closed area demarcated on the map of the interactive interface, including:
[0090] A first delimiting module is used to form a closed area by selecting a frame with a mouse;
[0091] The second delineation module is used to select a number of edge points and form a closed area based on the edge points.
[0092] In some preferred embodiments, the providing selection module is used to provide objects and time intervals to which historical tracks belong within the area for selection, including:
[0093] A coordinate screening module, used for selecting trajectory points whose coordinates are within the area in the trajectory data storage database;
[0094] The time range calculation module is used to select several trajectory points belonging to different objects and having the same timestamp and coordinates as target trajectory points, and obtain each time interval related to the target trajectory point as (T1-ΔT, T2+ΔT) according to the earliest timestamp T1 and the latest timestamp T2 in each target trajectory point to provide selection, and the ΔT is at least greater than the period of the traffic signal at the intersection where the target trajectory point is located.
[0095] In some preferred embodiments, the generating module is used to generate and present a historical track satisfying the object and time in response to a second operation including selecting an object and a time interval, including:
[0096] A line segment presentation module is used to present the trajectory points belonging to the same object in sequence at the corresponding coordinates of the map according to the timestamp order; wherein, among every two adjacent trajectory points, when the trajectory point with an earlier timestamp is presented with a first mark, a continuous line segment is presented starting from the first mark until the trajectory point with a later timestamp is presented with a second mark as the end point.
[0097] In some preferred embodiments, the line segment presentation module is used to present the trajectory points belonging to the same object at corresponding coordinates of the map in sequence according to the timestamp order, including:
[0098] A first path selection module, used for obtaining a path between two adjacent trajectory points within the area;
[0099] An instruction receiving module is used to receive a trajectory playback speed instruction, wherein the trajectory playback speed instruction includes a speed for indicating the speed of presenting the historical trajectory between two trajectory points. Among them, d t is the distance between the two trajectory points on the path, Δt is the time difference between the two trajectory points, and v is a multiple;
[0100] The speed adjustment module is used to adjust the speed of the points between the two endpoints of the continuous line segment according to the speed s t The way to carry out the movement gradually emerges.
[0101] In some preferred embodiments, the generating module is used to generate and present a historical track that satisfies the object and the time interval in response to the second operation including selecting the object and the time interval, and further includes:
[0102] A second path selection module, used for obtaining the roads that each of the objects passes through within the time interval;
[0103] A traffic signal sequence acquisition module, used to acquire a historical traffic signal sequence of the road within the time interval;
[0104] The traffic signal sequence presenting module is used to present the historical traffic signal sequence in the form of a third mark at the corresponding coordinates of each historical traffic signal sequence during the historical trajectory presenting process, and the presentation speed of the third mark is v times that of the historical traffic signal sequence.
[0105] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0106] Based on the same inventive concept as the above-mentioned method embodiment, an electronic device is also provided in an embodiment of the present application, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the electronic device implements the control method in the above-mentioned embodiment.
[0107] In one embodiment, the electronic device may be a server. In this embodiment, the structure of the electronic device may be as follows: Figure 3As shown, it includes a memory 2001 , a communication module 2003 and one or more processors 2002 .
[0108] The memory 2001 is used to store computer programs executed by the processor 2002. The memory 2001 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0109] The memory 2001 may be a volatile memory, such as a random-access memory (RAM); the memory 2001 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 2001 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2001 may be a combination of the above memories.
[0110] The processor 2002 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 2002 is used to implement the above-mentioned audio data processing method when calling the computer program stored in the memory 2001 .
[0111] The communication module 2003 is used to communicate with terminal devices and other servers.
[0112] The specific connection medium between the memory 2001, the communication module 2003 and the processor 2002 is not limited in the embodiment of the present application. Figure 3 In the embodiment, the memory 2001 and the processor 2002 are connected via a bus 2004. The bus 2004 is Figure 3 The arrows in the figure are used to describe the connection between other components, which is only for illustrative purposes and is not intended to be limiting. Bus 2004 can be divided into address bus, data bus, control bus, etc. For ease of description, Figure 3 The diagram only uses one arrow, but does not describe only one bus or one type of bus.
[0113] Based on the same inventive concept as the above method embodiment, an embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium is used to store a computer program, when the computer program is run on a computer, the electronic device implements the control method in the above embodiment. The computer-readable storage medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0114] Based on the same inventive concept as the above-mentioned method embodiment, an embodiment of the present invention further provides a computer program product, the computer program product including a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the control method according to various exemplary embodiments of the present application described above in this specification. The program product may adopt any combination of one or more readable media. These computer program commands may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the commands executed by the processor of the computer or other programmable data processing device generate commands for implementing the steps in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0115] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
Claims
1. The interactive historical trajectory playback method is applied to the interactive interface, which is characterized by: Presenting a map on the interactive interface; In response to an operation of selecting an area of interest on the map of the interactive interface, the historical track is presented on the interactive interface in the area in the order in which the historical track points of each object within the area are generated.
2. The method according to claim 1, characterized in that In response to the operation of selecting an area of interest on the map of the interactive interface, presenting the historical tracks of each object within the area on the interactive interface in the order in which the historical tracks are generated, comprises: Receiving a first operation of demarcating at least one closed area on a map of the interactive interface as the range of the selected area of interest; Provide objects and time intervals of historical tracks within the area for selection; In response to a second operation including selecting an object and a time interval, a history track satisfying the object and the time interval is generated and presented.
3. The method according to claim 2, characterized in that Delineating at least one closed area on the map of the interactive interface includes: Use the mouse to select a closed area; Alternatively, a closed area is formed by selecting a number of edge points and based on the edge points.
4. The method according to claim 3, characterized in that The providing of objects and time intervals of historical tracks within the area for selection includes: Selecting a trajectory point whose coordinates are within the area in the trajectory data storage database; Among the trajectory points, several of them belonging to different objects and having the same timestamp and coordinates are selected as target trajectory points. According to the earliest timestamp T1 and the latest timestamp T2 in each of the target trajectory points, each time interval related to the target trajectory point is obtained as (T1-ΔT, T2+ΔT) to provide a selection, and the ΔT is at least greater than the period of the traffic signal at the road intersection where the target trajectory point is located.
5. The method according to claim 4, characterized in that In response to the second operation including selecting an object and a time interval, generating and presenting a historical track satisfying the object and the time, comprises: The trajectory points belonging to the same object are presented sequentially at the corresponding coordinates of the map according to the timestamp order; wherein, among every two adjacent trajectory points, when the trajectory point with an earlier timestamp is presented with a first mark, a continuous line segment is presented starting from the first mark until the trajectory point with a later timestamp is presented with a second mark as the end point.
6. The method according to claim 5, characterized in that The step of sequentially presenting the track points belonging to the same object at corresponding coordinates on the map according to the timestamp order includes: Obtaining a path between two adjacent trajectory points within the area; Receive a trajectory playback speed instruction, wherein the trajectory playback speed instruction includes a speed for indicating the speed of presenting the historical trajectory between two trajectory points Among them, d t is the distance between the two trajectory points on the path, Δt is the time difference between the two trajectory points, and v is a multiple; The point between the two endpoints of the continuous line segment moves at the speed s t The way to carry out the movement gradually emerges.
7. The method according to claim 6, characterized in that In response to the second operation including selecting an object and a time interval, generating and presenting a historical track that satisfies the object and the time interval, further comprising: Acquire the roads that each of the objects passes through within the time interval; Acquire a historical traffic signal sequence of the road within the time interval; During the presentation of the historical trajectory, the historical traffic signal sequence is presented in the form of a third mark at the corresponding coordinate of each historical traffic signal sequence, and the presentation speed of the third mark is v times that of the historical traffic signal sequence.
8. An interactive historical trajectory playback device, applied to an interactive interface, characterized in that: A map presentation module, which presents a map on the interactive interface; The historical track presentation module, in response to an operation of selecting an area of interest on the map of the interactive interface, presents the historical track on the interactive interface in the order in which the historical track points of each object within the area are generated.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.