CN109947890A - The drafting cartoon implementing method and device of map real-time track - Google Patents

The drafting cartoon implementing method and device of map real-time track Download PDF

Info

Publication number
CN109947890A
CN109947890A CN201910235450.1A CN201910235450A CN109947890A CN 109947890 A CN109947890 A CN 109947890A CN 201910235450 A CN201910235450 A CN 201910235450A CN 109947890 A CN109947890 A CN 109947890A
Authority
CN
China
Prior art keywords
latitude
longitude coordinates
track
drafting
last time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910235450.1A
Other languages
Chinese (zh)
Inventor
杜建为
王征
王忻
张松
刘俊伶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Carzo Technology Co Ltd
Original Assignee
Chongqing Carzo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Carzo Technology Co Ltd filed Critical Chongqing Carzo Technology Co Ltd
Priority to CN201910235450.1A priority Critical patent/CN109947890A/en
Publication of CN109947890A publication Critical patent/CN109947890A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of drafting cartoon implementing method of map real-time track and devices, the described method includes: obtaining this data packet, this time, the data packet of last time track drafting point and time last time that need track drafting point, wherein, it includes this latitude and longitude coordinates that described this, which needs the data packet of track drafting point, and the data packet of the last time track drafting point includes the latitude and longitude coordinates of last time;Time interval is obtained according to this time and time last time;Judge whether the time interval is greater than or equal to the default value of preset track drafting duration;It is delayed by execution if more than last track drafting animation is then considered as, selects the preset smaller value less than default value;The duration of this track drafting is equal to the default value of the preset track drafting duration if being less than or equal to;According to the duration of this track drafting, this latitude and longitude coordinates, the latitude and longitude coordinates track drafting animation of last time;After this is completed, the value of this track drafting is saved.

Description

