vars.ts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. import * as AirspaceInfo from '../index';
  2. export const circleServer: AirspaceInfo.AirspaceInfoCircleServer = {
  3. airspace_name: "test",
  4. airspace_type: 1,
  5. airspace_id: "123",
  6. note: "notes note",
  7. center_loc: "loc name",
  8. center_point_of_flying: {
  9. lat: 123.4,
  10. lng: 40.3
  11. },
  12. radius_of_flying: 123,
  13. altitude: 1000,
  14. unit: 1
  15. }
  16. export const circleLocal = <AirspaceInfo.AirspaceInfoCircleLocal>{"addr": "loc name", "airspaceId": "123", "airspaceType": 1, "height": "1000", "heightStandard": "米/真高", "lat": 123.4, "lng": 40.3, "name": "test", "note": "notes note", "radius": 123}
  17. export const polygonServer: AirspaceInfo.AirspaceInfoPolygonServer = {
  18. airspace_name: 'test',
  19. airspace_type: 3,
  20. airspace_id: "123",
  21. note: 'notes',
  22. points: [{
  23. addr: 'test',
  24. lat: 123.4,
  25. lng: 40.3
  26. }],
  27. altitude: 123,
  28. unit: 1
  29. }
  30. export const polygonLocal: AirspaceInfo.AirspaceInfoPolygonLocal = {"airspaceId": "123", "airspaceType": 3, "height": "123", "heightStandard": "米/真高", "name": "test", "note": "notes", "polygonPoints": [{"addr": "test", "lat": 123.4, "lng": 40.3}]}
  31. export const lineServer1: AirspaceInfo.AirspaceInfoLineServer = {
  32. airspace_name: "test",
  33. airspace_type: 2,
  34. airspace_id: "123",
  35. note: "notes note",
  36. start_loc: "start loc",
  37. start_point: {
  38. lat: 123.4,
  39. lng: 40.3,
  40. altitude: 111,
  41. unit: 2
  42. },
  43. end_loc: "end loc",
  44. end_point: {
  45. lat: 123.4,
  46. lng: 40.3
  47. },
  48. passing_points: [{
  49. point_type: 3,
  50. altitude: 1000,
  51. unit: 0,
  52. point_name: "test point",
  53. lat: 123.4,
  54. lng: 40.3
  55. },{
  56. point_type: 2,
  57. altitude: 1111,
  58. unit: 1,
  59. airway: 123,
  60. air_route_code: "B334",
  61. points: [{
  62. point_id: 123,
  63. point_name: 'test point',
  64. point_code: 'UAV22',
  65. lat: 123.4,
  66. lng: 40.3
  67. }]
  68. },{
  69. point_type: 1,
  70. altitude: 12222,
  71. unit: 3,
  72. point_id: 123,
  73. point_code: '123',
  74. point_name: 'test point',
  75. lat: 123.4,
  76. lng: 40.3
  77. }],
  78. airline_width: 12
  79. }
  80. export const lineLocal1: AirspaceInfo.AirspaceInfoLineLocal = {"airlineWidth": 12, "airspaceId": "123", "airspaceType": 2, "arrive": {"addr": "end loc", "lat": 123.4, "lng": 40.3}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": 123.4, "lng": 40.3}, "name": "test", "note": "notes note", "passPoints": [{"addr": "test point", "height": "1000", "heightStandard": "米/标高", "lat": 123.4, "lng": 40.3, "pointType": 3}, {"airRouteId": 123, "airlineCode": "B334", "airlines": [{"lat": 123.4, "lng": 40.3, "point_code": "UAV22", "point_id": 123, "point_name": "test point"}], "height": "1111", "heightStandard": "米/真高", "pointType": 2}, {"height": "12222", "heightStandard": "米(含以下)/真高", "lat": 123.4, "lng": 40.3, "pointCode": "123", "pointId": 123, "pointName": "test point", "pointType": 1}]}
  81. export const lineServer2: AirspaceInfo.AirspaceInfoLineServer = {
  82. airspace_name: "test",
  83. airspace_type: 2,
  84. airspace_id: "123",
  85. note: "notes note",
  86. start_loc: "start loc",
  87. start_point: {
  88. lat: 123.4,
  89. lng: 40.3,
  90. altitude: 111,
  91. unit: 2
  92. },
  93. end_loc: "end loc",
  94. end_point: {
  95. lat: 123.4,
  96. lng: 40.3
  97. },
  98. passing_points: [{
  99. point_type: 3,
  100. altitude: 1000,
  101. unit: 0,
  102. point_name: "test point",
  103. lat: 123.4,
  104. lng: 40.3
  105. },{
  106. point_type: 2,
  107. altitude: 1111,
  108. unit: 1,
  109. airway: 123,
  110. air_route_code: "B334",
  111. points: [{
  112. point_id: 123,
  113. point_name: 'test point',
  114. point_code: 'UAV22',
  115. lat: 123.4,
  116. lng: 40.3
  117. }]
  118. },{
  119. point_type: 1,
  120. altitude: 12222,
  121. unit: 3,
  122. point_id: 123,
  123. point_code: '123',
  124. point_name: 'test point',
  125. lat: 123.4,
  126. lng: 40.3
  127. }]
  128. }
  129. export const lineLocal2: AirspaceInfo.AirspaceInfoLineLocal = {"airspaceId": "123", "airspaceType": 2, "arrive": {"addr": "end loc", "lat": 123.4, "lng": 40.3}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": 123.4, "lng": 40.3}, "name": "test", "note": "notes note", "passPoints": [{"addr": "test point", "height": "1000", "heightStandard": "米/标高", "lat": 123.4, "lng": 40.3, "pointType": 3}, {"airRouteId": 123, "airlineCode": "B334", "airlines": [{"lat": 123.4, "lng": 40.3, "point_code": "UAV22", "point_id": 123, "point_name": "test point"}], "height": "1111", "heightStandard": "米/真高", "pointType": 2}, {"height": "12222", "heightStandard": "米(含以下)/真高", "lat": 123.4, "lng": 40.3, "pointCode": "123", "pointId": 123, "pointName": "test point", "pointType": 1}]}
  130. export const lineServer3: AirspaceInfo.AirspaceInfoLineServer = {
  131. airspace_name: "test",
  132. airspace_type: 2,
  133. airspace_id: "123",
  134. note: "notes note",
  135. start_loc: "start loc",
  136. start_point: {
  137. lat: 123.4,
  138. lng: 40.3,
  139. altitude: 111,
  140. unit: 2
  141. },
  142. end_loc: "end loc",
  143. end_point: {
  144. lat: 123.4,
  145. lng: 40.3
  146. },
  147. passing_points: []
  148. }
  149. export const lineLocal3: AirspaceInfo.AirspaceInfoLineLocal = {"airspaceId": "123", "airspaceType": 2, "arrive": {"addr": "end loc", "lat": 123.4, "lng": 40.3}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": 123.4, "lng": 40.3}, "name": "test", "note": "notes note", "passPoints": []}