Trajectory display method and apparatus

By constructing a trajectory header layer and a trajectory tail layer, the vehicle's trajectory is displayed, solving the problem of poor trajectory display in existing technologies and achieving better display effects and user experience.

CN115481202BActive Publication Date: 2025-11-18JINGDONG CITY BEIJING DIGITS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211030686.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2025-11-18
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

Existing technologies that use a single GPS coordinate data point to display the vehicle's trajectory are not very effective.

Method used

Construct a trajectory header layer and a trajectory tail layer to display multiple trajectory points before and after the target object. Combine trajectory header effect information and trajectory tail effect information, including flashing effect, movement effect, animation playback time, etc., and load these layers to display the running trajectory.

Benefits of technology

It offers rich display effects, enhances the user experience, and can clearly display the current position and running status of the target object.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115481202B_ABST
    Figure CN115481202B_ABST
Patent Text Reader

Abstract

The application discloses a trajectory display method and device, and relates to the technical field of smart cities. A specific embodiment of the method comprises the following steps: determining a trajectory sequence of a target object, wherein the trajectory sequence comprises a plurality of trajectory points, the trajectory points comprise trajectory coordinates and time information, and each trajectory point in the trajectory sequence is arranged in descending order of the time information in the trajectory point; obtaining the first M trajectory points in the trajectory sequence, and constructing a trajectory head layer corresponding to the first M trajectory points according to trajectory head effect information, wherein M is a positive integer; obtaining the last N trajectory points in the trajectory sequence, and constructing a trajectory tail layer corresponding to the last N trajectory points according to trajectory tail effect information, wherein N is a positive integer; and loading the trajectory head layer and the trajectory tail layer to display the running trajectory of the target object. The embodiment can not only display the current position of the target object, but also has a good display effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart city technology, and more particularly to the field of geographic information technology, specifically to a trajectory display method and device. Background Technology

[0002] With the widespread adoption of mobile internet devices and the development of GPS (Global Positioning System) technology, massive amounts of vehicle location data have emerged. This data can be used to display a vehicle's trajectory. Current technology typically uses single GPS coordinates to display the vehicle's trajectory; while this method can show the vehicle's current location, the display quality is unsatisfactory. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a trajectory display method and apparatus that can not only display the current position of the target object, but also have a better display effect.

[0004] In a first aspect, embodiments of the present invention provide a trajectory display method, including:

[0005] Determine the trajectory sequence of the target object, the trajectory sequence including: multiple trajectory points, the trajectory points including: trajectory coordinates and time information, and the trajectory points in the trajectory sequence are arranged in descending order according to the time information in the trajectory points;

[0006] Obtain the first M trajectory points in the trajectory sequence, and construct the trajectory header layer corresponding to the first M trajectory points based on the trajectory header effect information, where M is a positive integer;

[0007] Obtain the last N trajectory points in the trajectory sequence, and construct the trajectory tail layer corresponding to the last N trajectory points based on the trajectory tail effect information, where N is a positive integer;

[0008] Load the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object.

[0009] Optionally, after determining the trajectory sequence of the target object, the method further includes:

[0010] At a preset frequency, multiple original trajectory points of the target object are acquired, and the original trajectory points include: original coordinates and timestamps;

[0011] The original trajectory points are converted into matching trajectory points, and multiple matching trajectory points are inserted into the trajectory sequence;

[0012] Delete multiple trajectory points from the end of the inserted trajectory sequence.

[0013] Optionally, converting the original trajectory points into matching trajectory points includes:

[0014] The original coordinates of the original trajectory points are subjected to road network matching processing to obtain the matching trajectory coordinates;

[0015] The matching trajectory points are generated based on the matching trajectory coordinates and their corresponding timestamps.

[0016] Optionally, generating the matching trajectory points based on the matching trajectory coordinates and their corresponding timestamps includes:

[0017] Get the current timestamp;

[0018] Calculate the time difference between the current timestamp and the timestamp corresponding to the matching trajectory coordinates;

[0019] By combining the coordinates of the matching trajectory and their corresponding time difference, a matching trajectory point corresponding to the original trajectory point is generated.

