A flight trajectory drawing method, electronic device and storage medium

By obtaining the longitude of the flight's departure and arrival destination, determining the flight direction, and drawing trajectory auxiliary coordinate points, the problem of difficult to intuitively display the historical flight trajectory in the existing technology is solved, and a more accurate and intuitive flight trajectory display is achieved.

CN117589173BActive Publication Date: 2025-05-09MOBILE TECH COMPANY CHINA TRAVELSKY HLDG
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311560143.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2025-05-09
Estimated Expiration
2043-11-21

AI Technical Summary

Technical Problem

The prior art is difficult to visually display the flight trajectory of historical flights, resulting in poor user experience.

Method used

By receiving the flight trajectory drawing request of the target flight, obtain the longitude of the departure and arrival places, determine the flight direction, and determine several trajectory auxiliary coordinate points based on the departure, arrival places and flight direction, and draw the flight trajectory of each target flight completed by the user.

Benefits of technology

It achieves a more accurate representation of the actual itinerary of the target flight, and displays the dynamic itinerary of each target flight through an intuitive trajectory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117589173B_ABST
    Figure CN117589173B_ABST
Patent Text Reader

Abstract

The present invention provides a flight trajectory drawing method, an electronic device, and a storage medium, which relate to the field of data processing. The method includes: obtaining the departure longitude J1 and the arrival longitude J2 corresponding to a target flight; determining the flight direction of the aircraft corresponding to the target flight; obtaining the current completion times n of the target flight corresponding to the user identifier B3; determining n trajectory auxiliary coordinate points according to the departure coordinate point Z1, the arrival coordinate point Z2, n, and the flight direction of the aircraft corresponding to the target flight; and drawing the flight trajectory of the aircraft corresponding to the m-th target flight completed by the user according to Z1, Z2, and the m-th trajectory auxiliary coordinate point. By determining the flight direction of the aircraft corresponding to the target flight, the drawn flight trajectory can accurately represent the actual itinerary of the target flight. By determining a number of trajectory auxiliary coordinate points, the drawn flight trajectory can intuitively display the dynamic itinerary of the user each time they take the target flight.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the development of society, more and more people choose airplanes as a long-distance transportation tool. After completing a flight order, users usually check historical flight orders to learn about the flight trajectories of historical flights. However, this method requires users to do the statistics themselves, and the data cannot be presented intuitively, resulting in a poor user experience. Summary of the invention

[0003] In view of the above technical problems, the technical solution adopted by the present invention is:

[0004] According to one aspect of the present application, a flight trajectory drawing method is provided, comprising the following steps:

[0005] Step S100, in response to receiving a flight trajectory drawing request of a target flight; the flight trajectory drawing request includes a user identifier B3 and a departure place identifier B1 and an arrival place identifier B2 corresponding to the target flight;

[0006] Step S200: If both B1 and B2 exist in the preset flight location identifier list, obtain the departure longitude J1 corresponding to B1 and the arrival longitude J2 corresponding to B2;

[0007] Step S300, determining the flight direction of the aircraft corresponding to the target flight according to J1 and J2;

[0008] Step S400, obtaining the current completion number n of the target flight corresponding to B3;

[0009] Step S500: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to the departure coordinate point Z1 corresponding to B1, the arrival coordinate point Z2 corresponding to B2, n and the flight direction of the aircraft corresponding to the target flight. m ,...,V n ; where m = 1, 2, ..., n; V m is the auxiliary coordinate point of the determined mth trajectory;

[0010] Step S600: According to Z1, Z2 and V m , draw the flight trajectory of the aircraft corresponding to the mth target flight completed by the user.

[0011] In an exemplary embodiment of the present application, step S300 includes:

[0012] Step S310: If J1∈[-180°, 0°] and / or J2∈[-180°, 0°], execute step S320; otherwise, execute step S330;

[0013] Step S320, if J1∈[-180°,0°], set J1=J1+360°; if J2∈[-180°,0°], set J2=J2+360°, and execute step S330;

[0014] Step S330, determining the direction longitude difference D of the aircraft corresponding to the target flight according to J1 and J2;

[0015] Step S340: If D>0°, determine that the aircraft corresponding to the target flight is flying eastward; if D<0°, determine that the aircraft corresponding to the target flight is flying westward.

[0016] In an exemplary embodiment of the present application, step S330 includes:

