The content of the invention
The purpose of the embodiment of the present application is the provision of a kind of course data and determines method and device, to simplify user behaviour
Make, improve user experience.
In order to achieve the above object, this application discloses a kind of course data to determine method, the described method includes:
Receive the aim curve that user is directed to the input of target map region;
According to predetermined selection rule, the destination that the aim curve includes is determined, the destination includes at least described
The beginning and end of aim curve;
Obtain the positional information of each destination;
According to the positional information of each destination, and order of each destination on the aim curve, determine and the target
The corresponding course data of curve.
Optionally, it is described according to predetermined selection rule, the step of determining the destination that the aim curve includes, bag
Include:
The beginning and end of the aim curve is connected, builds target line;
Judge whether the distance of all the points to the target line on the aim curve is respectively less than default apart from threshold
Value;
If it is, the beginning and end of the aim curve is determined as destination;
If it is not, then the point on the aim curve with target line spacing maximum is determined as cut-point, according to
The cut-point, at least two strip curves are divided into by the aim curve, are respectively updated at least two strip curves
The step of aim curve, returns and performs the beginning and end for connecting the aim curve, structure target line.
Optionally, the positional information of each destination includes at least:Longitude and latitude;The position letter for obtaining each destination
The step of breath, including:
The longitude and latitude of predetermined point in the target map region are obtained, unit in the target map region is obtained and indulges
To apart from corresponding unit latitude, and the corresponding unit longitude of unit lateral separation;
Determine each destination to the fore-and-aft distance and lateral separation of the predetermined point;
According to the latitude of the predetermined point, the corresponding unit latitude of the unit fore-and-aft distance, and each destination is to described
The fore-and-aft distance of predetermined point, determines the latitude of each destination;
According to the longitude of the predetermined point, the corresponding unit longitude of the unit lateral separation, and each destination is to described
The lateral separation of predetermined point, determines the longitude of each destination.
Optionally, the latitude according to the predetermined point, the corresponding unit latitude of the unit fore-and-aft distance, and respectively
Destination is to the fore-and-aft distance of the predetermined point, the step of determining the latitude of each destination, including:
For each destination, when the definite destination is below the predetermined point, and when the latitude of the predetermined point is north latitude
When, judge whether D1 is not less than 0, wherein, D1=D0-y*y0, the D0 are the latitude value of the predetermined point, and the y is the destination
To the fore-and-aft distance of the predetermined point, the y0 is the corresponding unit latitude of the unit fore-and-aft distance;
If it is, the latitude for determining the destination is north latitude D1;
If it is not, then the latitude for determining the destination is south latitude | D1 |;
When the definite destination is below the predetermined point, and when the latitude of the predetermined point is south latitude, the destination is determined
Latitude be south latitude D2, wherein, D2=D0+y*y0.
Optionally, the longitude according to the predetermined point, the corresponding unit longitude of the unit lateral separation, and respectively
Destination is to the lateral separation of the predetermined point, the step of determining the longitude of each destination, including:
For each destination, when the definite destination is on the right side of the predetermined point, and when the longitude of the predetermined point is east longitude
When, judge whether E1 is not more than 180 degree, wherein, E1=E0+x*x0, the E0 are the longitude of the predetermined point, and the x is should
For destination to the lateral separation of the predetermined point, the x0 is the corresponding unit longitude of the unit lateral separation;
If it is, the longitude for determining the destination is east longitude E1;
If it is not, then the longitude for determining the destination is west longitude E2, wherein, E2=360 degree-E0-x*x0;
When the definite destination is on the right side of the predetermined point, and when the longitude of the predetermined point is west longitude, whether E3 is judged
Not less than 0, wherein, E3=E0-x*x0, the E0 are the longitude of the predetermined point, and the x is the destination to the predetermined point
Lateral separation, the x0 is the corresponding unit longitude of the unit lateral separation;
If it is, the longitude for determining the destination is west longitude E3;
If it is not, then the longitude for determining the destination is east longitude | E3 |.
Optionally, the positional information further includes:Flying height;The step of positional information of each destination of acquisition, bag
Include:
Receive flying height of the user for each destination input.
In order to achieve the above object, disclosed herein as well is a kind of course data determining device, described device to include:
Curve receiving module, the aim curve of target map region input is directed to for receiving user;
Destination determining module, it is described for according to predetermined selection rule, determining the destination that the aim curve includes
Destination includes at least the beginning and end of the aim curve;
Information acquisition module, for obtaining the positional information of each destination;
Data determining module, for the positional information according to each destination, and each destination is on the aim curve
Order, determine course data corresponding with the aim curve.
Optionally, the destination determining module, including:
Submodule is built, for connecting the beginning and end of the aim curve, builds target line;
Whether judging submodule, the distance for judging all the points on the aim curve to the target line are small
In default distance threshold;
Determination sub-module, for when the judging submodule judging result for be when, by the starting point of the aim curve
It is determined as destination with terminal;
Update submodule, for when the judging submodule judging result for it is no when, by the aim curve with institute
The point for stating target line spacing maximum is determined as cut-point, and according to the cut-point, the aim curve is divided at least two
At least two strip curves are updated to aim curve by strip curve respectively, and trigger the structure submodule.
Optionally, the positional information of each destination includes at least:Longitude and latitude;Described information obtains module, including:
Acquisition submodule, for obtaining the longitude and latitude of predetermined point in the target map region, obtains the target
The corresponding unit latitude of unit fore-and-aft distance in map area, and the corresponding unit longitude of unit lateral separation;
Apart from determination sub-module, for determining each destination to the fore-and-aft distance and lateral separation of the predetermined point;
Latitude determination sub-module, for the latitude according to the predetermined point, the corresponding unit latitude of the unit fore-and-aft distance
Degree, and each destination determine the latitude of each destination to the fore-and-aft distance of the predetermined point;
Longitude determination sub-module, for the longitude according to the predetermined point, the corresponding unit warp of the unit lateral separation
Degree, and each destination determine the longitude of each destination to the lateral separation of the predetermined point.
Optionally, the latitude determination sub-module, including:
First judging unit, for for each destination, when the definite destination is below the predetermined point, and when described pre-
When the latitude of fixed point is north latitude, judge whether D1 is not less than 0, wherein, D1=D0-y*y0, the D0 are the latitude of the predetermined point
Value, the y for the destination to the fore-and-aft distance of the predetermined point, the y0 is the corresponding unit latitude of the unit fore-and-aft distance
Degree;
First determination unit, for when the judging result of first judging unit is is, determining the latitude of the destination
For north latitude D1;
Second determination unit, for when the judging result of first judging unit is no, determining the latitude of the destination
For south latitude | D1 |;
3rd determination unit, the destination is determined below the predetermined point for working as, and when the latitude of the predetermined point is
During south latitude, the latitude for determining the destination is south latitude D2, wherein, D2=D0+y*y0.
Optionally, the longitude determination sub-module, including:
Second judging unit, for for each destination, when the definite destination is on the right side of the predetermined point, and when described pre-
When the longitude of fixed point is east longitude, judge whether E1 is not more than 180 degree, wherein, E1=E0+x*x0, the E0 are the predetermined point
Longitude, the x for the destination to the lateral separation of the predetermined point, the x0 is the corresponding unit of the unit lateral separation
Longitude;
4th determination unit, for when the judging result of second judging unit is is, determining the longitude of the destination
For east longitude E1;
5th determination unit, for when the judging result of first judging unit is no, determining the longitude of the destination
For west longitude E2, wherein, E2=360 degree-E0-x*x0;
3rd judging unit, the destination is determined on the right side of the predetermined point for working as, and when the longitude of the predetermined point is
During west longitude, judge whether E3 is not less than 0, wherein, E3=E0-x*x0, the E0 are the longitude of the predetermined point, and the x is should
For destination to the lateral separation of the predetermined point, the x0 is the corresponding unit longitude of the unit lateral separation;
6th determination unit, for when E3 is not less than 0, the longitude for determining the destination to be west longitude E3;
7th determination unit, for when E3 is less than 0, the longitude for determining the destination to be east longitude | E3 |.
Optionally, the positional information further includes:Flying height;Described information obtains module, is specifically used for:
Receive flying height of the user for each destination input.
As seen from the above technical solution, in the embodiment of the present application, can be inputted according to user for target map region
Aim curve, and default selection rule, determine the destination that aim curve includes, then according to the position of each destination of acquisition
Confidence ceases, and order of each destination on aim curve, determines course data corresponding with aim curve.And the prior art
In, it is necessary to user according to oneself desired course line, the destination in input target map region, and then according to destination input by user
Determine course data.When the desired course line of user is curve, it is necessarily required to user and inputs a large amount of destinations, this mode operates numerous
Trivial, user experience is not high.Using the technical solution described in the embodiment of the present application, destination is inputted without user, use can be simplified
Family operates, and improves user experience.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete
Whole description.Obviously, described embodiment is only the part of the embodiment of the application, instead of all the embodiments.Base
Embodiment in the application, those of ordinary skill in the art are obtained all on the premise of creative work is not made
Other embodiment, shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of course data and determines method and device, can simplify user's operation, improves and uses
Family Experience Degree.This application can be applied to electronic equipment, which can be smart mobile phone, tablet computer, notebook electricity
The equipment such as brain, desktop computer.
Below by specific embodiment, the application is described in detail.
Fig. 1 determines method for course data provided by the embodiments of the present application, and this method comprises the following steps:
Step S101:Receive the aim curve that user is directed to the input of target map region.
Specifically, before step S101 is performed, the electronic equipment as executive agent can be established with aviation aircraft
Communication connection.Then, electronic equipment can receive the current location of aviation aircraft transmission, and according to the current location, determine
Target map region.Specifically, the preset range region centered on current location can be determined as by mesh according to current location
Mark map area;Wherein, the area that the map scaling ruler rank that preset range region can include selecting according to user determines
Domain.Certainly, determine that target map region can also include the other embodiment in addition to the above embodiment, the present embodiment pair
This is not specifically limited.
After definite target map region, electronic equipment can show the target map region.Also, electronic equipment is also
Prompt message can be exported to user, prompt user to input course line.Specifically, when the screen non-touch screen of electronic equipment, use
Family can pass through mouse setting-out on the screen;When the screen of electronic equipment is touch-screen, user can be on the screen using tactile
The mode setting-out touched.
As a kind of specific embodiment, the electronic equipment as executive agent receives user and is directed to target map region
During the aim curve of input, it can include:At least one the first curves of the user for the input of target map region are received, according to
First curve, determines aim curve.Specifically, when the first curve that user inputs for target map region is at least two
When, according to first curve, when determining aim curve, can include:Each first curve is sequentially connected, obtains target song
Line.It should be noted that aim curve can be curve or straight line.
In addition, the map area shown in terminal screen be usually according to up north and down south, left west and right east rule explicitly
Figure.In description below, unless there is specified otherwise, the orientation of map is otherwise shown according to above-mentioned rule without exception.
Fig. 2 is the aim curve schematic diagram that the user that receives of electronic equipment is directed to the input of target map region, in the figure
Window area is target map region, and S types curve 201 in this region is aim curve.
Step S102:According to predetermined selection rule, the destination that aim curve includes is determined, the destination includes at least
The beginning and end of the aim curve.
It should be noted that in order to reduce data volume, blocking communication link is avoided, in the present embodiment according to predetermined choosing
Rule is taken, determines the destination that aim curve includes.
As a kind of embodiment, when determining the destination that aim curve includes, aim curve can include determining that
The positional information of the destination included.Wherein, which can be coordinate or pixel quantity.
For example, the point that can take the target map region upper left corner is predetermined origin, X-axis is established in transverse direction, vertically
Y-axis is established in direction, so can be according to the transverse and longitudinal coordinate of each destination in target map region(X, Y)Determine the destination.Equally
, the point for taking the target map region upper left corner is pixel quantity zero point, for the destination A in target map region, it may be determined that A
The pixel quantity N being spaced in the horizontal with pixel quantity zero point, and the pixel quantity M being longitudinally spaced, it is true according to M and N
Determine the positional information of destination.
Specifically, step S102 can include numerous embodiments in the present embodiment.According to default selection rule, determine
The destination that aim curve includes can include:According to predetermined interval distance threshold, using etc. by the way of length of curve spacing, really
The destination that the fixed aim curve includes.That is, the length of curve between definite each destination is in this way
Identical.
As another embodiment, according to default selection rule, the destination that aim curve includes is determined, can
With including:Obtain at least one radius of curvature of aim curve;According to default range of curvature radius, aim curve is segmented;
For the aim curve after segmentation, the mean radius of curvature of every section of aim curve is determined;According to default mean radius of curvature with
The correspondence of destination quantity, determines the destination quantity of every section of aim curve;The rule being evenly distributed according to destination, determines every section
The destination quantity destination on aim curve.
Certainly, step S102 can also include other embodiment, and the present embodiment does not limit embodiment.
Fig. 3 is one group of destination schematic diagram that the aim curve according to Fig. 2 determines, 30 boats are included on the aim curve
Point, including the beginning and end of aim curve.
Step S103:Obtain the positional information of each destination.
Wherein, the positional information of each destination can include the information such as longitude, latitude, height.
In a kind of embodiment, when the positional information of each destination includes at least longitude and latitude, step S103,
The positional information of each destination is obtained, can carry out, specifically include according to flow diagram shown in Fig. 4:
Step S103A:The longitude and latitude of predetermined point in target map region are obtained, obtains unit in target map region
The corresponding unit latitude of fore-and-aft distance, and the corresponding unit longitude of unit lateral separation.
Specifically, in target map region the longitude of predetermined point and the corresponding unit latitude of latitude, unit fore-and-aft distance with
And the corresponding unit longitude of unit lateral separation, it can be obtained from the corresponding map kit in target map region,
It can be obtained from the corresponding server in target map region.Wherein, map kit can be by map application
The map redevelopment instrument of offer.
That is, predetermined point can be the point that map application provides or application program carries according to the map
The point that the point of confession determines.
In addition, the predetermined point in target map region can be positioned at the target map region upper left corner, the upper right corner, the lower left corner
Or the point in the lower right corner.When predetermined point is located at these above-mentioned specific positions, when calculating the positional information of each destination, can improve
Calculating speed.
It is understood that when the terminal screen show map regional change of user, the longitude and latitude of predetermined point
It is to become therewith, but the position of predetermined point relative screen can be fixed.
Step S103B:Determine each destination to the fore-and-aft distance and lateral separation of predetermined point.
Wherein, fore-and-aft distance and lateral separation can be the distance between coordinate or be represented with pixel quantity
Distance.
Step S103C:According to the latitude of predetermined point, the corresponding unit latitude of unit fore-and-aft distance, and each destination is in advance
The fore-and-aft distance of fixed point, determines the latitude of each destination.
Wherein, the division rule of latitude is on the earth:It is to the south since the equator, be northwards respectively divided into 90 degree, it is to the south for south
Latitude, is northwards north latitude.Fig. 5 a are a kind of schematic diagram of Latitude Distribution on the earth, and arctic point, Geophysical South Pole and red are depicted in figure
Weft at road, two wefts in the Northern Hemisphere, two wefts in the Southern Hemisphere.Also, the latitude at equator is 0 degree, arctic point
Latitude is 90 degree of north latitude, and the latitude of Geophysical South Pole is 90 degree of south latitude.
Predetermined point can be any one point in target map region.In this way, destination is possible to above predetermined point,
It is also possible to below predetermined point.It is alternatively possible to by predetermined point determine the upper left corner, the upper right corner, the lower left corner or the lower right corner this
A little positions, in this way, all destinations in target map region all can be in the same direction of predetermined point.In the latitude according to predetermined point
Degree, the corresponding unit latitude of unit fore-and-aft distance, and each destination determine the latitude of each destination to the fore-and-aft distance of predetermined point
When, calculating speed can be improved.
In a kind of embodiment, for each destination, when the definite destination is below predetermined point, step S103C,
According to the latitude of predetermined point, the corresponding unit latitude of unit fore-and-aft distance, and each destination are determined to the fore-and-aft distance of predetermined point
The latitude of each destination, can include:
For each destination, when the definite destination is below predetermined point, and when the latitude of predetermined point is north latitude, D1 is judged
Whether 0 is not less than, wherein, D1=D0-y*y0, D0 are the latitude value of predetermined point, and y is the destination to the fore-and-aft distance of predetermined point, y0
For the corresponding unit latitude of unit fore-and-aft distance;
If it is, the latitude for determining the destination is north latitude D1;
If it is not, then the latitude for determining the destination is south latitude | D1 |, wherein, | | it is absolute value sign.
For each destination, when the definite destination is below predetermined point, and when the latitude of the predetermined point is south latitude, really
The latitude of the fixed destination is south latitude D2, wherein, D2=D0+y*y0.
For example, the point O in the upper left corner is predetermined point in target map region, its latitude D0 is 60 degree of north latitude, target map area
The corresponding unit latitude y0 of unit fore-and-aft distance is 2 degree in domain, and destination A arrives the fore-and-aft distance of predetermined point O below predetermined point
Y is 15, then understands D1=D0-y*y0=60 degree -15*2 degree=30 degree>0, the latitude for determining destination A is 30 degree of north latitude.
And for example, the point O in the upper left corner is predetermined point in target map region, its latitude D0 is 20 degree of north latitude, target map area
The corresponding unit latitude y0 of unit fore-and-aft distance is 2 degree in domain, and destination A arrives the fore-and-aft distance of predetermined point O below predetermined point
Y is 15, then understands that D1=D0-y*y0=20 degree -15*2 degree=- 10 are spent<0, the latitude for determining destination A is south latitude | -10 | degree, i.e., and it is southern
10 degree of latitude.
For another example, the point O in the upper left corner is predetermined point in target map region, its latitude D0 is 20 degree of south latitude, target map area
The corresponding unit latitude y0 of unit fore-and-aft distance is 2 degree in domain, and destination A arrives the fore-and-aft distance of predetermined point O below predetermined point
Y is 15, then understands D2=D0+y*y0=20 degree+15*2 degree=50 degree, the latitude for determining destination A is 50 degree of south latitude.
As a kind of embodiment, for each destination, when the definite destination is above predetermined point, step
S103C, according to the latitude of predetermined point, the corresponding unit latitude of unit fore-and-aft distance, and each destination to predetermined point longitudinal direction away from
From determining the latitude of each destination, can include:
For each destination, when the definite destination is above predetermined point, and when the latitude of predetermined point is south latitude, D3 is judged
Whether 0 is not less than, wherein, D3=D0-y*y0, D0 are the latitude value of predetermined point, and y is the destination to the fore-and-aft distance of predetermined point, y0
For the corresponding unit latitude of unit fore-and-aft distance;
If it is, the latitude for determining the destination is south latitude D3;
If it is not, then the latitude for determining the destination is north latitude | D3 |.
For each destination, when the definite destination is above the predetermined point, and when the latitude of the predetermined point is north latitude
When, the latitude for determining the destination is north latitude D4, wherein, D4=D0+y*y0.
For example, the point O in the lower right corner is predetermined point in target map region, its latitude D0 is 60 degree of south latitude, target map area
The corresponding unit latitude y0 of unit fore-and-aft distance is 2 degree in domain, and destination A arrives the fore-and-aft distance of predetermined point O above predetermined point
Y is 15, then understands D3=D0-y*y0=60 degree -15*2 degree=30 degree>0, the latitude for determining destination A is 30 degree of south latitude.
And for example, the point O in the upper right corner is predetermined point in target map region, its latitude D0 is 20 degree of south latitude, target map area
The corresponding unit latitude y0 of unit fore-and-aft distance is 2 degree in domain, and destination A arrives the fore-and-aft distance of predetermined point O above predetermined point
Y is 15, then understands that D3=D0-y*y0=20 degree -15*2 degree=- 10 are spent<0, the latitude for determining destination A is north latitude | -10 | degree, i.e., and it is northern
10 degree of latitude.
For another example, the point O in the lower right corner is predetermined point in target map region, its latitude D0 is 20 degree of north latitude, target map area
The corresponding unit latitude y0 of unit fore-and-aft distance is 2 degree in domain, and destination A arrives the fore-and-aft distance of predetermined point O above predetermined point
Y is 15, then understands D4=D0+y*y0=20 degree+15*2 degree=50 degree, the latitude for determining destination A is 50 degree of north latitude.
Step S103D:According to the longitude of predetermined point, the corresponding unit longitude of unit lateral separation, and each destination is in advance
The lateral separation of fixed point, determines the longitude of each destination.
Wherein, the division rule of longitude is on the earth:Since the first meridian eastwards, westwards each division 180 degree, eastwards
It is westwards west longitude degree for east longitude degree.Fig. 5 b are a kind of schematic diagram of longitude distribution on the earth, at the beginning of arctic point, sheet are depicted in figure
Meridian and two east longitude lines and two west longitude lines.Also, figure acceptance of the bid is shown using the first meridian as line of demarcation, on the earth
East longitude regional extent and west longitude regional extent.
Predetermined point can be any one point in target map region.In this way, destination is possible on the left of predetermined point,
It is also possible on the right side of predetermined point.It is alternatively possible to by predetermined point determine the upper left corner, the upper right corner, the lower left corner or the lower right corner this
A little positions, in this way, all destinations in target map region all can be in the same direction of predetermined point.In the warp according to predetermined point
Degree, the corresponding unit longitude of unit lateral separation, and each destination determine the longitude of each destination to the lateral separation of predetermined point
When, calculating speed can be improved.
In a kind of embodiment, for each destination, when the definite destination is on the right side of predetermined point, step
S103D, according to the longitude of predetermined point, the corresponding unit longitude of unit lateral separation, and each destination to predetermined point laterally away from
From determining the longitude of each destination, can include:
For each destination, when the definite destination is on the right side of predetermined point, and when the longitude of predetermined point is east longitude, E1 is judged
Whether be not more than 180 degree, wherein, E1=E0+x*x0, E0 be predetermined point longitude, x be the destination to predetermined point transverse direction away from
From x0 is the corresponding unit longitude of unit lateral separation;
If it is, the longitude for determining the destination is east longitude E1;
If it is not, then the longitude for determining the destination is west longitude E2, wherein, E2=360 degree-E0-x*x0.
For example, the point O in the upper left corner is predetermined point in target map region, its longitude E0 is 60 degree of east longitude, target map area
The corresponding unit longitude x0 of unit lateral separation is 2 degree in domain, and destination A arrives the lateral separation of predetermined point O on the right side of predetermined point
X is 15, then understands E1=E0+x*x0=60 degree+15*2 degree=90 degree<180 degree, the longitude for determining destination A are 90 degree of east longitude.
And for example, the point O in the upper left corner is predetermined point in target map region, its longitude E0 is 170 degree of east longitude, target map area
The corresponding unit longitude x0 of unit lateral separation is 2 degree in domain, and destination A arrives the lateral separation of predetermined point O on the right side of predetermined point
X is 15, then understands E1=E0+x*x0=170 degree+15*2 degree=200 degree>180 degree, the longitude for determining destination A are:West longitude E2=360
- 170 degree -15*2 degree=160 degree of degree-E0-x*x0=360 degree, i.e. 160 degree of west longitude.
For each destination, when the definite destination is on the right side of predetermined point, and when the longitude of predetermined point is west longitude, E3 is judged
Whether 0 is not less than, wherein, E3=E0-x*x0, E0 are the longitude of predetermined point, and x is the destination to the lateral separation of predetermined point, x0
For the corresponding unit longitude of unit lateral separation;
If it is, the longitude for determining the destination is west longitude E3;
If it is not, then the longitude for determining the destination is east longitude | E3 |.
For example, the point O in the upper left corner is predetermined point in target map region, its longitude E0 is 60 degree of west longitude, target map area
The corresponding unit longitude x0 of unit lateral separation is 2 degree in domain, and destination A arrives the lateral separation of predetermined point O on the right side of predetermined point
X is 15, then understands E3=E0-x*x0=60 degree -15*2 degree=30 degree>0, the longitude for determining destination A is 30 degree of west longitude.
And for example, the point O in the upper left corner is predetermined point in target map region, its longitude E0 is 10 degree of west longitude, target map area
The corresponding unit longitude x0 of unit lateral separation is 2 degree in domain, and destination A arrives the lateral separation of predetermined point O on the right side of predetermined point
X is 15, then understands that E3=E0-x*x0=10 degree -15*2 degree=- 20 are spent<0, the longitude for determining destination A is:East longitude | E3 |=| E0-x*
X0 |=| 10 degree of -15*2 degree |=| -20 degree |, i.e. 20 degree of east longitude.
In a kind of embodiment, for each destination, when the definite destination is on the left of predetermined point, step
S103D, according to the longitude of predetermined point, the corresponding unit longitude of unit lateral separation, and each destination to predetermined point laterally away from
From determining the longitude of each destination, can include:
For each destination, when the definite destination is on the left of predetermined point, and when the longitude of predetermined point is west longitude, E4 is judged
Whether be not more than 180 degree, wherein, E4=E0+x*x0, E0 be predetermined point longitude, x be the destination to predetermined point transverse direction away from
From x0 is the corresponding unit longitude of unit lateral separation;
If it is, the longitude for determining the destination is west longitude E4;
If it is not, then the longitude for determining the destination is east longitude E5, wherein, E5=360 degree-E0-x*x0.
For example, the point O in the lower right corner is predetermined point in target map region, its longitude E0 is 60 degree of west longitude, target map area
The corresponding unit longitude x0 of unit lateral separation is 2 degree in domain, and destination A arrives the lateral separation of predetermined point O on the left of predetermined point
X is 15, then understands E4=E0+x*x0=60 degree+15*2 degree=90 degree<180 degree, the longitude for determining destination A are 90 degree of west longitude.
And for example, the point O in the lower right corner is predetermined point in target map region, its longitude E0 is 170 degree of west longitude, target map area
The corresponding unit longitude x0 of unit lateral separation is 2 degree in domain, and destination A arrives the lateral separation of predetermined point O on the left of predetermined point
X is 15, then understands E4=E0+x*x0=170 degree+15*2 degree=200 degree>180 degree, the longitude for determining destination A are:East longitude E5=360
- 170 degree -15*2 degree=160 degree of degree-E0-x*x0=360 degree, i.e. 160 degree of east longitude.
For each destination, when the definite destination is on the left of predetermined point, and when the longitude of predetermined point is east longitude, E6 is judged
Whether 0 is not less than, wherein, E6=E0-x*x0, E0 are the longitude of predetermined point, and x is the destination to the lateral separation of predetermined point, x0
For the corresponding unit longitude of unit lateral separation;
If it is, the longitude for determining the destination is east longitude E6;
If it is not, then the longitude for determining the destination is west longitude | E6 |.
For example, the point O in the lower right corner is predetermined point in target map region, its longitude E0 is 60 degree of east longitude, target map area
The corresponding unit longitude x0 of unit lateral separation is 2 degree in domain, and destination A arrives the lateral separation of predetermined point O on the left of predetermined point
X is 15, then understands E6=E0-x*x0=60 degree -15*2 degree=30 degree>0, the longitude for determining destination A is 30 degree of east longitude.
And for example, the point O in the lower right corner is predetermined point in target map region, its longitude E0 is 10 degree of east longitude, target map area
The corresponding unit longitude x0 of unit lateral separation is 2 degree in domain, and destination A arrives the lateral separation of predetermined point O on the left of predetermined point
X is 15, then understands that E6=E0-x*x0=10 degree -15*2 degree=- 20 are spent<0, the longitude for determining destination A is:West longitude | E6 |=| E0-x*
X0 |=| 10 degree of -15*2 degree |=| -20 degree |, i.e. 20 degree of west longitude.
In a kind of embodiment, the positional information can also include:Flying height.Step S103, obtains each
The positional information of destination, can include:Receive the flying height that user is directed to the input of each destination.
Specifically, the electronic equipment as executive agent can export prompt message to user, user is prompted to be directed to each boat
Point inputs corresponding flying height numerical value, and then electronic equipment receives above-mentioned flying height.
It should be noted that user, which can be directed to each destination, sets identical flying height, can also set different
Flying height.
Step S104:According to the positional information of each destination, and order of each destination on aim curve, determine with
The corresponding course data of aim curve.
Specifically, each destination is directed to, can basis after the latitude, longitude and flying height of each destination is determined
Order of the destination on aim curve, the course data using above-mentioned longitude, latitude, flying height and order as the destination,
Then the course data of all destinations on aim curve is determined as the corresponding course data of aim curve.
Wherein, order of each destination on aim curve refers to that each destination is between the beginning and end of aim curve
Tandem.Receive user for target map region input aim curve when, it may be determined that the starting point of aim curve and
The tandem of each point between terminal, and beginning and end.Each destination is the point on aim curve, therefore, can be with
According to the order of each point on aim curve, order of each destination on aim curve is obtained.
In a kind of embodiment, after course data corresponding with aim curve is determined, this method can be with
Including:The course data is sent to flight control system, so that flight control system responds the course data.Flight control system
Respond the course data, you can to control aviation aircraft flight according to course data including flight control system.
When sending course data to flight control system, the corresponding flying quality of each destination can be existed by each destination
Order on aim curve is transmitted successively, can also send the flying quality of all destinations on aim curve at the same time.
The present embodiment is not specifically limited this.
As shown in the above, in the present embodiment, the aim curve of target map region input is directed to according to user, and
Default selection rule, determines the destination that aim curve includes, then according to the positional information of each destination of acquisition, and respectively
Order of the destination on aim curve, determines course data corresponding with aim curve.And in the prior art, it is necessary to user according to
Oneself desired course line, inputs the destination in target map region, and then determines course data according to destination input by user.When
When the desired course line of user is curve, it is necessarily required to user and inputs a large amount of destinations, this mode is cumbersome, and user experience is not
It is high.Using the technical solution described in the present embodiment, destination is inputted without user, user's operation can be simplified, improves user experience
Degree.
Compared with conventional each method for receiving user and adding a destination and definite course data, user's addition is received
Aim curve and determine course data method be more convenient, fast, user experience is more preferable, is also easier to realize that user is desired
Course line.
In addition, in the embodiment shown in fig. 1, step S102, according to predetermined selection rule, determines to wrap in aim curve
During the destination included, in order to reduce data volume, blocking communication link is avoided, the application can follow following principle:
First, the broken line that the destination determined sequentially is linked to be will be consistent with virgin curve as far as possible;
Second, to reduce the quantity of destination as far as possible, amount of communication data is reduced.
Due to being conflicting between mentioned above principle, the application can be directed to step S102 and provide one kind specifically for this
Embodiment.
In another specific embodiment herein, embodiment illustrated in fig. 1 can be improved.Specifically, Fig. 1 institutes
Show the step S102 in embodiment, i.e., according to predetermined selection rule, determine the destination that aim curve includes, can be according to figure
Flow diagram shown in 6 carries out, and specifically includes:
Step S102A:The beginning and end of linking objective curve, builds target line.
Step S102B:Judge whether the distance of all the points to the target line on the aim curve is respectively less than in advance
If distance threshold, if it is, performing step S102C;If it is not, then perform step S102D.
Wherein, distance threshold is pre-set.The distance threshold can be default value or user sets in advance
The numerical value put.Also, during the use of user, can also according to oneself need change the distance threshold.It is used as and holds
The electronic equipment of row main body can receive distance threshold input by user and record.
It should be noted that above-mentioned distance threshold can represent close between the course line that aim curve and each destination are formed
Degree.Distance threshold is smaller, and the destination determined from aim curve is more, and corresponding obtained course line is closer to aim curve;Away from
Bigger from threshold value, the destination determined from aim curve is fewer, and the gap of corresponding obtained course line and aim curve is bigger.Together
When, destination is fewer, and the traffic of electronic equipment and flight control system is also smaller, so as to avoid blocking communication chain as far as possible
Road.
Step S102C:The beginning and end of the aim curve is determined as destination.
Step S102D:Point on the aim curve with target line spacing maximum is determined as cut-point, according to
The cut-point, at least two strip curves are divided into by the aim curve, are respectively updated at least two strip curves
Aim curve, returns and performs step S102A.
For example, for aim curve S, beginning and end is drawn a straight line L, if other each points are straight to this on curve
The distance of line L is respectively less than distance threshold X set in advance, then can replace this curve S with this straight line L is approximate.It is if discontented
Foot, then find out away from the point that this straight line L distances are maximum on curve S, and as separation, it is two sections of curves that curve S, which is divided to,
S1 and S2.
Then, the above method then to this two curves S1 and S2 is repeated, until the curve S most started is divided into some
Section S1, S2 ..., Sn, every section can meet the following conditions:The straight line being linked to be with every section of beginning and end replaces the song of itself
Line.And the destination that the beginning and end of these sectional curves, which is exactly the present embodiment, to be determined.The beginning and end of curve S1 to Sn
Broken line connected in sequence approximate can replace curve S.Mathematics here it is step S102A~step S102D in the present embodiment is former
Reason.
Wherein, for sake of clarity, the point on aim curve with target line spacing maximum is known as at first point.
When there was only one at first point, aim curve can be divided into two strip curves using this first point as cut-point.
When there are when two or more, when being divided to aim curve, a variety of implementations can be included at first point
Mode:
First, according to preset rules, a cut-point is determined from each first point, it is according to the cut-point, target is bent
Line is divided into two strip curves.Specifically, according to preset rules, a cut-point is determined from each first point, can be included:
According to each first point of order on aim curve, the point of order closest to starting point in each first point is determined as splitting
Point, or according to each first point of order on aim curve, the point of order closest to terminal in each first point is determined
For cut-point.
It is another to be, respectively using each first point as cut-point, aim curve is divided at least three strip curves.For example,
When first point of quantity is 2, aim curve is divided into 3 strip curves, when first point of quantity is 3, by aim curve
It is divided into 4 strip curves.
As an example, Fig. 7 is another group of destination schematic diagram that the aim curve according to Fig. 2 determines, with Fig. 3 phases
Than having selected larger distance threshold in Fig. 7, corresponding, the quantity for the destination that definite aim curve includes tails off.
Specifically, the algorithm realization of the above process is as follows:
{
Function Simplify:
Input:The array PointList being made of the point on aim curve on screen, sets distance threshold X
ResultList:The array of point composition after screening, function output
Size:The length of PointList
Line:The origin-to-destination line of curve
Index←0:The sequence number of the point of the distance maximum of Line is arrived on curve
DistanceMax←0:Point has arrived the ultimate range of Line on curve
For i←0to Size-1
The distance of Line is arrived in Do dis ← i-th point
If dis are more than DistanceMax then Index ← i, DistanceMax ← dis
If DistanceMax are less than X and the 0th on PointList and last point then are added to ResultList
Otherwise the point of the 0th to Index of PointList is formed PointListA, I ndex to Size-1 composition
PointListB
PointListA and PointListB and X difference input function Simplify, obtain output ResultListA and
ResultListB
ResultListA is deleted into last point
ResultListA, ResultListB are all added to ResultList
Output:ResultList
}
In conclusion in the present embodiment, the destination that aim curve includes is determined by the above method, boat can be improved
Line number is according to the degree of closeness with the desired course line of user.Meanwhile the setting of distance threshold can balance, coordinate destination data volume with
Contradiction between the levels of precision of course line, makes definite course data disclosure satisfy that the demand of user, improves user experience.
Fig. 8 show a kind of structure diagram of course data determining device provided by the embodiments of the present application, shown in Fig. 1
Embodiment of the method is corresponding, and described device includes:
Curve receiving module 810, the aim curve of target map region input is directed to for receiving user;
Destination determining module 820, for according to predetermined selection rule, determining the destination that the aim curve includes,
The destination includes at least the beginning and end of the aim curve;
Information acquisition module 830, for obtaining the positional information of each destination;
Data determining module 840, for the positional information according to each destination, and each destination is in the aim curve
On order, determine course data corresponding with the aim curve.
As shown in the above, in the present embodiment, the aim curve of target map region input is directed to according to user, and
Default selection rule, determines the destination that aim curve includes, then according to the positional information of each destination of acquisition, and respectively
Order of the destination on aim curve, determines course data corresponding with aim curve.And in the prior art, it is necessary to user according to
Oneself desired course line, inputs the destination in target map region, and then determines course data according to destination input by user.When
When the desired course line of user is curve, it is necessarily required to user and inputs a large amount of destinations, this mode is cumbersome, and user experience is not
It is high.Using the technical solution described in the present embodiment, destination is inputted without user, user's operation can be simplified, improves user experience
Degree.
As a kind of embodiment, in the embodiment shown in fig. 8, the positional information can also include:Flight is high
Degree;Described information obtains module 830, specifically can be used for:
Receive flying height of the user for each destination input.
In another embodiment of the application, on the basis of embodiment illustrated in fig. 8, destination determining module 820, can include
With lower module, these modules can be as shown in Figure 9:
Submodule 821 is built, for connecting the beginning and end of the aim curve, builds target line;
Judging submodule 822, for judge all the points on the aim curve to the target line distance whether
Respectively less than default distance threshold;
Determination sub-module 823, for when the judging submodule 822 judging result for be when, by the aim curve
Beginning and end be determined as destination;
Update submodule 824, for when the judging submodule 822 judging result for it is no when, by the aim curve
The upper point with target line spacing maximum is determined as cut-point, and according to the cut-point, the aim curve is divided into
At least two strip curves are updated to aim curve by least two strip curves respectively, and trigger the structure submodule
821。
In a kind of embodiment, on the basis of embodiment illustrated in fig. 8, the positional information of each destination is at least
Including:Longitude and latitude;Described information obtains module 830, can include following module, these modules can be as shown in Figure 9:
Acquisition submodule 831, for obtaining the longitude and latitude of predetermined point in the target map region, obtains the mesh
Mark the corresponding unit latitude of unit fore-and-aft distance in map area, and the corresponding unit longitude of unit lateral separation;
Apart from determination sub-module 832, for determining each destination to the fore-and-aft distance and lateral separation of the predetermined point;
Latitude determination sub-module 833, for the latitude according to the predetermined point, the corresponding unit of the unit fore-and-aft distance
Latitude, and each destination determine the latitude of each destination to the fore-and-aft distance of the predetermined point;
Longitude determination sub-module 834, for the longitude according to the predetermined point, the corresponding unit of the unit lateral separation
Longitude, and each destination determine the longitude of each destination to the lateral separation of the predetermined point.
As a kind of embodiment, on the basis of embodiment illustrated in fig. 9, the latitude determination sub-module 833 can
With as shown in Figure 10, including with lower unit:
First judging unit 833A, for for each destination, when the definite destination is below the predetermined point, and works as institute
When the latitude for stating predetermined point is north latitude, judge whether D1 is not less than 0, wherein, D1=D0-y*y0, the D0 are the predetermined point
Latitude value, the y for the destination to the fore-and-aft distance of the predetermined point, the y0 is the corresponding unit of the unit fore-and-aft distance
Latitude;
First determination unit 833B, the judging result for the first judging unit 833A are that the latitude of the destination is determined when being
Spend for north latitude D1;
Second determination unit 833C, when the judging result for the first judging unit 833A is no, determines the latitude of the destination
Spend for south latitude | D1 |;
3rd determination unit 833D, the destination is determined below the predetermined point for working as, and when the latitude of the predetermined point
Spend for south latitude when, the latitude for determining the destination is south latitude D2, wherein, D2=D0+y*y0.
As a kind of embodiment, on the basis of embodiment illustrated in fig. 9, the longitude determination sub-module 834 can
With as shown in Figure 10, including with lower unit:
Second judging unit 834A, for for each destination, when the definite destination is on the right side of the predetermined point, and works as institute
When the longitude for stating predetermined point is east longitude, judge whether E1 is not more than 180 degree, wherein, E1=E0+x*x0, the E0 are described predetermined
The longitude of point, the x are lateral separation of the destination to the predetermined point, and the x0 is corresponding for the unit lateral separation
Unit longitude;
4th determination unit 834B, for when the judging result of the second judging unit 834A is is, determining the destination
Longitude is east longitude E1;
5th determination unit 834C, for when the judging result of the second judging unit 834A is no, determining the destination
Longitude is west longitude E2, wherein, E2=360 degree-E0-x*x0;
3rd judging unit 834D, for for each destination, when the definite destination is on the right side of the predetermined point, and works as institute
When the longitude for stating predetermined point is west longitude, judge whether E3 is not less than 0, wherein, E3=E0-x*x0, the E0 are the predetermined point
Longitude, the x for the destination to the lateral separation of the predetermined point, the x0 is the corresponding unit of the unit lateral separation
Longitude;
6th determination unit 834E, for when E3 is not less than 0, the longitude for determining the destination to be west longitude E3;
7th determination unit 834F, for when E3 is less than 0, the longitude for determining the destination to be east longitude | E3 |.
Since above device embodiment is obtained based on embodiment of the method, there is identical technique effect with this method,
Therefore details are not described herein for the technique effect of device embodiment.
For device embodiment, since it is substantially similar to embodiment of the method, so describe fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements,
But also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment
Some key elements.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including
Also there are other identical element in the process of the key element, method, article or equipment.
It will appreciated by the skilled person that all or part of step in the above embodiment is can to pass through journey
Sequence instructs relevant hardware, and come what is completed, the program can be stored in computer read/write memory medium.It is designated herein
Storage medium, refers to ROM/RAM, magnetic disc, CD etc..
The foregoing is merely the preferred embodiment of the application, the protection domain of the application is not intended to limit.It is all
Any modification, equivalent substitution, improvement and etc. done within spirit herein and principle, are all contained in the protection domain of the application
It is interior.