The drafting cartoon implementing method and device of map real-time track
Technical field
The present invention relates to a kind of drafting cartoon implementing method of map real-time track and devices.
Background technique
In present map software, real-time rendering path is mostly static drafting, and people lead by map software Endurance, the Dynamic Display of map track often generate " pause and transition in rhythm or melody " sense.Such as when people's self-driving is navigated, vehicle in map software Position where previous moment may A coordinate position also in map software interface, but subsequent time may just beat To from the farther away B coordinate position of A coordinate position, the track drafting animation of this beat type is not smooth enough, brings very Bad visual experience reduces the use feeling and Experience Degree of people.
Summary of the invention
In view of the above shortcomings of the prior art, the technical problems to be solved by the present invention are: providing a kind of in track drafting When reduce " pause and transition in rhythm or melody " sense map real-time track drafting cartoon implementing method and device.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of map real-time track is provided Draw cartoon implementing method, comprising the following steps:
Obtain the data packet that this needs track drafting point, this time RTC, last time track drafting point data packet and Time last time RTL, wherein it includes this latitude and longitude coordinates GPSC (x, y) that described this, which needs the data packet of track drafting point, The data packet of the last time track drafting point includes the latitude and longitude coordinates GPSL (x, y) of last time;
Time interval n is obtained according to this time RTC and time last time RTL;
Judge whether the time interval n is greater than or equal to the implied value T R of preset track drafting duration;
If the time interval n is greater than the implied value T R of preset track drafting duration, it is considered as last track drafting Animation is delayed by execution, selects the preset smaller value minT less than the implied value T R so that this track drafting when Long TR is equal to the preset smaller value minT;
If the time interval n is less than or equal to the implied value T R of preset track drafting duration, described this is drawn The duration TR of track processed is equal to the implied value T R of the preset track drafting duration;
It is sat according to the duration TR of this track drafting, this latitude and longitude coordinates GPSC (x, y), the longitude and latitude of last time Mark GPSL (x, y) track drafting animation;
After this is completed, the value of this track drafting is saved.
Further, according to the duration TR of this track drafting, this latitude and longitude coordinates GPSC (x, y), on During secondary latitude and longitude coordinates GPSL (x, y) track drafting animation, especially by following manner track drafting animation:
M interpolation is preset between this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time Point, the M interpolation point is by this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time etc. It is divided into M+1 section;
Obtain the azimuth angle theta of this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time;
It is obtained according to the latitude and longitude coordinates GPSL (x, y) of azimuth angle theta, this latitude and longitude coordinates GPSC (x, y) and last time The distance between two latitude and longitude coordinates point D;
It is respectively obtained and is defaulted according to the latitude and longitude coordinates GPSL (x, y) of the azimuth angle theta, the distance D and last time The longitude and latitude of M interpolation point between this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time is sat Mark GPS (x0, y0), GPS (x1, y1) ..., GPS (xM, yM);
According to the latitude and longitude coordinates GPSL (x, y), M interpolation point and the latitude and longitude coordinates of this last time of the last time GPSC (x, y) (x, y) obtains when a length of TR '=TR/ (M+1) of the track drafting of each adjacent two interpolation point;
According to the duration TR ' of the track drafting of each adjacent two point, the latitude and longitude coordinates GPSL of last time is successively drawn (x, y) to the track of interpolation point GPS (x0, y0), interpolation point GPS (x0, y0) to interpolation point GPS (x1, y1) track ..., Interpolation point GPS (xM, yM) arrives the track of this latitude and longitude coordinates GPSC (x, y).
Further, it is described this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time side Parallactic angle θ is obtained by following formula:
θ=arccos (cos (90-GPSCw) × cos (90-GPSLw)+sin (90-GPSCw) × sin (90-GPSLw) × Cos (GPSCj-GPSLj)) (one)
In formula (one), GPSCw indicates that the latitude of this latitude and longitude coordinates, GPSLw indicate the latitude and longitude coordinates of last time Latitude, GPSCj indicate that the longitude of this latitude and longitude coordinates, GPSLj indicate the longitude of the latitude and longitude coordinates of last time.
Further, it is obtained according to this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time In the step of to the distance between two latitude and longitude coordinates point D, the distance D is obtained especially by following formula:
L=R* (θ ÷ 180* π) (two)
In formula (two), R is the radius of the earth, and π is pi.
Further, according to the latitude and longitude coordinates GPSL (x, y) of the azimuth angle theta, the distance D and last time difference
Obtain defaulting in the M between this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time The latitude and longitude coordinates GPS (x0, y0) of a interpolation point, GPS (x1, y1) ..., GPS (xM, yM) the step of in, especially by with Lower formula obtains the latitude and longitude coordinates of each interpolation point:
θN=θ ÷ (M+1) (three)
In formula (three), θNFor the azimuth of n-th interpolation point and the latitude and longitude coordinates GPSL (x, y) of last time, wherein N is small In equal to M;
A=arccos (cos (90-GPSLw) × cos (θ)+sin (90-GPSLw) × sin (θ) × cos (θN)) (four)
In formula (four), a is the latitude variate-value of n-th interpolation point, relative to 90 degree;
C=arcsin (sin (θ) × sin (θN) ÷ sin (a)) (five)
In formula (five), C is the longitude variate-value of n-th interpolation point, the longitude of the latitude and longitude coordinates relative to last time GPSLj。
XNj=GPSLj+C (six)
In formula (six), the XNj is the longitude of n-th interpolation point;
XNw=90-a (seven)
In formula (seven), the XNw is the latitude of N number of interpolation point.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of map real-time track is provided Draw animation realization device, comprising:
First obtains module, needs the data packet of track drafting point and the data of last time track drafting point for this Packet, wherein it is described this need the data packet of track drafting point include this latitude and longitude coordinates GPSC (x, y) and this when Between RTC, the data packet of the last time track drafting point includes latitude and longitude coordinates GPSL (x, y) and time last time of last time RTL;;
Time interval computing module, for obtaining time interval n according to this time RTC and time last time RTL;
Judgment module, for judging whether the time interval n is greater than or equal to the default of preset track drafting duration Value TR;
Track drafting duration determining module, for judging to obtain the time interval n greater than default when the judgment module Track drafting duration implied value T R, then be considered as last animation of drawing and be delayed by execution, select preset smaller value minT, So that the duration TR of this track drafting is equal to the preset smaller value minT;It is also used to judge when the judgment module It is less than or equal to the implied value T R of preset track drafting duration to the time interval n, then this track drafting Duration TR is equal to the implied value T R of the preset track drafting duration;
Track animation drafting module, duration TR, this latitude and longitude coordinates for this track drafting according to GPSC (x, y), the latitude and longitude coordinates of last time GPSL (x, y) track drafting animation;
Preserving module, for after this is completed, saving the value of this request, so that GPSL (x, y)=GPSC (x, y), PL=PC, RTL=RTC.
Further, the track animation drafting module includes:
Interpolation point presetting module, in this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL of last time Preset M interpolation point between (x, y), the M interpolation point is by this latitude and longitude coordinates GPSC (x, y) and the warp of last time Latitude coordinate GPSL (x, y) is divided into M+1 section;
Second obtains module, for obtaining this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL of last time The azimuth angle theta of (x, y);
Third obtains module, for according to azimuth angle theta, this latitude and longitude coordinates GPSC (x, y) and the longitude and latitude of last time Coordinate GPSL (x, y) obtains the distance between two latitude and longitude coordinates point D;
Interpolation point latitude coordinates obtain module, for according to the azimuth angle theta, the distance D and the longitude and latitude of last time Coordinate GPSL (x, y) respectively obtain the latitude and longitude coordinates GPSC (x, y) and last time that default in this latitude and longitude coordinates GPSL (x, Y) the latitude and longitude coordinates GPS (x0, y0) of M interpolation point between, GPS (x1, y1) ..., GPS (xM, yM);
The duration of adjacent two interpolation points track drafting obtains module, for the latitude and longitude coordinates GPSL according to the last time The latitude and longitude coordinates GPSC (x, y) (x, y) of (x, y), M interpolation point and this last time obtain each adjacent two interpolation point When a length of TR '=TR/ (M+1) of track drafting;
Track animation rendering submodule is successively drawn for the duration TR ' according to the track drafting of each adjacent two point The track of the latitude and longitude coordinates GPSL (x, y) Dao interpolation point GPS (x0, y0) of last time processed, interpolation point GPS (x0, y0) arrive interpolation point The track of GPS (x1, y1) ..., interpolation point GPS (xM, yM) to this latitude and longitude coordinates GPSC (x, y) track.
Further, the interpolation point latitude coordinates obtain module and are also used to be obtained by the following formula the azimuth angle theta:
θ=arccos (cos (90-GPSCw) × cos (90-GPSLw)+sin (90-GPSCw) × sin (90-GPSLw) × Cos (GPSCj-GPSLj)), wherein GPSCw indicates that the latitude of this latitude and longitude coordinates, GPSLw indicate the longitude and latitude of last time The latitude of coordinate, GPSCj indicate that the longitude of this latitude and longitude coordinates, GPSLj indicate the longitude of the latitude and longitude coordinates of last time.
Further, the second acquisition module is also used to obtain the distance D by following formula:
L=R* (θ ÷ 180* π), wherein R is the radius of the earth, and π is pi.
10, the drafting animation realization device of map real-time track as claimed in claim 6, which is characterized in that described to insert Value point latitude coordinates obtain module and are also used to obtain the latitude and longitude coordinates of each interpolation point by following formula:
θN=θ ÷ (M+1), wherein θNFor the azimuth of n-th interpolation point and the latitude and longitude coordinates GPSL (x, y) of last time, Wherein, N is less than or equal to M;
A=arccos (cos (90-GPSLw) × cos (θ)+sin (90-GPSLw) × sin (θ) × cos (θN)), wherein A is the latitude variate-value of n-th interpolation point, relative to 90 degree;
C=arcsin (sin (θ) × sin (θN) ÷ sin (a)), wherein C is the longitude variate-value of n-th interpolation point, phase For the longitude GPSLj of the latitude and longitude coordinates of last time.
XNj=GPSLj+C, wherein the XNj is the longitude of n-th interpolation point;
XNw=90-a, wherein the XNw is the latitude of N number of interpolation point.
The drafting cartoon implementing method and device of map real-time track of the invention, on the one hand, unlike present technology that The default value using track drafting duration of sample simply, but dexterously pass through time interval before drawing each time and draw The default value of track duration processed is judged that the interval reported is drawn in the animation delay and real data that track is drawn to be entangled Just, " Caton " phenomenon of track animated show in existing software is greatly reduced.On the other hand, at mapping track, In the way of interpolation subdividing, interpolated coordinates point is calculated, is changed with subtle animation and reaches integral rails mark animation drafting effect, according to Interpolation number is defined, the GPS interpolation point of distance relatively is calculated and is drawn using the movement of few distance to reach overall track The animation of system is realized.By the way that the gradually dynamic effect of track drafting may be implemented in terms of two above, the use feeling and body of people are improved Sense is tested, the satisfaction of people is improved.
Detailed description of the invention
Fig. 1 is the flow chart of drafting one embodiment of cartoon implementing method of map real-time track of the present invention.
Fig. 2 is rendering algorithm analysis diagram in the drafting cartoon implementing method of map real-time track of the present invention.
Fig. 3 is the block diagram of drafting one embodiment of animation realization device of map real-time track of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to Figure 1 and Fig. 2, map real-time track of the present invention drafting cartoon implementing method the following steps are included:
S101, the data packet for obtaining data packet and last time track drafting point that this needs track drafting point, wherein institute Stating this to need the data packet of track drafting point includes this latitude and longitude coordinates GPSC (x, y) and this time RTC, described The data packet of last time track drafting point includes the latitude and longitude coordinates GPSL (x, y) and time last time RTL of last time;
In this step, it is the value saved after the completion of last track drafting that the last time, which needs the data of track drafting point, In acquire.Described this needs the data packet of track drafting point to obtain by following sub-step:
S1011, start from network request packet;This step can be any electronic equipment with map software and pass through WIFI, 2G, 3G, 4G, 5G etc. wireless network need to draw asking for this tracing point data demand packet to GPS positioning system request Seek data.
S1022, record current request time RTC (this i.e. described time RTC);
S1033, network request return to this tracing point data packet for needing to draw, the latitude and longitude coordinates including this GPSC(x,y)。
S102, time interval n is obtained according to this time RTC and time last time RTL;
S103, judge whether the time interval n is greater than or equal to the implied value T R of preset track drafting duration;
If S104, the time interval n are greater than the implied value T R of preset track drafting duration, it is considered as last drafting Track animation is delayed by execution, the preset smaller value minT less than the implied value T R is selected, so that this track drafting Duration TR be equal to the preset smaller value minT;
If S105, the time interval n are less than or equal to the implied value T R of preset track drafting duration, it is described this Track drafting duration TR be equal to the preset track drafting duration implied value T R;
S106, the duration TR of this track drafting, this latitude and longitude coordinates GPSC (x, y), the warp of last time according to Latitude coordinate GPSL (x, y) track drafting animation;
As preferred or optional, this step includes following sub-step:
S1061, M is preset between this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time A interpolation point, the M interpolation point is by this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL of last time (x, y) is divided into M+1 section;
The orientation of the latitude and longitude coordinates GPSL (x, y) of S1062, the latitude and longitude coordinates GPSC (x, y) for obtaining this and last time Angle θ;As preferred or optional, the azimuth angle theta passes through following formula and obtains:
θ=arccos (cos (90-GPSCw) × cos (90-GPSLw)+sin (90-GPSCw) × sin (90-GPSLw) × Cos (GPSCj-GPSLj)) (one)
In formula (one), GPSCw indicates that the latitude of this latitude and longitude coordinates, GPSLw indicate the latitude and longitude coordinates of last time Latitude, GPSCj indicate that the longitude of this latitude and longitude coordinates, GPSLj indicate the longitude of the latitude and longitude coordinates of last time.
S1063, according to the latitude and longitude coordinates GPSL of azimuth angle theta, this latitude and longitude coordinates GPSC (x, y) and last time (x, Y) the distance between two latitude and longitude coordinates point D is obtained;As preferred or optional, the distance is obtained by following formula D:
L=R* (θ ÷ 180* π) (two)
In formula (two), R is the radius of the earth, and π is pi.
S1064, it is respectively obtained according to the latitude and longitude coordinates GPSL (x, y) of the azimuth angle theta, the distance D and last time Default in the warp of M interpolation point between this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time Latitude coordinate GPS (x0, y0), GPS (x1, y1) ..., GPS (xM, yM);As preferred or optional, pass through following formula Obtain the latitude and longitude coordinates of each interpolation point:
θN=θ ÷ (M+1) (three)
In formula (three), θNFor the azimuth of n-th interpolation point and the latitude and longitude coordinates GPSL (x, y) of last time, wherein N is small In equal to M;
A=arccos (cos (90-GPSLw) × cos (θ)+sin (90-GPSLw) × sin (θ) × cos (θN)) (four)
In formula (four), a is the latitude variate-value of n-th interpolation point, relative to 90 degree;
C=arcsin (sin (θ) × sin (θN) ÷ sin (a)) (five)
In formula (five), C is the longitude variate-value of n-th interpolation point, the longitude of the latitude and longitude coordinates relative to last time GPSLj。
XNj=GPSLj+C (six)
In formula (six), the XNj is the longitude of n-th interpolation point;
XNw=90-a (seven)
In formula (seven), the XNw is the latitude of N number of interpolation point.
S1065, latitude and longitude coordinates GPSL (x, y), M interpolation point and the longitude and latitude of this last time according to the last time Degree coordinate GPSC (x, y) (x, y) obtains when a length of TR '=TR/ (M+1) of the track drafting of each adjacent two interpolation point;
S1066, the duration TR ' according to the track drafting of each adjacent two point, the longitude and latitude for successively drawing last time are sat Mark the track of GPSL (x, y) to interpolation point GPS (x0, y0), the rail of interpolation point GPS (x0, y0) to interpolation point GPS (x1, y1) Mark ..., interpolation point GPS (xM, yM) to this latitude and longitude coordinates GPSC (x, y) track.
S107, after this is completed, save the value of this track drafting so that GPSL (x, y)=GPSC (x, Y), RTL=RTC.
In the present solution, every between predetermined to network request packet.That is, this programme further include:
S108, after waiting predetermined time TR, S101 step is executed again, until the track of this navigation is completed.
Embodiment of the present invention records this request time in request, this was by the last time of request time and storage Request time acquires the time difference, is compared according to the time difference with default value to judge that last time track drafting animation is delayed by and hold Row, to reduce and the latency issue of the equipment of various configurations to adjust drafting duration, significantly reduce rail in map software Mark animation " Caton " phenomenon.Further, by above method track drafting animation, it is inserted into several in each track and inserts It is worth point, each track is subdivided into several sections and is drawn, is showed in face of user, mentions so that track animation is more smooth Experience sense, the satisfaction of high user.
Fig. 3 is referred to, Fig. 3 is the block diagram of drafting one embodiment of animation realization device of map real-time track of the present invention. The drafting animation realization device of the map real-time track of the present embodiment includes:
First obtains module 101, needs the data packet of track drafting point and the number of last time track drafting point for this According to packet, wherein it is described this need the data packet of track drafting point include this latitude and longitude coordinates GPSC (x, y) and this The data packet of time RTC, the last time track drafting point include latitude and longitude coordinates GPSL (x, y) and time last time of last time RTL。
Time interval computing module 102, for obtaining time interval n according to this time RTC and time last time RTL.
Judgment module 103, for judging whether the time interval n is greater than or equal to the silent of preset track drafting duration Recognize value TR.
Track drafting duration determining module 104, for obtain the time interval n big when the judgment module 103 judgement In the implied value T R of preset track drafting duration, then it is considered as last animation of drawing and is delayed by execution, select preset smaller Value minT, so that the duration TR of this track drafting is equal to the preset smaller value minT;It is also used to when the judgement mould Block 103 judges to obtain the implied value T R that the time interval n is less than or equal to preset track drafting duration, then it is described this The duration TR of track drafting is equal to the implied value T R of the preset track drafting duration.
Track animation drafting module 105, duration TR, this latitude and longitude coordinates for this track drafting according to GPSC (x, y), the latitude and longitude coordinates of last time GPSL (x, y) track drafting animation.
Wherein, the track animation drafting module 105 include interpolation point presetting module 1051, second obtain module 1052, Third obtains module 1053, interpolation point latitude coordinates obtain module 1054, the duration of adjacent two interpolation points track drafting obtains mould Block 1055 and track animation rendering submodule 1056.
The interpolation point presetting module 1051 is used to sit in this latitude and longitude coordinates GPSC (x, y) and the longitude and latitude of last time It marks and presets M interpolation point between GPSL (x, y), the M interpolation point is by this latitude and longitude coordinates GPSC (x, y) and upper Secondary latitude and longitude coordinates GPSL (x, y) is divided into M+1 section;
Described second obtains module 1052, for obtaining this latitude and longitude coordinates GPSC (x, y) and the longitude and latitude of last time The azimuth angle theta of coordinate GPSL (x, y);Wherein, the second acquisition module 1052 is also used to be obtained by the following formula the side Parallactic angle θ:
θ=arccos (cos (90-GPSCw) × cos (90-GPSLw)+sin (90-GPSCw) × sin (90-GPSLw) × Cos (GPSCj-GPSLj)), wherein GPSCw indicates that the latitude of this latitude and longitude coordinates, GPSLw indicate the longitude and latitude of last time The latitude of coordinate, GPSCj indicate that the longitude of this latitude and longitude coordinates, GPSLj indicate the longitude of the latitude and longitude coordinates of last time.
Third obtains module 1053, for according to azimuth angle theta, this latitude and longitude coordinates GPSC (x, y) and the warp of last time Latitude coordinate GPSL (x, y) obtains the distance between two latitude and longitude coordinates point D;The third obtains module 1053 and is also used to lead to It crosses following formula and obtains the distance D:
L=R* (θ ÷ 180* π), wherein R is the radius of the earth, and π is pi.
The interpolation point latitude coordinates obtain module 1054, for according to the azimuth angle theta, the distance D and last time Latitude and longitude coordinates GPSL (x, y) respectively obtain the latitude and longitude coordinates GPSC (x, y) for defaulting in this and the longitude and latitude of last time and sit Mark the latitude and longitude coordinates GPS (x0, y0) of M interpolation point between GPSL (x, y), GPS (x1, y1) ..., GPS (xM, yM).
The interpolation point latitude coordinates obtain module 1054 and are also used to obtain the warp of each interpolation point by following formula Latitude coordinate:
θN=θ ÷ (M+1), wherein θNFor the azimuth of n-th interpolation point and the latitude and longitude coordinates GPSL (x, y) of last time, Wherein, N is less than or equal to M;
A=arccos (cos (90-GPSLw) × cos (θ)+sin (90-GPSLw) × sin (θ) × cos (θN)), wherein A is the latitude variate-value of n-th interpolation point, relative to 90 degree;
C=arcsin (sin (θ) × sin (θN) ÷ sin (a)), wherein C is the longitude variate-value of n-th interpolation point, phase For the longitude GPSLj of the latitude and longitude coordinates of last time.
XNj=GPSLj+C, wherein the XNj is the longitude of n-th interpolation point;
XNw=90-a, wherein the XNw is the latitude of N number of interpolation point.
The duration of the adjacent two interpolation points track drafting obtains module 1055 and is used to be sat according to the longitude and latitude of the last time Mark GPSL (x, y), M interpolation point and the latitude and longitude coordinates GPSC (x, y) (x, y) of this last time obtain each adjacent two and insert It is worth when a length of TR '=TR/ (M+1) of the track drafting of point;
The track animation rendering submodule 1056 is used for the duration of the track drafting according to each adjacent two point TR ', successively draw the track of latitude and longitude coordinates GPSL (x, y) Dao interpolation point GPS (x0, y0) of last time, interpolation point GPS (x0, Y0) to interpolation point GPS (x1, y1) track ..., interpolation point GPS (xM, yM) arrive this latitude and longitude coordinates GPSC (x, y) Track.
And preserving module 106, for after this is completed, saving the value of this request, so that GPSL (x, y) =GPSC (x, y), PL=PC, RTL=RTC.
The above is only embodiments of the present invention, are not intended to limit the scope of the invention, all to utilize the present invention Equivalent structure or equivalent flow shift made by specification and accompanying drawing content is applied directly or indirectly in other relevant technologies Field is included within the scope of the present invention.