[0017] Step S331, if J2-J1>180°, determine the direction and longitude difference D=J2-J1-360° of the aircraft corresponding to the target flight; if J2-J1<-180°, determine the direction and longitude difference D=J2-J1+360° of the aircraft corresponding to the target flight; if -180°≤J2-J1≤180°, determine the direction and longitude difference D=J2-J1 of the aircraft corresponding to the target flight.

[0018] In an exemplary embodiment of the present application, step S500 includes:

[0019] Step S510, obtain the coordinates corresponding to Z1 (Z 11 ,Z 12 ,Z 13 ) and the coordinates corresponding to Z2 (Z 21 ,Z 22 ,Z 23 ), where Z 11 is the horizontal coordinate corresponding to Z1, Z 12 is the ordinate corresponding to Z1, Z 13 is the vertical coordinate corresponding to Z1; Z 21 is the horizontal coordinate corresponding to Z2, Z 22 is the ordinate corresponding to Z2, Z 23 is the vertical coordinate corresponding to Z2;

[0020] Step S520: determine the coordinates (Z 31 ,Z 32 ,Z 33 ), where Z 31 is the horizontal coordinate corresponding to Z3, Z 31 =(Z 11 +Z 21 ) / 2; Z 32 is the ordinate corresponding to Z3, Z 32 =(Z12 +Z 22 ) / 2; Z 33 is the vertical coordinate corresponding to Z3, Z 33 =(Z 13 +Z 23 ) / 2;

[0021] Step S530: If the aircraft corresponding to the target flight is flying eastward, execute step S540; if the aircraft corresponding to the target flight is flying westward, execute step S550;

[0022] Step S540: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to Z1, Z2, Z3. m ,...,V n ; Among them, V m =(V m1 ,V m2 ,V m3 );V m1 V m The corresponding horizontal axis is V m2 V m The corresponding vertical coordinate is V m3 V m The corresponding vertical coordinate is

[0023] Step S550: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to Z1, Z2, Z3. m ,...,V n ; Among them, V m =(V m1 ,V m2 ,V m3 );V m1 V m The corresponding horizontal axis is V m2 V m The corresponding vertical coordinate is V m3 V m The corresponding vertical coordinate is

[0024] In an exemplary embodiment of the present application, V m3 It can also be determined by the following steps:

[0025] Step S560: If Then W1 is determined as V m3 ;

[0026] like Then W2 is determined as Vm3 ;

[0027] like Then Determined as V m3 ;

[0028] Among them, L1>L2>0; W1>W2; L1 and L2 are preset distance thresholds.

[0029] In an exemplary embodiment of the present application, step S600 includes:

[0030] Step S610: According to Z1, Z2 and V m , draw the flight trajectory curve G of the aircraft corresponding to the mth target flight completed by the user m (t) = (1-t) 2 ×Z1+2t(1-t)×V m +t 2 ×Z2; t∈[0,1].

[0031] In an exemplary embodiment of the present application, step S200 further includes:

[0032] Step S210: If B1 and / or B2 do not exist in the preset flight location identifier list, obtain the departure longitude J1 corresponding to B1 and the arrival longitude J2 corresponding to B2;

[0033] Step S220: If J1∈[-180°, 0°] and / or J2∈[-180°, 0°], execute step S230; otherwise, execute step S240;

[0034] Step S230, if J1∈[-180°,0°], set J1=J1+360°; if J2∈[-180°,0°], set J2=J2+360°, and execute step S240;

[0035] Step S240, determining any candidate intermediate place that the target flight passes through as the target intermediate place; the candidate intermediate place is a place with a different longitude from J1 and J2;

[0036] Step S250, obtain the longitude J3 of the target middle point; if J3∈[-180°,0°], set J3=J3+360°;

[0037] Step S260: Determine the flight direction of the aircraft corresponding to the target flight according to J1, J2, and J3, and execute step S400.

[0038] In an exemplary embodiment of the present application, determining the flight direction of the aircraft corresponding to the target flight according to J1, J2, and J3 includes:

[0039] Step S261, if J2<J3<J1 or J3<J1<J2 or J1<J2<J3, then determine that the aircraft corresponding to the target flight flies westward; if J1<J3<J2 or J3<J2<J1 or J2<J1<J3, then determine that the aircraft corresponding to the target flight flies eastward.