[0020] Optionally, before converting the original trajectory points into matching trajectory points, the method further includes:

[0021] Determine whether the original trajectory point is an abnormal trajectory point;

[0022] If the original trajectory point is an abnormal trajectory point, delete the original trajectory point.

[0023] Optionally, loading the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object includes:

[0024] Merge the trajectory header layer and the trajectory tail layer to generate a trajectory composite layer;

[0025] Load the trajectory composite layer and render it onto the map.

[0026] Optionally, before loading the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object, the method further includes:

[0027] Obtain L consecutive trajectory points in the trajectory sequence, and construct the trajectory main body layer corresponding to the L trajectory points based on the trajectory main body effect information, where L is a positive integer;

[0028] Loading the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object includes:

[0029] Load the trajectory header layer, the trajectory body layer, and the trajectory tail layer to display the running trajectory of the target object.

[0030] Secondly, embodiments of the present invention provide a trajectory display device, comprising:

[0031] A sequence determination module is used to determine the trajectory sequence of a target object. The trajectory sequence includes multiple trajectory points, each trajectory point including trajectory coordinates and time information. The trajectory points in the trajectory sequence are arranged in descending order according to the time information in the trajectory points.

[0032] The first construction module is used to obtain the first M trajectory points in the trajectory sequence, and construct the trajectory header layer corresponding to the first M trajectory points according to the trajectory header effect information, where M is a positive integer;

[0033] The second construction module is used to obtain the last N trajectory points in the trajectory sequence, and construct the trajectory tail layer corresponding to the last N trajectory points according to the trajectory tail effect information, where N is a positive integer;

[0034] The trajectory display module is used to load the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object.

[0035] Thirdly, embodiments of the present invention provide an electronic device, including:

[0036] One or more processors;

[0037] Storage device for storing one or more programs.

[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

[0039] Fourthly, embodiments of the present invention provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the methods described in any of the above embodiments.

[0040] One embodiment of the above invention has the following advantages or beneficial effects: A trajectory sequence of the target object is determined, and the trajectory points in the trajectory sequence are arranged in descending order of their time information. A trajectory head layer and a trajectory tail layer are constructed based on multiple preceding and following trajectory points in the trajectory sequence. The trajectory head layer and trajectory tail layer are loaded to display the target object's trajectory. Trajectory head effect information and trajectory tail effect information can be constructed as needed, such as flashing effects, movement effects, animation playback time, trajectory tail length, etc. Therefore, the solution of this embodiment can not only display the current position of the target object but also provide rich display effects based on the target object's trajectory sequence, thereby improving the user experience.

[0041] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description

[0042] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:

[0043] Figure 1 This is a schematic diagram of the flow of a trajectory display method provided in an embodiment of the present invention;

[0044] Figure 2 This is a schematic diagram of the flow of another trajectory display method provided in an embodiment of the present invention;

[0045] Figure 3 This is a schematic diagram of the flow of another trajectory display method provided in an embodiment of the present invention;

[0046] Figure 4 This is a schematic diagram illustrating a trajectory display effect provided in one embodiment of the present invention;

[0047] Figure 5 This is a schematic diagram of the structure of a trajectory display device provided in one embodiment of the present invention;

[0048] Figure 6 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0049] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0050] The acquisition, storage, use, and processing of trajectory information in the technical solution of this invention all comply with the relevant provisions of national laws and regulations.

[0051] Figure 1 This is a schematic diagram illustrating the flow of a trajectory display method according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0052] Step 101: Determine the trajectory sequence of the target object. The trajectory sequence includes multiple trajectory points, each of which includes trajectory coordinates and time information. The trajectory points in the trajectory sequence are arranged in descending order according to the time information in the trajectory points.

[0053] The target object can be set according to specific needs. The target object can be a target vehicle, a target person, or a target item, etc.

[0054] The trajectory coordinates may include longitude and latitude information. The trajectory points in the trajectory sequence are arranged in descending order of their time information, so that trajectory points closer to the current time are located at the beginning of the trajectory sequence, and trajectory points farther from the current time are located at the end of the trajectory sequence.

