expo-gaode-map-navigation 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/build/ExpoGaodeMapNaviView.js +0 -10
  2. package/build/map/ExpoGaodeMapModule.js +5 -5
  3. package/build/map/components/overlays/Cluster.js +0 -10
  4. package/build/map/components/overlays/HeatMap.js +0 -10
  5. package/build/map/components/overlays/MultiPoint.js +0 -10
  6. package/build/map/index.d.ts +1 -1
  7. package/build/map/index.js +3 -1
  8. package/package.json +15 -6
  9. package/package.json.backup +0 -47
  10. package/plugin/README.md +0 -52
  11. package/plugin/src/withGaodeMap.ts +0 -231
  12. package/plugin/tsconfig.tsbuildinfo +0 -1
  13. package/src/ExpoGaodeMapNaviView.tsx +0 -94
  14. package/src/ExpoGaodeMapNavigation.types.ts +0 -3
  15. package/src/ExpoGaodeMapNavigationModule.ts +0 -11
  16. package/src/index.ts +0 -262
  17. package/src/map/ExpoGaodeMap.types.ts +0 -46
  18. package/src/map/ExpoGaodeMapModule.ts +0 -315
  19. package/src/map/ExpoGaodeMapView.tsx +0 -120
  20. package/src/map/components/overlays/Circle.tsx +0 -20
  21. package/src/map/components/overlays/Cluster.tsx +0 -26
  22. package/src/map/components/overlays/HeatMap.tsx +0 -27
  23. package/src/map/components/overlays/Marker.tsx +0 -88
  24. package/src/map/components/overlays/MultiPoint.tsx +0 -27
  25. package/src/map/components/overlays/Polygon.tsx +0 -19
  26. package/src/map/components/overlays/Polyline.tsx +0 -19
  27. package/src/map/components/overlays/index.ts +0 -7
  28. package/src/map/index.ts +0 -37
  29. package/src/map/types/common.types.ts +0 -126
  30. package/src/map/types/index.ts +0 -55
  31. package/src/map/types/location.types.ts +0 -368
  32. package/src/map/types/map-view.types.ts +0 -281
  33. package/src/map/types/overlays.types.ts +0 -404
  34. package/src/map/utils/EventManager.ts +0 -23
  35. package/src/map/utils/ModuleLoader.ts +0 -115
  36. package/src/types/coordinates.types.ts +0 -25
  37. package/src/types/independent.types.ts +0 -288
  38. package/src/types/index.ts +0 -5
  39. package/src/types/naviview.types.ts +0 -330
  40. package/src/types/route.types.ts +0 -305