Claims (10)

1. a kind of drafting cartoon implementing method of map real-time track, comprising the following steps:
Obtain this data packet, this time RTC, the data packet of last time track drafting point and last time for needing track drafting point Time RTL, wherein it includes this latitude and longitude coordinates GPSC (x, y) that described this, which needs the data packet of track drafting point, described The data packet of last time track drafting point includes the latitude and longitude coordinates GPSL (x, y) of last time;
Time interval n is obtained according to this time RTC and time last time RTL;
Judge whether the time interval n is greater than or equal to the implied value T R of preset track drafting duration;
If the time interval n is greater than the implied value T R of preset track drafting duration, it is considered as last track drafting animation It is delayed by execution, the preset smaller value minT less than the implied value T R is selected, so that the duration TR of this track drafting Equal to the preset smaller value minT;
If the time interval n is less than or equal to the implied value T R of preset track drafting duration, this drafting rail The duration TR of mark is equal to the implied value T R of the preset track drafting duration;
According to the duration TR of this track drafting, this latitude and longitude coordinates GPSC (x, y), the latitude and longitude coordinates of last time GPSL (x, y) track drafting animation;
After this is completed, the value of this track drafting is saved.
2. the drafting cartoon implementing method of map real-time track as described in claim 1, which is characterized in that according to described The duration TR of secondary track drafting, this latitude and longitude coordinates GPSC (x, y), the latitude and longitude coordinates GPSL (x, y) of last time draw rail During mark animation, especially by following manner track drafting animation:
M interpolation point is preset between this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time, This latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time is divided by the M interpolation point M+1 section;
Obtain the azimuth angle theta of this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time;
According to the latitude and longitude coordinates GPSL (x, y) of azimuth angle theta, this latitude and longitude coordinates GPSC (x, y) and last time obtain this two The distance between latitude and longitude coordinates point D;
It is respectively obtained according to the latitude and longitude coordinates GPSL (x, y) of the azimuth angle theta, the distance D and last time and defaults in this Latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time between M interpolation point latitude and longitude coordinates GPS(x0,y0),GPS(x1,y1),……,GPS(xM,yM);
According to the latitude and longitude coordinates GPSL (x, y) of the last time, M interpolation point and the latitude and longitude coordinates GPSC of this last time (x, y) (x, y) obtains when a length of TR '=TR/ (M+1) of the track drafting of each adjacent two interpolation point;
According to the duration TR ' of the track drafting of each adjacent two point, the latitude and longitude coordinates GPSL (x, y) of last time is successively drawn To the track of interpolation point GPS (x0, y0), interpolation point GPS (x0, y0) to interpolation point GPS (x1, y1) track ..., interpolation point GPS (xM, yM) arrives the track of this latitude and longitude coordinates GPSC (x, y).
3. the drafting cartoon implementing method of map real-time track as claimed in claim 2, which is characterized in that this warp The azimuth angle theta of latitude coordinate GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time are obtained by following formula:
θ=arccos (cos (90-GPSCw) × cos (90-GPSLw)+sin (90-GPSCw) × sin (90-GPSLw) × cos (GPSCj-GPSLj)) (one)
In formula (one), GPSCw indicates that the latitude of this latitude and longitude coordinates, GPSLw indicate the latitude of the latitude and longitude coordinates of last time, GPSCj indicates that the longitude of this latitude and longitude coordinates, GPSLj indicate the longitude of the latitude and longitude coordinates of last time.
4. the drafting cartoon implementing method of map real-time track as claimed in claim 2, which is characterized in that according to this Latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time obtains the distance between two latitude and longitude coordinates point D The step of in, obtain the distance D especially by following formula:
L=R* (θ ÷ 180* π) (two)
In formula (two), R is the radius of the earth, and π is pi.
5. the drafting cartoon implementing method of map real-time track as claimed in claim 2, which is characterized in that according to the side The latitude and longitude coordinates GPSL (x, y) of parallactic angle θ, the distance D and last time respectively obtain the latitude and longitude coordinates for defaulting in this Latitude and longitude coordinates GPS (x0, y0), the GPS of M interpolation point between GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time (x1, y1) ..., GPS (xM, yM) the step of in, obtain the latitude and longitude coordinates of each interpolation point especially by following formula:
θN=θ ÷ (M+1) (three)
In formula (three), θNFor the azimuth of n-th interpolation point and the latitude and longitude coordinates GPSL (x, y) of last time, wherein N is less than or equal to M;
A=arccos (cos (90-GPSLw) × cos (θ)+sin (90-GPSLw) × sin (θ) × cos (θN)) (four)
In formula (four), a is the latitude variate-value of n-th interpolation point, relative to 90 degree;
C=arcsin (sin (θ) × sin (θN) ÷ sin (a)) (five)
In formula (five), C is the longitude variate-value of n-th interpolation point, the longitude GPSLj of the latitude and longitude coordinates relative to last time.
XNj=GPSLj+C (six)
In formula (six), the XNj is the longitude of n-th interpolation point;
XNw=90-a (seven)
In formula (seven), the XNw is the latitude of N number of interpolation point.
6. a kind of drafting animation realization device of map real-time track, comprising:
First obtains module, needs the data packet of track drafting point and the data packet of last time track drafting point for this, In, it includes this latitude and longitude coordinates GPSC (x, y) and this time that described this, which needs the data packet of track drafting point, The data packet of RTC, the last time track drafting point include the latitude and longitude coordinates GPSL (x, y) and time last time RTL of last time;;
Time interval computing module, for obtaining time interval n according to this time RTC and time last time RTL;
Judgment module, for judging whether the time interval n is greater than or equal to the implied value T R of preset track drafting duration;
Track drafting duration determining module, for being greater than preset draw when the judgment module judges to obtain the time interval n The implied value T R of track duration processed is then considered as last animation of drawing and is delayed by execution, selects preset smaller value minT, so that The duration TR for obtaining this track drafting is equal to the preset smaller value minT;It is also used to judge to obtain institute when the judgment module State the implied value T R that time interval n is less than or equal to preset track drafting duration, then it is described this track drafting duration TR is equal to the implied value T R of the preset track drafting duration;
Track animation drafting module, for according to the duration TR of this track drafting, this latitude and longitude coordinates GPSC (x, Y), latitude and longitude coordinates GPSL (x, y) track drafting animation of last time;
Preserving module, for after this is completed, saving the value of this request, so that GPSL (x, y)=GPSC (x, Y), PL=PC, RTL=RTC.
7. the drafting animation realization device of map real-time track as claimed in claim 6, which is characterized in that the track animation Drafting module includes:
Interpolation point presetting module, in this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time Between preset M interpolation point, the M interpolation point is by this latitude and longitude coordinates GPSC (x, y) and the longitude and latitude of last time Coordinate GPSL (x, y) is divided into M+1 section;
Second obtains module, for obtaining this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates GPSL (x, y) of last time Azimuth angle theta;
Third obtains module, for according to azimuth angle theta, this latitude and longitude coordinates GPSC (x, y) and the latitude and longitude coordinates of last time GPSL (x, y) obtains the distance between two latitude and longitude coordinates point D;
Interpolation point latitude coordinates obtain module, for according to the azimuth angle theta, the distance D and the latitude and longitude coordinates of last time GPSL (x, y) respectively obtain the latitude and longitude coordinates GPSC (x, y) and last time that default in this latitude and longitude coordinates GPSL (x, y) it Between the latitude and longitude coordinates GPS (x0, y0) of M interpolation point, GPS (x1, y1) ..., GPS (xM, yM);
The duration of adjacent two interpolation points track drafting obtains module, for according to the latitude and longitude coordinates GPSL (x, y) of the last time, M interpolation point and the latitude and longitude coordinates GPSC (x, y) (x, y) of this last time obtain the drafting rail of each adjacent two interpolation point When a length of TR '=TR/ (M+1) of mark;
Track animation rendering submodule is successively drawn for the duration TR ' according to the track drafting of each adjacent two point The track of secondary latitude and longitude coordinates GPSL (x, y) Dao interpolation point GPS (x0, y0), interpolation point GPS (x0, y0) arrive interpolation point GPS The track of (x1, y1) ..., interpolation point GPS (xM, yM) to this latitude and longitude coordinates GPSC (x, y) track.
8. the drafting animation realization device of map real-time track as claimed in claim 6, which is characterized in that the interpolation point warp Latitude coordinate obtaining module is also used to be obtained by the following formula the azimuth angle theta:
θ=arccos (cos (90-GPSCw) × cos (90-GPSLw)+sin (90-GPSCw) × sin (90-GPSLw) × cos (G PSCj-GPSLj)), wherein GPSCw indicates that the latitude of this latitude and longitude coordinates, GPSLw indicate that the longitude and latitude of last time is sat Target latitude, GPSCj indicate that the longitude of this latitude and longitude coordinates, GPSLj indicate the longitude of the latitude and longitude coordinates of last time.
9. the drafting animation realization device of map real-time track as claimed in claim 6, which is characterized in that described second obtains Module is also used to obtain the distance D by following formula:
L=R* (θ ÷ 180* π), wherein R is the radius of the earth, and π is pi.
10. the drafting animation realization device of map real-time track as claimed in claim 6, which is characterized in that the interpolation point Latitude coordinates obtain module and are also used to obtain the latitude and longitude coordinates of each interpolation point by following formula:
θN=θ ÷ (M+1), wherein θNFor the azimuth of n-th interpolation point and the latitude and longitude coordinates GPSL (x, y) of last time, wherein N is less than or equal to M;
A=arccos (cos (90-GPSLw) × cos (θ)+sin (90-GPSLw) × sin (θ) × cos (θN)), wherein a The latitude variate-value of N number of interpolation point, relative to 90 degree;
C=arcsin (sin (θ) × sin (θN) ÷ sin (a)), wherein C is the longitude variate-value of n-th interpolation point, relative to The longitude GPSLj of the latitude and longitude coordinates of last time.
XNj=GPSLj+C, wherein the XNj is the longitude of n-th interpolation point;
XNw=90-a, wherein the XNw is the latitude of N number of interpolation point.
CN201910235450.1A 2019-03-27 2019-03-27 The drafting cartoon implementing method and device of map real-time track Pending CN109947890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910235450.1A CN109947890A (en) 2019-03-27 2019-03-27 The drafting cartoon implementing method and device of map real-time track

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910235450.1A CN109947890A (en) 2019-03-27 2019-03-27 The drafting cartoon implementing method and device of map real-time track