[0055] Step 102: Obtain the first M trajectory points in the trajectory sequence, and construct the trajectory header layer corresponding to the first M trajectory points based on the trajectory header effect information, where M is a positive integer.

[0056] M can be set according to specific needs. It can acquire a preset number of trajectory points from the beginning of the trajectory sequence to construct the trajectory header layer. Alternatively, it can acquire multiple trajectory points located at the beginning of the trajectory sequence whose time difference with the current time is within a first time difference range to construct the trajectory header layer.

[0057] The trajectory header effect information refers to information related to the display effect of the trajectory header. This information may include: trajectory header shape, blinking effect, movement effect, animation playback time, etc.

[0058] Step 103: Obtain the last N trajectory points in the trajectory sequence, and construct the trajectory tail layer corresponding to the last N trajectory points based on the trajectory tail effect information, where N is a positive integer.

[0059] N can be set according to specific needs. A preset number of trajectory points from the end of the trajectory sequence can be obtained to construct the trajectory tail layer. Alternatively, multiple trajectory points located at the end of the trajectory sequence with a time difference from the current time within a second time difference range can be obtained to construct the trajectory tail layer.

[0060] The trajectory tail effect information refers to information related to the display effect of the trajectory tail. This information may include: trajectory tail shape, blinking effect, movement effect, animation playback time, and trajectory tail length. Using this information, a smooth trailing effect can be achieved.

[0061] Step 104: Load the trajectory header layer and trajectory tail layer to display the running trajectory of the target object.

[0062] By adjusting the size and transparency of the track header and track tail layers, it's possible to prevent either layer from obscuring the image in another layer. Specifically, the track header and track tail layers can be merged to create a track composite layer; this composite layer can then be loaded and rendered onto the map to display the trajectory of the target object.

[0063] To make the solutions of this invention easier to understand, the following provides a method for loading trajectory header and trajectory tail layers using Mapbox GL and deck.gl. Mapbox GL is a map rendering engine. deck.gl is a visualization rendering engine based on Mapbox GL. The MapboxLayer in deck.gl is responsible for rendering the trajectory tail and trajectory header, while Mapbox GL is responsible for loading the instantiated MapboxLayer and rendering it onto the map.

[0064] A custom trajectory header layer is constructed based on deck.gl's layer, which can display effects such as blinking and movement. A trajectory tail layer is loaded using TripsLayer, which enables continuous and smooth movement of the trajectory tail. TripsLayer inherits from deck.gl's PathLayer and overrides the shader for injection, controlling the animation playback time and the length of the trajectory tail to achieve smooth forward movement.

[0065] After constructing the trajectory header layer and trajectory tail layer, use the mapbox gl addLayer method to add the trajectory header layer and trajectory tail layer to the map container and display them.

[0066] It should be noted that the solutions in this embodiment of the invention can also be implemented using other tools, and there are no restrictions on the specific implementation methods for generating and loading the trajectory head layer and trajectory tail layer.

[0067] In embodiments of the present invention, a trajectory sequence of the target object is determined, and the trajectory points in the trajectory sequence are arranged in descending order of their time information. A trajectory header layer and a trajectory tail layer are constructed based on multiple preceding and following trajectory points in the trajectory sequence. The trajectory header layer and trajectory tail layer are loaded to display the target object's trajectory. Trajectory header effect information and trajectory tail effect information can be constructed as needed, such as flashing effects, movement effects, animation playback time, trajectory tail length, etc. Therefore, the solution of the embodiments of the present invention can not only display the current position of the target object, but also provide rich display effects based on the trajectory sequence of the target object, thereby improving the user experience.

[0068] Figure 2 This is a schematic diagram illustrating the flow of another trajectory display method provided in an embodiment of the present invention. Figure 2 As shown, the method includes:

[0069] Step 201: Determine the trajectory sequence of the target object. The trajectory sequence includes multiple trajectory points, each of which includes trajectory coordinates and time information. The trajectory points in the trajectory sequence are arranged in descending order according to the time information in the trajectory points.

[0070] Step 202: At a preset frequency, acquire multiple original trajectory points of the target object. The original trajectory points include: original coordinates and timestamps.