[0040] According to one aspect of the present application, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned flight trajectory drawing method.

[0041] According to one aspect of the present application, an electronic device is provided, including a processor and the aforementioned non-transitory computer-readable storage medium.

[0042] The present invention has at least the following beneficial effects:

[0043] The present invention obtains the departure longitude and the arrival longitude of the target flight, determines the flight direction of the aircraft corresponding to the target flight, determines a number of track auxiliary coordinate points according to the departure coordinate point and the arrival coordinate point of the target flight, the flight direction of the aircraft corresponding to the target flight and the number of times the user completes the target flight, and draws the flight track of the aircraft corresponding to each target flight completed by the user according to the departure coordinate point, the arrival coordinate point and each track auxiliary coordinate point. By determining the flight direction of the aircraft corresponding to the target flight, the drawn flight track can more accurately represent the actual itinerary of the target flight, and by determining a number of track auxiliary coordinate points, the drawn flight track can intuitively show the dynamic itinerary of the user taking the target flight each time. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0045] Figure 1 A flow chart of a flight trajectory drawing method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0047] A flight trajectory drawing method, such as Figure 1 As shown, the following steps are included:

[0048] Step S100, in response to receiving a flight trajectory drawing request of a target flight; the flight trajectory drawing request includes a user identifier B3 and a departure place identifier B1 and an arrival place identifier B2 corresponding to the target flight;

[0049] The target flight is the historical flight whose flight trajectory needs to be drawn. The user identifier B3 included in the flight trajectory drawing request is the user who sent the flight trajectory drawing request, that is, the user who needs to draw the flight trajectory of the target flight. The departure point identifier B1 corresponding to the target flight is the identifier corresponding to the departure point of the target flight, and the arrival point identifier B2 is the identifier corresponding to the arrival point of the target flight.

[0050] Step S200: If both B1 and B2 exist in the preset flight location identifier list, obtain the departure longitude J1 corresponding to B1 and the arrival longitude J2 corresponding to B2, and execute step S300;

[0051] The flight location identifiers stored in the preset flight location identifier list may be identifiers corresponding to cities with airports in China.

[0052] If the departure place mark and arrival place mark corresponding to the target flight are both in the preset flight location mark list, it means that the departure place and arrival place of the target flight are both domestic cities, and the target flight is a domestic flight. When drawing the flight trajectory of the flight, it is necessary to consider the distance between the departure place and the arrival place to determine the length of the flight trajectory curve, and to draw the flight direction of the flight trajectory. Therefore, the flight direction of the aircraft corresponding to the target flight is determined by comparing the departure longitude and the arrival longitude of the target flight, and then the corresponding trajectory curve is drawn according to the flight direction.

[0053] Step S210: If B1 and / or B2 do not exist in the preset flight location identifier list, obtain the departure longitude J1 corresponding to B1 and the arrival longitude J2 corresponding to B2;

[0054] If the departure place mark and / or arrival place mark corresponding to the target flight does not exist in the preset flight location mark list, it means that the departure place and / or arrival place of the target flight belongs to a foreign city and the target flight is an international flight. Since the flight distance of an international flight is longer than that of a domestic flight and the longitude difference across is larger, it is necessary to set up any place passed by the target flight as an auxiliary point for direction determination, and use the longitude of the departure place and arrival place of the target flight and the established direction determination auxiliary point to accurately determine the flight direction of the aircraft corresponding to the target flight, so that the flight direction of the drawn flight trajectory curve is consistent with the actual flight direction of the target flight.

[0055] Step S220: If J1∈[-180°, 0°] and / or J2∈[-180°, 0°], execute step S230; otherwise, execute step S240;

[0056] In order to facilitate the subsequent comparison of the departure longitude and the arrival longitude of the target flight, the longitude values ​​of -180° to 0° are processed, that is, the longitude of the west longitude is processed so that the longitudes of the east longitude and the west longitude are 0° to 360°.

[0057] Step S230, if J1∈[-180°,0°], set J1=J1+360°; if J2∈[-180°,0°], set J2=J2+360°, and execute step S240;

[0058] Step S240, determining any candidate intermediate place that the target flight passes through as the target intermediate place; the candidate intermediate place is a place with a different longitude from J1 and J2;