Publications (1)

Publication Number Publication Date
CN109947890A true CN109947890A (en) 2019-06-28

Family

ID=67011866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910235450.1A Pending CN109947890A (en) 2019-03-27 2019-03-27 The drafting cartoon implementing method and device of map real-time track

Country Status (1)

Country Link
CN (1) CN109947890A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114779A (en) * 2020-08-26 2020-12-22 北京奇艺世纪科技有限公司 Processing method, system, device, electronic equipment and storage medium of dynamic effect object

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030078720A1 (en) * 2000-12-08 2003-04-24 Shinya Adachi Method for transmitting information on position on digital map and device used for the same
CN102128626A (en) * 2010-01-13 2011-07-20 华为技术有限公司 Track display method and system and map server
CN104515529A (en) * 2013-09-27 2015-04-15 高德软件有限公司 Real-scenery navigation method and navigation equipment
WO2016095352A1 (en) * 2014-12-17 2016-06-23 中兴通讯股份有限公司 Reverse navigation method and mobile terminal
JP2018100921A (en) * 2016-12-21 2018-06-28 Kddi株式会社 Program, device and method for estimating route on map according to movement locus
CN109307513A (en) * 2017-07-26 2019-02-05 厦门雅迅网络股份有限公司 A kind of Real-time Road matching process and system based on driving recording

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030078720A1 (en) * 2000-12-08 2003-04-24 Shinya Adachi Method for transmitting information on position on digital map and device used for the same
CN102128626A (en) * 2010-01-13 2011-07-20 华为技术有限公司 Track display method and system and map server
CN104515529A (en) * 2013-09-27 2015-04-15 高德软件有限公司 Real-scenery navigation method and navigation equipment
WO2016095352A1 (en) * 2014-12-17 2016-06-23 中兴通讯股份有限公司 Reverse navigation method and mobile terminal
JP2018100921A (en) * 2016-12-21 2018-06-28 Kddi株式会社 Program, device and method for estimating route on map according to movement locus
CN109307513A (en) * 2017-07-26 2019-02-05 厦门雅迅网络股份有限公司 A kind of Real-time Road matching process and system based on driving recording

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114779A (en) * 2020-08-26 2020-12-22 北京奇艺世纪科技有限公司 Processing method, system, device, electronic equipment and storage medium of dynamic effect object
CN112114779B (en) * 2020-08-26 2024-02-09 北京奇艺世纪科技有限公司 Method, system, device, electronic equipment and storage medium for processing dynamic effect object