[0071] The preset frequency can be set according to requirements. The preset frequency can be set to a fixed value, or it can be set according to the target object's movement speed. A higher preset frequency can be set for a faster-moving target object, and a lower preset frequency can be set for a slower-moving target object.

[0072] Step 203: Convert the original trajectory points into matching trajectory points and insert multiple matching trajectory points into the trajectory sequence; delete multiple trajectory points from the end of the inserted trajectory sequence.

[0073] The raw trajectory points collected often cannot be directly inserted into the trajectory sequence. They need to be converted into trajectory points that meet the processing requirements of the trajectory sequence.

[0074] In one embodiment of the present invention, converting the original trajectory points into matching trajectory points includes: performing road network matching processing on the original coordinates of the original trajectory points to obtain matching trajectory coordinates; and generating matching trajectory points based on the matching trajectory coordinates and their corresponding timestamps.

[0075] Road network matching is used to map original trajectory points to actual trajectory points on the road. Road network matching algorithms such as HMM (Hidden Markov Model) and DPMM (Driving Preference Based Personalized Map-Matching) can be used to process the original coordinates of the original trajectory points. When the target object is a vehicle, road network matching improves positioning accuracy and prevents the target object from deviating from the road due to positioning errors.

[0076] In one embodiment of the present invention, converting the original trajectory point into a matching trajectory point includes: obtaining the current timestamp; calculating the time difference between the current timestamp and the timestamp in the original trajectory; and obtaining the time information in the matching trajectory point corresponding to the original trajectory point.

[0077] Obtain the system's current time, subtract the timestamp from the original trajectory from the current timestamp to obtain a smaller value, which is used as the time information for matching trajectory points. Utilize the difference between the current timestamp and the timestamp in the original trajectory to construct sequence points in the trajectory sequence. Compared to directly using the time difference in the original trajectory to construct the trajectory sequence, considering the difference with the current timestamp allows for a more reasonable and flexible drawing of the target object's motion trajectory.

[0078] Step 204: Obtain the first M trajectory points in the trajectory sequence, and construct the trajectory header layer corresponding to the first M trajectory points based on the trajectory header effect information, where M is a positive integer.

[0079] Step 205: Obtain the last N trajectory points in the trajectory sequence, and construct the trajectory tail layer corresponding to the last N trajectory points based on the trajectory tail effect information, where N is a positive integer.

[0080] Step 206: Load the trajectory header layer and trajectory tail layer to display the running trajectory of the target object.

[0081] In this embodiment of the invention, since the target object is in motion, the original trajectory points of the target object are continuously acquired, and new trajectory points are continuously inserted into the trajectory sequence while outdated trajectory points are deleted. This provides a better real-time display effect and can more clearly show the current running position and running status of the target object.

[0082] In one embodiment of the present invention, before converting the original trajectory point into a matching trajectory point, the method further includes: determining whether the original trajectory point is an abnormal trajectory point; and deleting the original trajectory point if it is an abnormal trajectory point.

[0083] An abnormal trajectory point can be a trajectory point containing erroneous trajectory coordinates. An abnormal trajectory point can also be a trajectory point containing erroneous time information. Whether an original trajectory point is abnormal is determined based on whether the trajectory coordinates contained in the original trajectory point are within the normal geographical range and whether the time information contained in the original trajectory point is within the normal time range. Specifically, if the trajectory coordinates contained in the original trajectory point are not within the normal geographical range, and / or, the time information contained in the original trajectory point is not within the normal time range, then the original trajectory point is determined to be an abnormal trajectory point.

[0084] The normal geographical range can be determined based on the trajectory coordinates of other trajectory points in the trajectory sequence. The normal geographical range of the target object can be determined by sequentially connecting the trajectory coordinates of other trajectory points in chronological order and using these connecting coils.

[0085] The normal time range can be set according to requirements. The normal time range can also be determined based on the current time. Subtract the first time period from the current time to obtain the first time point. Subtract the second time period from the current time to obtain the second time point. The first time period is longer than the second time period; both the first and second time periods can be set according to specific requirements. The time period between the first and second time points is defined as the current time period.