[0059] Since the departure and / or arrival place of the target flight is not the place corresponding to the identifier in the flight location identifier list, the distance between the departure place and the arrival place may be very far. In order to match the drawn flight trajectory with the actual flight trajectory, it is necessary to find any place between the departure place and the arrival place and determine it as the target intermediate place, so that the drawn flight trajectory is from the departure place through the target intermediate place to the arrival place.

[0060] Step S250, obtain the longitude J3 of the target middle point; if J3∈[-180°,0°], set J3=J3+360°;

[0061] Step S260: Determine the flight direction of the aircraft corresponding to the target flight according to J1, J2, and J3, and execute step S400.

[0062] Further, in step S260, the flight direction of the aircraft corresponding to the target flight is determined according to J1, J2, and J3, including:

[0063] Step S261: If J2<J3<J1 or J3<J1<J2 or J1<J2<J3, then determine that the aircraft corresponding to the target flight flies westward; if J1<J3<J2 or J3<J2<J1 or J2<J1<J3, then determine that the aircraft corresponding to the target flight flies eastward;

[0064] Step S300, determining the flight direction of the aircraft corresponding to the target flight according to J1 and J2;

[0065] Further, step S300 includes:

[0066] Step S310: If J1∈[-180°, 0°] and / or J2∈[-180°, 0°], execute step S320; otherwise, execute step S330;

[0067] Step S320, if J1∈[-180°,0°], set J1=J1+360°; if J2∈[-180°,0°], set J2=J2+360°, and execute step S330;

[0068] Step S330, determining the direction longitude difference D of the aircraft corresponding to the target flight according to J1 and J2;

[0069] Wherein, step S330 includes:

[0070] Step S331, if J2-J1>180°, determine the direction and longitude difference D=J2-J1-360° of the aircraft corresponding to the target flight; if J2-J1<-180°, determine the direction and longitude difference D=J2-J1+360° of the aircraft corresponding to the target flight; if -180°≤J2-J1≤180°, determine the direction and longitude difference D=J2-J1 of the aircraft corresponding to the target flight.

[0071] Since the longitudes of the departure and arrival points are processed in the range of [0°, 360°], the difference between the longitudes of the arrival point and the departure point may be greater than 180°. In order to determine the flight direction of the target flight, the difference must be subtracted by 360°.

[0072] Step S340: If D>0°, determine that the aircraft corresponding to the target flight is flying eastward; if D<0°, determine that the aircraft corresponding to the target flight is flying westward.

[0073] Step S400, obtaining the current completion number n of the target flight corresponding to B3;

[0074] Step S500: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to the departure coordinate point Z1 corresponding to B1, the arrival coordinate point Z2 corresponding to B2, n and the flight direction of the aircraft corresponding to the target flight. m ,...,V n ; where m = 1, 2, ..., n; V m is the auxiliary coordinate point of the determined mth trajectory;

[0075] Further, step S500 includes:

[0076] Step S510, obtain the coordinates corresponding to Z1 (Z 11 ,Z 12 ,Z 13 ) and the coordinates corresponding to Z2 (Z 21 ,Z 22 ,Z 23 ), where Z 11 is the horizontal coordinate corresponding to Z1, Z 12 is the ordinate corresponding to Z1, Z 13 is the vertical coordinate corresponding to Z1; Z 21 is the horizontal coordinate corresponding to Z2, Z 22 is the ordinate corresponding to Z2, Z 23 is the vertical coordinate corresponding to Z2;

[0077] The coordinates are the coordinates corresponding to the page or system on which the flight trajectory is drawn, such as the Cesium page, which has the coordinates of each point on the earth.

[0078] Step S520: determine the coordinates (Z 31 ,Z 32 ,Z 33 ), where Z 31 is the horizontal coordinate corresponding to Z3, Z 31 =(Z 11 +Z 21 ) / 2; Z 32 is the ordinate corresponding to Z3, Z 32 =(Z 12 +Z 22 ) / 2; Z 33 is the vertical coordinate corresponding to Z3, Z 33 =(Z 13 +Z 23 ) / 2;

[0079] Step S530: If the aircraft corresponding to the target flight is flying eastward, execute step S540; if the aircraft corresponding to the target flight is flying westward, execute step S550;

[0080] Step S540: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to Z1, Z2, Z3. m ,...,V n ;