Similar Documents

Publication Publication Date Title
CN104077326B (en) A kind of processing method and processing device of road data
AU2018282316A1 (en) Systems and methods for displaying movement of vehicle on map
CN100517346C (en) Path-finding method for optimal path
CN110231044A (en) A kind of paths planning method and device
CN109947890A (en) The drafting cartoon implementing method and device of map real-time track
CN105277203B (en) A kind of generation method of navigation action, air navigation aid and equipment
CN101619981A (en) Self-service tour guide and navigation terminal and method for optimally selecting tour guide and navigation information
AU2008207288A1 (en) Contextually enhanced multi channel location based tour guidance system
CN103185581B (en) Information presentation device, the reminding method of POI search result
CN103596263B (en) Method and device for position acquisition in indoor positioning
EP1146739A3 (en) A method and system for providing additional information to a user receiving a video or audio program
WO2001095288A1 (en) Implementation of route instruction service with a three-dimensional model
WO2016145905A1 (en) Network signal recording method, device, mobile terminal and storage medium
CN107806883A (en) A kind of air navigation aid and device
CN110276582A (en) Order allocation method and device, electronic equipment and computer readable storage medium
CN110087121A (en) Virtual image display methods, virtual image display device and electronic equipment
CN111400747B (en) Measurement method based on track privacy protection
CN104717607B (en) A kind of calendar prompting method and mobile terminal
CN110379340A (en) Outdoor positioning tourism guide system based on iBeacon and GPS
CN106441269A (en) Section locating method used for electronic voice guide in scenic spot
CN109118172A (en) Note based reminding method and device
CN105657828B (en) A kind of Orientation on map method and system of mobile terminal
CN112182286A (en) Intelligent video management and control method based on three-dimensional live-action map
CN109427238A (en) A kind of Road letterings labeling position determines method and device
JP5119504B2 (en) Pass determination device, pass determination method, program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190628