[0086] By detecting abnormal trajectory points in the trajectory sequence of the target object and deleting them when abnormal trajectory points are found, the trajectory sequence can more accurately reflect the running trajectory of the target object.

[0087] In one embodiment of the present invention, before loading the trajectory header layer and trajectory tail layer to display the running trajectory of the target object, the method further includes: obtaining L consecutive trajectory points in the trajectory sequence, and constructing a trajectory body layer corresponding to the L trajectory points based on the trajectory body effect information, where L is a positive integer; loading the trajectory header layer and trajectory tail layer to display the running trajectory of the target object includes: loading the trajectory header layer, trajectory body layer and trajectory tail layer to display the running trajectory of the target object.

[0088] The trajectory main effect information refers to information related to the display effect of the trajectory main body. This information may include: trajectory main body shape information, blinking effect, movement effect, animation playback time, etc. L trajectory points do not intersect with M or N trajectory points. In addition to constructing a trajectory header layer and a trajectory tail layer, at least one trajectory main body layer can be constructed to provide richer display formats for the running trajectory and better showcase the running trajectory of the target object.

[0089] Figure 3 This is a schematic diagram illustrating the flow of another trajectory display method provided in an embodiment of the present invention. For example... Figure 3 As shown, the method includes:

[0090] Step 301: Obtain multiple original trajectory points of the target object. The original trajectory points include: original coordinates and timestamps.

[0091] Step 302: Perform road network matching processing on the original coordinates of the original trajectory points to obtain the matching trajectory coordinates.

[0092] The raw trajectory points collected often cannot be directly inserted into the trajectory sequence. They need to be converted into trajectory points that meet the processing requirements of the trajectory sequence.

[0093] Road network matching is used to map original trajectory points to trajectory points on actual roads. When the target object is a vehicle, road network matching provides positioning accuracy and avoids situations where the target object deviates from the road due to positioning errors.

[0094] Step 303: Obtain the current timestamp; calculate the time difference between the current timestamp and the timestamp corresponding to the matching trajectory coordinates.

[0095] Obtain the system's current time, subtract the timestamp from the original trajectory from the current timestamp to obtain a smaller value, which is used as the time information for matching trajectory points. Utilize the difference between the current timestamp and the timestamp in the original trajectory to construct sequence points in the trajectory sequence. Compared to directly using the time difference in the original trajectory to construct the trajectory sequence, considering the difference with the current timestamp allows for a more reasonable and flexible drawing of the target object's motion trajectory.

[0096] Step 304: Generate the trajectory sequence of the target object based on the coordinates of each matched trajectory and its corresponding time difference.

[0097] Based on the matching trajectory coordinates and their corresponding time differences, trajectory points are generated, and multiple trajectory points are combined to form a trajectory sequence of the target object.

[0098] Step 305: Obtain the first M trajectory points in the trajectory sequence, and construct the trajectory header layer corresponding to the first M trajectory points based on the trajectory header effect information, where M is a positive integer.

[0099] Step 306: Obtain the last N trajectory points in the trajectory sequence, and construct the trajectory tail layer corresponding to the last N trajectory points based on the trajectory tail effect information, where N is a positive integer.

[0100] Step 307: Load the trajectory header layer and trajectory tail layer to display the running trajectory of the target object.

[0101] In this embodiment of the invention, the original coordinates of the original trajectory points are subjected to road network matching processing, and the time difference between the current timestamp and the timestamp corresponding to the matched trajectory coordinates is calculated to construct the trajectory sequence of the target object, thereby providing a trajectory display method with both trajectory head and trajectory tail.

[0102] Figure 4 This is a schematic diagram illustrating a trajectory display effect provided by an embodiment of the present invention. For example... Figure 4 As shown in the box, the display effect of the object trajectory implemented by the method of this embodiment of the invention is shown. It can be seen that the trajectory display includes two parts: a trajectory head and a trajectory tail. It can not only display the running trajectory of the target object within a certain time range, but also the running direction of the target object. The solution of this embodiment of the invention provides a real-time trajectory display method with both a trajectory head and a trajectory tail. This method can achieve real-time point positioning and a smooth trailing effect, making the trajectory elements look aesthetically pleasing and continuous on the map.