@@ -1,305 +0,0 @@
1
- import type { Coordinates } from './coordinates.types';
2
-
3
- /**
4
- * 路径规划类型
5
- */
6
- export enum RouteType {
7
- /** 驾车路径规划 */
8
- DRIVE = 'drive',
9
- /** 步行路径规划 */
10
- WALK = 'walk',
11
- /** 骑行路径规划 */
12
- RIDE = 'ride',
13
- /** 货车路径规划 */
14
- TRUCK = 'truck',
15
- }
16
-
17
- /**
18
- * 驾车路径规划策略
19
- */
20
- export enum DriveStrategy {
21
- /** 速度优先(时间最短) */
22
- FASTEST = 0,
23
- /** 费用优先(不走收费路段的最快路线) */
24
- FEE_FIRST = 1,
25
- /** 距离优先(距离最短) */
26
- SHORTEST = 2,
27
- /** 不走快速路(不走快速路的最快路线) */
28
- NO_EXPRESSWAYS = 3,
29
- /** 结合实时交通(躲避拥堵) */
30
- AVOID_CONGESTION = 4,
31
- /** 不走高速 */
32
- NO_HIGHWAY = 5,
33
- /** 不走高速且避免收费 */
34
- NO_HIGHWAY_AVOID_CONGESTION = 6,
35
- /** 躲避收费和拥堵 */
36
- AVOID_COST_CONGESTION = 7,
37
- /** 不走高速且躲避收费和拥堵 */
38
- NO_HIGHWAY_AVOID_COST_CONGESTION = 8,
39
- /** 躲避拥堵和收费 */
40
- AVOID_CONGESTION_COST = 9,
41
- }
42
-
43
- /**
44
- * 步行路径规划策略
45
- */
46
- export enum WalkStrategy {
47
- /** 推荐路线 */
48
- DEFAULT = 0,
49
- }
50
-
51
- /**
52
- * 骑行路径规划策略
53
- */
54
- export enum RideStrategy {
55
- /** 推荐路线 */
56
- DEFAULT = 0,
57
- /** 速度优先 */
58
- FASTEST = 1,
59
- /** 距离优先 */
60
- SHORTEST = 2,
61
- }
62
-
63
- /**
64
- * 货车路径规划大小
65
- */
66
- export enum TruckSize {
67
- /** 微型货车 */
68
- MINI = 1,
69
- /** 轻型货车 */
70
- LIGHT = 2,
71
- /** 中型货车 */
72
- MEDIUM = 3,
73
- /** 重型货车 */
74
- HEAVY = 4,
75
- }
76
-
77
- /**
78
- * 步行/骑行 Travel 策略(对齐原生:1000 单路线 / 1001 多路线)
79
- */
80
- export enum TravelStrategy {
81
- SINGLE = 1000,
82
- MULTIPLE = 1001,
83
- }
84
-
85
- /**
86
- * 基础路径规划选项
87
- */
88
- export interface BaseRouteOptions {
89
- /** 起点坐标 */
90
- from: Coordinates;
91
- /** 终点坐标 */
92
- to: Coordinates;
93
- /** 途经点列表(可选) */
94
- waypoints?: Coordinates[];
95
- }
96
-
97
- /**
98
- * 驾车路径规划选项
99
- */
100
- export interface DriveRouteOptions extends BaseRouteOptions {
101
- type: RouteType.DRIVE;
102
- /** 驾车策略,默认速度优先 */
103
- strategy?: DriveStrategy;
104
- /** 车牌号(用于限行策略,可选) */
105
- carNumber?: string;
106
- /** 避让区域(可选) */
107
- avoidPolygons?: Coordinates[][];
108
- /** 避让道路(道路名称,可选) */
109
- avoidRoad?: string;
110
- }
111
-
112
- /**
113
- * 步行路径规划选项
114
- */
115
- export interface WalkRouteOptions extends BaseRouteOptions {
116
- type: RouteType.WALK;
117
- /** 步行策略 */
118
- strategy?: WalkStrategy;
119
- /** 出行策略(单路线/多路线),对齐原生 TravelStrategy:1000/1001 */
120
- travelStrategy?: TravelStrategy;
121
- /** 是否返回多路线(等价于 travelStrategy=TravelStrategy.MULTIPLE) */
122
- multiple?: boolean;
123
- }
124
-
125
- /**
126
- * 骑行路径规划选项
127
- */
128
- export interface RideRouteOptions extends BaseRouteOptions {
129
- type: RouteType.RIDE;
130
- /** 骑行策略 */
131
- strategy?: RideStrategy;
132
- /** 出行策略(单路线/多路线),对齐原生 TravelStrategy:1000/1001 */
133
- travelStrategy?: TravelStrategy;
134
- /** 是否返回多路线(等价于 travelStrategy=TravelStrategy.MULTIPLE) */
135
- multiple?: boolean;
136
- }
137
-
138
- /**
139
- * 骑行电动车路径规划选项
140
- */
141
- export interface EBikeRouteOptions extends BaseRouteOptions {
142
- /** 出行策略(单路线/多路线),对齐原生 TravelStrategy:1000/1001 */
143
- travelStrategy?: TravelStrategy;
144
- /** 是否返回多路线(等价于 travelStrategy=TravelStrategy.MULTIPLE) */
145
- multiple?: boolean;
146
- /** 强制使用 POI 算路(若提供 name 或 poiId 时会自动使用) */
147
- usePoi?: boolean;
148
- }
149
-
150
- /**
151
- * 货车路径规划选项
152
- */
153
- export interface TruckRouteOptions extends BaseRouteOptions {
154
- type: RouteType.TRUCK;
155
- /** 货车大小 */
156
- size: TruckSize;
157
- /** 货车高度(米) */
158
- height?: number;
159
- /** 货车宽度(米) */
160
- width?: number;
161
- /** 货车载重(吨) */
162
- load?: number;
163
- /** 货车重量(吨) */
164
- weight?: number;
165
- /** 货车轴数 */
166
- axis?: number;
167
- }
168
-
169
- /**
170
- * 路径步骤动作类型
171
- */
172
- export enum StepAction {
173
- /** 直行 */
174
- STRAIGHT = 0,
175
- /** 左转 */
176
- LEFT = 1,
177
- /** 右转 */
178
- RIGHT = 2,
179
- /** 左前方转弯 */
180
- LEFT_FRONT = 3,
181
- /** 右前方转弯 */
182
- RIGHT_FRONT = 4,
183
- /** 左后方转弯 */
184
- LEFT_BACK = 5,
185
- /** 右后方转弯 */
186
- RIGHT_BACK = 6,
187
- /** 左转掉头 */
188
- LEFT_U_TURN = 7,
189
- /** 到达目的地 */
190
- ARRIVE = 8,
191
- /** 进入环岛 */
192
- ENTER_ROUNDABOUT = 9,
193
- /** 驶出环岛 */
194
- EXIT_ROUNDABOUT = 10,
195
- }
196
-
197
- /**
198
- * 道路类型
199
- */
200
- export enum RoadType {
201
- /** 高速公路 */
202
- HIGHWAY = 0,
203
- /** 国道 */
204
- NATIONAL_ROAD = 1,
205
- /** 省道 */
206
- PROVINCIAL_ROAD = 2,
207
- /** 县道 */
208
- COUNTY_ROAD = 3,
209
- /** 乡镇道路 */
210
- TOWNSHIP_ROAD = 4,
211
- /** 城市主干道 */
212
- MAIN_ROAD = 5,
213
- /** 城市次干道 */
214
- SECONDARY_ROAD = 6,
215
- /** 城市普通道路 */
216
- NORMAL_ROAD = 7,
217
- /** 其他道路 */
218
- OTHER = 8,
219
- }
220
-
221
- /**
222
- * 路径步骤信息
223
- */
224
- export interface RouteStep {
225
- /** 步骤说明 */
226
- instruction: string;
227
- /** 方向说明 */
228
- orientation?: string;
229
- /** 道路名称 */
230
- road?: string;
231
- /** 距离(米) */
232
- distance: number;
233
- /** 预计时间(秒) */
234
- duration: number;
235
- /** 路径坐标点 */
236
- polyline: Coordinates[];
237
- /** 动作类型 */
238
- action?: StepAction;
239
- /** 辅助动作(可选) */
240
- assistantAction?: string;
241
- /** 收费距离(米) */
242
- tollDistance?: number;
243
- /** 收费金额(元) */
244
- tollCost?: number;
245
- /** 道路类型 */
246
- roadType?: RoadType;
247
- }
248
-
249
- /**
250
- * 路径规划结果
251
- */
252
- export interface RouteResult {
253
- /** 路线ID */
254
- id: number;
255
- /** 起点坐标 */
256
- start: Coordinates;
257
- /** 终点坐标 */
258
- end: Coordinates;
259
- /** 总距离(米) */
260
- distance: number;
261
- /** 预计时间(秒) */
262
- duration: number;
263
- /** 路径步骤 */
264
- segments?: RouteStep[];
265
- /** 路径坐标点(所有步骤的完整路径) */
266
- polyline?: Coordinates[];
267
- /** 收费距离(米),驾车时有效 */
268
- tollDistance?: number;
269
- /** 收费金额(元),驾车时有效 */
270
- tollCost?: number;
271
- /** 红绿灯数量,驾车时有效 */
272
- trafficLightCount?: number;
273
- /** 限行状态码,驾车时有效 */
274
- restrictionCode?: number;
275
- /** 限行状态说明,驾车时有效 */
276
- restrictionInfo?: string;
277
- /** 策略值 */
278
- strategy?: number;
279
- }
280
-
281
- /**
282
- * 驾车路径规划结果(包含多条路线)
283
- */
284
- export interface DriveRouteResult {
285
- /** 路径数量 */
286
- count: number;
287
- /** 主路线索引 */
288
- mainPathIndex: number;
289
- /** 路线ID列表 */
290
- routeIds?: number[];
291
- /** 路径列表,按策略返回1-3条路线 */
292
- routes: RouteResult[];
293
- /** 出租车费用(元) */
294
- taxiCost?: number;
295
- }
296
-
297
- /**
298
- * 路径规划选项联合类型
299
- */
300
- export type RouteOptions =
301
- | DriveRouteOptions
302
- | WalkRouteOptions
303
- | RideRouteOptions
304
- | EBikeRouteOptions
305
- | TruckRouteOptions;