[0081] Among them, V m =(V m1 ,V m2 ,V m3 );V m1 V m The corresponding horizontal axis is V m2 V m The corresponding vertical coordinate is V m3 V m The corresponding vertical coordinate is

[0082] Step S550: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to Z1, Z2, Z3. m ,...,V n ;

[0083] Among them, V m =(V m1 ,V m2 ,V m3 );V m1 V m The corresponding horizontal axis is V m2 V m The corresponding vertical coordinate is V m3 V m The corresponding vertical coordinate is

[0084] In addition, V m3 It can also be determined by the following steps:

[0085] Step S560: If Then W1 is determined as V m3 ;

[0086] like Then W2 is determined as V m3 ;

[0087] like Then Determined as V m3 ;

[0088] Among them, L1>L2>0; W1>W2; L1 and L2 are preset distance thresholds.

[0089] Step S600: According to Z1, Z2 and V m , draw the flight trajectory of the aircraft corresponding to the mth target flight completed by the user;

[0090] Further, step S600 includes:

[0091] Step S610: According to Z1, Z2 and V m , draw the flight trajectory curve G of the aircraft corresponding to the mth target flight completed by the user m (t) = (1-t) 2 ×Z1+2t(1-t)×V m +t 2 ×Z2; t∈[0,1].

[0092] The present invention obtains the departure longitude and the arrival longitude of the target flight, determines the flight direction of the aircraft corresponding to the target flight, determines a number of track auxiliary coordinate points according to the departure coordinate point and the arrival coordinate point of the target flight, the flight direction of the aircraft corresponding to the target flight and the number of times the user completes the target flight, and draws the flight track of the aircraft corresponding to each target flight completed by the user according to the departure coordinate point, the arrival coordinate point and each track auxiliary coordinate point. By determining the flight direction of the aircraft corresponding to the target flight, the drawn flight track can more accurately represent the actual itinerary of the target flight, and by determining a number of track auxiliary coordinate points, the drawn flight track can intuitively show the dynamic itinerary of the user taking the target flight each time.

[0093] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.

[0094] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0095] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0096] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0097] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0098] The electronic device according to this embodiment of the present invention is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0099] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one storage device mentioned above, and a bus connecting different system components (including storage devices and processors).

[0100] The storage stores program codes, which can be executed by the processor, so that the processor executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.

[0101] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).

[0102] The storage may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0103] The bus may represent one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.

[0104] The electronic device can also communicate with one or more external devices (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device, and / or communicate with any device (such as routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. This communication can be carried out through an input / output (I / O) interface. In addition, the electronic device can also communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter. As shown in the figure, the network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0105] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0106] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0107] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0108] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0109] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0110] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0111] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0112] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0113] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A flight trajectory drawing method, characterized in that: The method comprises the following steps: Step S100, in response to receiving a flight trajectory drawing request of a target flight; the flight trajectory drawing request includes a user identifier B3 and a departure place identifier B1 and an arrival place identifier B2 corresponding to the target flight; Step S200: If both B1 and B2 exist in the preset flight location identifier list, obtain the departure longitude J1 corresponding to B1 and the arrival longitude J2 corresponding to B2; Step S300, determining the flight direction of the aircraft corresponding to the target flight according to J1 and J2; Step S400, obtaining the current completion number n of the target flight corresponding to B3; Step S500: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to the departure coordinate point Z1 corresponding to B1, the arrival coordinate point Z2 corresponding to B2, n and the flight direction of the aircraft corresponding to the target flight. m ,...,V n ; where m=1,2,...,n; V m is the auxiliary coordinate point of the determined mth trajectory; Step S600: According to Z1, Z2 and V m , draw the flight trajectory of the aircraft corresponding to the mth target flight completed by the user; Wherein, the step S500 includes: Step S510, obtain the coordinates corresponding to Z1 (Z 11 ,Z 12 ,Z 13 ) and the coordinates corresponding to Z2 (Z 21 ,Z 22 ,Z 23 ), where Z 11 is the horizontal coordinate corresponding to Z1, Z 12 is the ordinate corresponding to Z1, Z 13 is the vertical coordinate corresponding to Z1; Z 21 is the horizontal coordinate corresponding to Z2, Z 22 is the ordinate corresponding to Z2, Z 23 is the vertical coordinate corresponding to Z2; Step S520: determine the coordinates (Z 31 ,Z 32 ,Z 33 ), where Z 31 is the horizontal coordinate corresponding to Z3, Z 31 =(Z 11 +Z 21 ) / 2; Z 32 is the ordinate corresponding to Z3, Z 32 =(Z 12 +Z 22 ) / 2; Z 33 is the vertical coordinate corresponding to Z3, Z 33 =(Z 13 +Z 23 ) / 2; Step S530: If the aircraft corresponding to the target flight is flying eastward, execute step S540; if the aircraft corresponding to the target flight is flying westward, execute step S550; Step S540: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to Z1, Z2, Z3. m ,...,V n ; Among them, V m =(V m1 ,V m2 ,V m3 );V m1 V m The corresponding horizontal axis is ; V m2 V m The corresponding vertical coordinate is ; V m3 V m The corresponding vertical coordinate is ; Step S550: Determine n trajectory auxiliary coordinate points V1, V2, ..., V according to Z1, Z2, Z3. m ,...,V n ; Among them, V m =(V m1 ,V m2 ,V m3 );V m1 V m The corresponding horizontal axis is ; V m2 V m The corresponding vertical coordinate is ; V m3 V m The corresponding vertical coordinate is .