[0103] Figure 5 This is a schematic diagram of the structure of a trajectory display device provided in one embodiment of the present invention. Figure 5 As shown, the device includes:

[0104] Sequence determination module 501 is used to determine the trajectory sequence of the target object. The trajectory sequence includes multiple trajectory points, each trajectory point including trajectory coordinates and time information. The trajectory points in the trajectory sequence are arranged in descending order according to the time information in the trajectory points.

[0105] The first construction module 502 is used to obtain the first M trajectory points in the trajectory sequence and construct the trajectory header layer corresponding to the first M trajectory points according to the trajectory header effect information, where M is a positive integer;

[0106] The second construction module 503 is used to obtain the last N trajectory points in the trajectory sequence and construct the trajectory tail layer corresponding to the last N trajectory points according to the trajectory tail effect information, where N is a positive integer;

[0107] The trajectory display module 504 is used to load the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object.

[0108] Optionally, the device further includes:

[0109] The update module 505 is used to acquire multiple original trajectory points of the target object at a preset frequency. The original trajectory points include: original coordinates and timestamps.

[0110] The original trajectory points are converted into matching trajectory points, and multiple matching trajectory points are inserted into the trajectory sequence;

[0111] Delete multiple trajectory points from the end of the inserted trajectory sequence.

[0112] Optionally, the update module 505 is specifically used for:

[0113] The original coordinates of the original trajectory points are subjected to road network matching processing to obtain the matching trajectory coordinates;

[0114] The matching trajectory points are generated based on the matching trajectory coordinates and their corresponding timestamps.

[0115] Optionally, the update module 505 is specifically used for:

[0116] Get the current timestamp;

[0117] Calculate the time difference between the current timestamp and the timestamp corresponding to the matching trajectory coordinates;

[0118] By combining the coordinates of the matching trajectory and their corresponding time difference, a matching trajectory point corresponding to the original trajectory point is generated.

[0119] Optionally, the update module 505 is further configured to:

[0120] Determine whether the original trajectory point is an abnormal trajectory point;

[0121] If the original trajectory point is an abnormal trajectory point, delete the original trajectory point.

[0122] Optionally, the trajectory display module 504 is specifically used for:

[0123] Merge the trajectory header layer and the trajectory tail layer to generate a trajectory composite layer;

[0124] Load the trajectory composite layer and render it onto the map.

[0125] Optionally, the trajectory display module 504 is specifically used for:

[0126] Obtain L consecutive trajectory points in the trajectory sequence, and construct the trajectory main body layer corresponding to the L trajectory points based on the trajectory main body effect information, where L is a positive integer;

[0127] Load the trajectory header layer, the trajectory body layer, and the trajectory tail layer to display the running trajectory of the target object.

[0128] This invention provides an electronic device, comprising:

[0129] One or more processors;

[0130] Storage device for storing one or more programs.

[0131] When one or more programs are executed by one or more processors, the one or more processors implement the methods of any of the above embodiments.

[0132] The following is for reference. Figure 6 It shows a schematic diagram of the structure of a computer system 600 suitable for implementing a terminal device of the present invention. Figure 6 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0133] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0134] The following components are connected to 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 speakers, 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 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 drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.

[0135] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this invention.

[0136] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0137] 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 the present invention. 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.

[0138] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor, and for example, can be described as: a sequence determination module, a first construction module, a second construction module, and a trajectory display module. The names of these modules do not necessarily limit the module itself; for example, the sequence determination module can also be described as "a module for determining the trajectory sequence of a target object."

[0139] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include:

[0140] Determine the trajectory sequence of the target object, the trajectory sequence including: multiple trajectory points, the trajectory points including: trajectory coordinates and time information, and the trajectory points in the trajectory sequence are arranged in descending order according to the time information in the trajectory points;

[0141] Obtain the first M trajectory points in the trajectory sequence, and construct the trajectory header layer corresponding to the first M trajectory points based on the trajectory header effect information, where M is a positive integer;

[0142] Obtain the last N trajectory points in the trajectory sequence, and construct the trajectory tail layer corresponding to the last N trajectory points based on the trajectory tail effect information, where N is a positive integer;

[0143] Load the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object.

[0144] According to the technical solution of this invention, a trajectory sequence of a target object is determined, and the trajectory points in the trajectory sequence are arranged in descending order of their time information. A trajectory head layer and a trajectory tail layer are constructed based on multiple preceding and following trajectory points in the trajectory sequence. The trajectory head layer and trajectory tail layer are loaded to display the running trajectory of the target object. Trajectory head effect information and trajectory tail effect information can be constructed as needed, such as flashing effects, movement effects, animation playback time, trajectory tail length, etc. Therefore, the solution of this invention can not only display the current position of the target object, but also provide rich display effects based on the trajectory sequence of the target object, thereby improving the user experience.

[0145] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A trajectory display method, characterized in that, include: Determine the trajectory sequence of the target object, the trajectory sequence including: multiple trajectory points, the trajectory points including: trajectory coordinates and time information, and the trajectory points in the trajectory sequence are arranged in descending order according to the time information in the trajectory points; Obtain the first M trajectory points in the trajectory sequence, and construct the trajectory header layer corresponding to the first M trajectory points based on the trajectory header effect information, where M is a positive integer; Obtain the last N trajectory points in the trajectory sequence, and construct the trajectory tail layer corresponding to the last N trajectory points based on the trajectory tail effect information, where N is a positive integer; Load the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object.

2. The method according to claim 1, characterized in that, After determining the trajectory sequence of the target object, the method further includes: At a preset frequency, multiple original trajectory points of the target object are acquired, and the original trajectory points include: original coordinates and timestamps; The original trajectory points are converted into matching trajectory points, and multiple matching trajectory points are inserted into the trajectory sequence; Delete multiple trajectory points from the end of the inserted trajectory sequence.

3. The method according to claim 2, characterized in that, The step of converting the original trajectory points into matching trajectory points includes: The original coordinates of the original trajectory points are subjected to road network matching processing to obtain the matching trajectory coordinates; The matching trajectory points are generated based on the matching trajectory coordinates and their corresponding timestamps.

4. The method according to claim 3, characterized in that, The step of generating the matching trajectory points based on the matching trajectory coordinates and their corresponding timestamps includes: Get the current timestamp; Calculate the time difference between the current timestamp and the timestamp corresponding to the matching trajectory coordinates; By combining the coordinates of the matching trajectory and their corresponding time difference, a matching trajectory point corresponding to the original trajectory point is generated.

5. The method according to claim 2, characterized in that, Before converting the original trajectory points into matching trajectory points, the method further includes: Determine whether the original trajectory point is an abnormal trajectory point; If the original trajectory point is an abnormal trajectory point, delete the original trajectory point.

6. The method according to claim 1, characterized in that, Loading the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object includes: Merge the trajectory header layer and the trajectory tail layer to generate a trajectory composite layer; Load the trajectory composite layer and render it onto the map.

7. The method according to claim 1, characterized in that, Before loading the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object, the method further includes: Obtain L consecutive trajectory points in the trajectory sequence, and construct the trajectory main body layer corresponding to the L trajectory points based on the trajectory main body effect information, where L is a positive integer; Loading the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object includes: Load the trajectory header layer, the trajectory body layer, and the trajectory tail layer to display the running trajectory of the target object.

8. A trajectory display device, characterized in that, include: A sequence determination module is used to determine the trajectory sequence of a target object. The trajectory sequence includes multiple trajectory points, each trajectory point including trajectory coordinates and time information. The trajectory points in the trajectory sequence are arranged in descending order according to the time information in the trajectory points. The first construction module is used to obtain the first M trajectory points in the trajectory sequence, and construct the trajectory header layer corresponding to the first M trajectory points according to the trajectory header effect information, where M is a positive integer; The second construction module is used to obtain the last N trajectory points in the trajectory sequence, and construct the trajectory tail layer corresponding to the last N trajectory points according to the trajectory tail effect information, where N is a positive integer; The trajectory display module is used to load the trajectory header layer and the trajectory tail layer to display the running trajectory of the target object.

9. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Road width measurement method based on floating car data analysis

    CN106289036A

  • Image data processing method and system

    WO2020048487A1