2. The method according to claim 1, characterized in that: The step S300 includes: Step S310: If J1∈[-180°, 0°] and / or J2∈[-180°, 0°], execute step S320; otherwise, execute step S330; Step S320, if J1∈[-180°,0°], set J1=J1+360°; if J2∈[-180°,0°], set J2=J2+360°, and execute step S330; Step S330, determining the direction longitude difference D of the aircraft corresponding to the target flight according to J1 and J2; Step S340: If D>0°, determine that the aircraft corresponding to the target flight is flying eastward; if D<0°, determine that the aircraft corresponding to the target flight is flying westward.

3. The method according to claim 2, characterized in that The step S330 includes: Step S331, if J2-J1>180°, determine the direction and longitude difference D=J2-J1-360° of the aircraft corresponding to the target flight; if J2-J1<-180°, determine the direction and longitude difference D=J2-J1+360° of the aircraft corresponding to the target flight; if -180°≤J2-J1≤180°, determine the direction and longitude difference D=J2-J1 of the aircraft corresponding to the target flight.

4. The method according to claim 1, characterized in that: V m3 It can also be determined by the following steps: Step S560: If , then W1 is determined to be V m3 ; like , then W2 is determined to be V m3 ; like , then Determined as V m3 ; Among them, L1>L2>0; W1>W2; L1 and L2 are preset distance thresholds.

5. The method according to claim 1, characterized in that The step S600 includes: Step S610: According to Z1, Z2 and V m , draw the flight trajectory curve G of the aircraft corresponding to the mth target flight completed by the user m (t)=(1-t) 2 ×Z1+2t(1-t)×V m +t 2 ×Z2; t∈[0,1].

6. The method according to claim 1, characterized in that The step S200 further includes: Step S210: If B1 and / or B2 do not exist in the preset flight location identifier list, obtain the departure longitude J1 corresponding to B1 and the arrival longitude J2 corresponding to B2; Step S220: If J1∈[-180°, 0°] and / or J2∈[-180°, 0°], execute step S230; otherwise, execute step S240; Step S230, if J1∈[-180°,0°], set J1=J1+360°; if J2∈[-180°,0°], set J2=J2+360°, and execute step S240; Step S240, determining any candidate intermediate place that the target flight passes through as the target intermediate place; the candidate intermediate place is a place with a different longitude from J1 and J2; Step S250, obtaining the longitude J3 of the target middle point; if J3∈[-180°,0°], then setting J3=J3+360°; Step S260: Determine the flight direction of the aircraft corresponding to the target flight according to J1, J2, and J3, and execute step S400.

7. The method according to claim 6, characterized in that Determining the flight direction of the aircraft corresponding to the target flight according to J1, J2, and J3 includes: Step S261, if J2<J3<J1 or J3<J1<J2 or J1<J2<J3, then determine that the aircraft corresponding to the target flight flies westward; if J1<J3<J2 or J3<J2<J1 or J2<J1<J3, then determine that the aircraft corresponding to the target flight flies eastward.

8. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the method according to any one of claims 1 to 7.

9. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 8.

Citation Information

Patent Citations

  • Method for simulating and drawing air route between two places based on network map

    CN106643732A