expo-gaode-map-navigation 2.0.13 → 2.0.14
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.
- package/README.md +23 -15
- package/build/index.d.ts +26 -126
- package/build/index.d.ts.map +1 -1
- package/build/index.js +11 -612
- package/build/index.js.map +1 -1
- package/build/route-geometry.d.ts +13 -0
- package/build/route-geometry.d.ts.map +1 -0
- package/build/route-geometry.js +154 -0
- package/build/route-geometry.js.map +1 -0
- package/build/route-planning.d.ts +21 -0
- package/build/route-planning.d.ts.map +1 -0
- package/build/route-planning.js +67 -0
- package/build/route-planning.js.map +1 -0
- package/build/web-api-fallback.d.ts +5 -0
- package/build/web-api-fallback.d.ts.map +1 -0
- package/build/web-api-fallback.js +160 -0
- package/build/web-api-fallback.js.map +1 -0
- package/build/web-route-following.d.ts +3 -0
- package/build/web-route-following.d.ts.map +1 -0
- package/build/web-route-following.js +178 -0
- package/build/web-route-following.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
- 🗺️ **地图渲染**:内置完整地图能力,支持 Marker、Polyline、Polygon、Circle、Cluster、HeatMap 等覆盖物。
|
|
8
8
|
- 🔍 **原生搜索**:内置 POI 搜索、周边搜索、沿途搜索、输入提示、逆地理编码等搜索能力。
|
|
9
9
|
- 🚗 **多模式路径规划**:支持驾车、步行、骑行、电动车、货车、摩托车等多种出行方式。
|
|
10
|
-
- 🧭 **实时导航 UI**:提供 `
|
|
10
|
+
- 🧭 **实时导航 UI**:提供 `ExpoGaodeMapNaviView` 官方嵌入视图,并暴露完整事件与原生参数,方便你自行定制导航界面。
|
|
11
11
|
- 🛣️ **独立路径规划**:支持“先算路、再导航”的高级模式,可实现多路线对比与选择。
|
|
12
12
|
- ⚙️ **策略丰富**:支持速度优先、避让拥堵、少收费、不走高速等多种算路策略。
|
|
13
13
|
- ✅ **开箱即用**:封装了 Android/iOS 原生导航 SDK,统一 JS 接口。
|
|
@@ -30,7 +30,7 @@ npm install expo-gaode-map-navigation
|
|
|
30
30
|
**⚠️ 重要提示:**
|
|
31
31
|
如果项目中已安装 `expo-gaode-map`,请务必先卸载,否则会导致 Android 端二进制冲突(`3dmap` vs `navi-3dmap`)。`expo-gaode-map` 和 `expo-gaode-map-navigation` 由于 SDK 冲突不能同时安装,二选一使用。
|
|
32
32
|
|
|
33
|
-
`expo-gaode-map-search` 的独立集成只维护到 `2.2.33
|
|
33
|
+
`expo-gaode-map-search` 的独立集成只维护到 `2.2.33`。从 `2.0.13` 开始,搜索能力随 `expo-gaode-map` / `expo-gaode-map-navigation` 一起维护;在导航包中请直接从 `expo-gaode-map-navigation` 导入搜索 API。
|
|
34
34
|
|
|
35
35
|
高德官方 Android SDK 在 `10.0.700` 之后将远程依赖由“地图 + 定位”调整为“地图 + 定位 + 搜索”,依赖地址从 `com.amap.api:3dmap:latest.integration` 调整为 `com.amap.api:3dmap-location-search:latest.integration`。继续单独维护 search 模块会带来重复合包和依赖冲突成本,因此搜索能力改为随 core / navigation 一起维护。
|
|
36
36
|
|
|
@@ -80,8 +80,8 @@ npx expo run:ios
|
|
|
80
80
|
- `enableBackgroundAudio` 仅 iOS 生效(默认随 `enableBackgroundLocation` 自动开启),用于注入 `UIBackgroundModes: audio`,保障后台导航语音持续播报。
|
|
81
81
|
- `enableIOSLiveActivity` 仅 iOS 生效,用于注入 `NSSupportsLiveActivities`。
|
|
82
82
|
- `enableIOSLiveActivityFrequentUpdates` 仅 iOS 生效,用于注入 `NSSupportsLiveActivitiesFrequentUpdates`。
|
|
83
|
-
- 运行时还需要在 `
|
|
84
|
-
- iOS 运行时还需要在 `
|
|
83
|
+
- 运行时还需要在 `ExpoGaodeMapNaviView` 里显式传 `androidBackgroundNavigationNotificationEnabled={true}` 才会在应用退到后台后显示导航常驻通知。
|
|
84
|
+
- iOS 运行时还需要在 `ExpoGaodeMapNaviView` 里显式传 `iosLiveActivityEnabled={true}` 才会持续更新 Live Activity。
|
|
85
85
|
|
|
86
86
|
## 示例工程
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ npx expo run:ios
|
|
|
89
89
|
|
|
90
90
|
推荐场景:
|
|
91
91
|
|
|
92
|
-
- 调试 `
|
|
92
|
+
- 调试 `ExpoGaodeMapNaviView` 与示例工程里的自定义 HUD / 车道 HUD / 路况光柱
|
|
93
93
|
- 对比官方黑盒页、官方嵌入式页、自绘嵌入式页
|
|
94
94
|
- 验证独立算路、多路线选择、近似跟线导航
|
|
95
95
|
|
|
@@ -170,15 +170,16 @@ export default function BasicMapScreen() {
|
|
|
170
170
|
|
|
171
171
|
### 2. 嵌入导航视图
|
|
172
172
|
|
|
173
|
-
使用 `
|
|
173
|
+
使用 `ExpoGaodeMapNaviView` 组件直接嵌入导航界面:
|
|
174
174
|
|
|
175
175
|
```tsx
|
|
176
176
|
import React, { useEffect, useRef } from 'react';
|
|
177
177
|
import { View } from 'react-native';
|
|
178
|
-
import {
|
|
178
|
+
import { ExpoGaodeMapNaviView } from 'expo-gaode-map-navigation';
|
|
179
|
+
import type { ExpoGaodeMapNaviViewRef } from 'expo-gaode-map-navigation';
|
|
179
180
|
|
|
180
181
|
export default function NavigationScreen() {
|
|
181
|
-
const naviRef = useRef<
|
|
182
|
+
const naviRef = useRef<ExpoGaodeMapNaviViewRef>(null);
|
|
182
183
|
|
|
183
184
|
useEffect(() => {
|
|
184
185
|
// 延迟 1 秒后开始导航
|
|
@@ -196,7 +197,7 @@ export default function NavigationScreen() {
|
|
|
196
197
|
|
|
197
198
|
return (
|
|
198
199
|
<View style={{ flex: 1 }}>
|
|
199
|
-
<
|
|
200
|
+
<ExpoGaodeMapNaviView
|
|
200
201
|
ref={naviRef}
|
|
201
202
|
style={{ flex: 1 }}
|
|
202
203
|
showCamera={true} // 显示摄像头
|
|
@@ -211,17 +212,17 @@ export default function NavigationScreen() {
|
|
|
211
212
|
|
|
212
213
|
### 3. 自定义嵌入式导航 UI
|
|
213
214
|
|
|
214
|
-
如果你要做“嵌入在自己页面里的导航页”,库本身提供的是底层 `
|
|
215
|
+
如果你要做“嵌入在自己页面里的导航页”,库本身提供的是底层 `ExpoGaodeMapNaviView`、导航事件和原生参数;完整的自定义 HUD / 车道 HUD / 路况光柱参考实现,已经迁移到仓库内的 [`example-navigation`](/Volumes/xinxin/expo-gaode-map/example-navigation/README.md)。
|
|
215
216
|
|
|
216
217
|
建议做法:
|
|
217
218
|
|
|
218
|
-
- 用 `
|
|
219
|
+
- 用 `ExpoGaodeMapNaviView` 负责底层导航地图、语音、车道事件、路况事件、路口大图事件
|
|
219
220
|
- 用 `onNaviInfoUpdate`、`onLaneInfoUpdate`、`onTrafficStatusesUpdate`、`onNaviVisualStateChange` 在业务侧自绘 HUD
|
|
220
221
|
- 直接参考 `example-navigation/lib/navigation-ui/EmbeddedNaviView.tsx` 及配套 UI 文件,按你的产品需求裁剪
|
|
221
222
|
|
|
222
223
|
注意:
|
|
223
224
|
|
|
224
|
-
- Android 官方嵌入式 `
|
|
225
|
+
- Android 官方嵌入式 `ExpoGaodeMapNaviView` 在部分 React Native / Expo 宿主中,顶部信息区、车道条、路口大图联动效果可能与高德官方 Demo 不完全一致
|
|
225
226
|
- 如果你要验证官方嵌入式 UI 本身,请直接跑 `example-navigation` 里的 `official-embedded` 示例页
|
|
226
227
|
- 如果你要交付稳定的嵌入式导航页,建议以示例工程里的“自定义 UI 导航界面”作为起点
|
|
227
228
|
|
|
@@ -494,6 +495,13 @@ const result = await calculateTransitRoute({
|
|
|
494
495
|
- 可共享的范围仅限纯 TS 的 route / AOI 数据适配工具、文档和测试思路
|
|
495
496
|
- 原生地图桥接、overlay 宿主逻辑、MapView facade 不会和核心包合并
|
|
496
497
|
|
|
498
|
+
### 导入入口
|
|
499
|
+
|
|
500
|
+
- 运行时能力优先使用命名导出,例如 `calculateRoute`、`ExpoGaodeMapNaviView`、`openOfficialNaviPage`
|
|
501
|
+
- 类型请用 `import type`,例如 `RouteOptions`、`FollowWebPlannedRouteResult`
|
|
502
|
+
- 默认导出保留给需要整包挂载的场景,内容与常用路径规划和导航函数一致
|
|
503
|
+
- `NaviView` / `NaviViewRef` 仍作为兼容别名保留,新代码建议使用 `ExpoGaodeMapNaviView` / `ExpoGaodeMapNaviViewRef`
|
|
504
|
+
|
|
497
505
|
## API 参考
|
|
498
506
|
|
|
499
507
|
### DriveStrategy (驾车策略)
|
|
@@ -527,7 +535,7 @@ const result = await calculateTransitRoute({
|
|
|
527
535
|
- 基于 `onTrafficStatusesUpdate` 的自绘路况光柱
|
|
528
536
|
- “全览 / 锁车”与路况开关等浮层控制按钮
|
|
529
537
|
|
|
530
|
-
###
|
|
538
|
+
### ExpoGaodeMapNaviView Props
|
|
531
539
|
|
|
532
540
|
| 属性 | 类型 | 说明 |
|
|
533
541
|
|---|---|---|
|
|
@@ -569,7 +577,7 @@ const result = await calculateTransitRoute({
|
|
|
569
577
|
| `onNaviInfoUpdate` | function | 导航信息更新(剩余距离、时间等) |
|
|
570
578
|
| `onLaneInfoUpdate` | function | Android / iOS 车道信息更新,用于自绘车道 HUD |
|
|
571
579
|
|
|
572
|
-
###
|
|
580
|
+
### ExpoGaodeMapNaviView UI 能力清单
|
|
573
581
|
|
|
574
582
|
已开放且两端都有实现:
|
|
575
583
|
|
|
@@ -641,7 +649,7 @@ const result = await calculateTransitRoute({
|
|
|
641
649
|
2. **Web API**:如果需要更灵活的 HTTP 算路(如公交跨城规划、Web端展示),推荐配合 `expo-gaode-map-web-api` 使用。
|
|
642
650
|
3. **权限**:使用导航功能前,请确保应用已获取定位权限(`ACCESS_FINE_LOCATION`)。
|
|
643
651
|
4. **Android 状态栏兼容性**:`naviStatusBarEnabled` 依赖高德 Android 导航 SDK 某些版本才提供的 `AMapNaviViewOptions.setNaviStatusBarEnabled(...)`。当前封装已做兼容处理:若宿主工程解析到的 SDK 不包含该方法,则不会再编译失败,而是在运行时跳过该设置并输出 warning。此时该 prop 在 Android 上等价于 no-op。
|
|
644
|
-
5. **嵌入式 UI 边界**:库导出的是底层 `
|
|
652
|
+
5. **嵌入式 UI 边界**:库导出的是底层 `ExpoGaodeMapNaviView` 能力;完整自定义导航界面请参考 `example-navigation` 里的示例实现,它也不是高德官方黑盒导航页的 UI 替代品。
|
|
645
653
|
|
|
646
654
|
|
|
647
655
|
## 📚 文档与资源
|
package/build/index.d.ts
CHANGED
|
@@ -1,147 +1,47 @@
|
|
|
1
1
|
import ExpoGaodeMapNavigationModule from './ExpoGaodeMapNavigationModule';
|
|
2
2
|
import { ExpoGaodeMapNaviView, type ExpoGaodeMapNaviViewRef } from './ExpoGaodeMapNaviView';
|
|
3
3
|
export * from './map';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { DriveStrategy, RouteType, WalkStrategy, RideStrategy, TruckSize, TravelStrategy } from './types';
|
|
5
|
+
import { calculateRoute, calculateDriveRoute, calculateWalkRoute, calculateRideRoute, calculateEBikeRoute, calculateTransitRoute, calculateTruckRoute, calculateMotorcycleRoute, initNavigation, destroyAllCalculators, independentDriveRoute, independentTruckRoute, independentWalkRoute, independentRideRoute, independentMotorcycleRoute, selectIndependentRoute, startNaviWithIndependentPath, openOfficialNaviPage, clearIndependentRoute } from './route-planning';
|
|
6
|
+
import { buildAnchorWaypointsFromWebRoute } from './route-geometry';
|
|
7
|
+
import { followWebPlannedRoute } from './web-route-following';
|
|
8
|
+
export { calculateRoute, calculateDriveRoute, calculateWalkRoute, calculateRideRoute, calculateEBikeRoute, calculateTransitRoute, calculateTruckRoute, calculateMotorcycleRoute, initNavigation, destroyAllCalculators, independentDriveRoute, independentTruckRoute, independentWalkRoute, independentRideRoute, independentMotorcycleRoute, selectIndependentRoute, startNaviWithIndependentPath, openOfficialNaviPage, clearIndependentRoute, };
|
|
9
|
+
export { buildAnchorWaypointsFromWebRoute };
|
|
10
|
+
export { followWebPlannedRoute };
|
|
11
|
+
export { ExpoGaodeMapNavigationModule };
|
|
8
12
|
export { ExpoGaodeMapNaviView, type ExpoGaodeMapNaviViewRef };
|
|
9
13
|
/**
|
|
10
14
|
* @deprecated 请使用 `ExpoGaodeMapNaviView`
|
|
11
15
|
*/
|
|
12
|
-
export declare const NaviView: import("react").ForwardRefExoticComponent<ExpoGaodeMapNaviViewProps & import("react").RefAttributes<ExpoGaodeMapNaviViewRef>>;
|
|
16
|
+
export declare const NaviView: import("react").ForwardRefExoticComponent<import("./types").ExpoGaodeMapNaviViewProps & import("react").RefAttributes<ExpoGaodeMapNaviViewRef>>;
|
|
13
17
|
/**
|
|
14
18
|
* @deprecated 请使用 `ExpoGaodeMapNaviViewRef`
|
|
15
19
|
*/
|
|
16
20
|
export type NaviViewRef = ExpoGaodeMapNaviViewRef;
|
|
17
|
-
|
|
18
|
-
* 初始化导航模块(可选)
|
|
19
|
-
*/
|
|
20
|
-
export declare const initNavigation: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* 销毁所有路径计算器实例
|
|
23
|
-
* 用于页面切换时释放资源,避免"Another route calculation is in progress"错误
|
|
24
|
-
*/
|
|
25
|
-
export declare const destroyAllCalculators: () => void;
|
|
26
|
-
/**
|
|
27
|
-
* 路径规划(通用方法)
|
|
28
|
-
*/
|
|
29
|
-
export declare function calculateRoute(options: RouteOptions): Promise<RouteResult | DriveRouteResult>;
|
|
30
|
-
/**
|
|
31
|
-
* 驾车路径规划
|
|
32
|
-
*/
|
|
33
|
-
export declare function calculateDriveRoute(options: DriveRouteOptions): Promise<DriveRouteResult>;
|
|
34
|
-
/**
|
|
35
|
-
* 步行路径规划
|
|
36
|
-
*/
|
|
37
|
-
export declare const calculateWalkRoute: (options: WalkRouteOptions) => Promise<RouteResult>;
|
|
38
|
-
/**
|
|
39
|
-
* 骑行路径规划
|
|
40
|
-
*/
|
|
41
|
-
export declare const calculateRideRoute: (options: RideRouteOptions) => Promise<RouteResult>;
|
|
42
|
-
/**
|
|
43
|
-
* 骑行电动车路径规划
|
|
44
|
-
*/
|
|
45
|
-
export declare const calculateEBikeRoute: (options: EBikeRouteOptions) => Promise<RouteResult>;
|
|
46
|
-
/**
|
|
47
|
-
* 货车路径规划
|
|
48
|
-
*/
|
|
49
|
-
export declare const calculateTruckRoute: (options: TruckRouteOptions) => Promise<DriveRouteResult>;
|
|
50
|
-
/**
|
|
51
|
-
* 摩托车路径规划(车类型为 11,支持传入排量)
|
|
52
|
-
*/
|
|
53
|
-
export declare const calculateMotorcycleRoute: (options: MotorcycleRouteOptions) => Promise<DriveRouteResult>;
|
|
54
|
-
/**
|
|
55
|
-
* 公交换乘路径规划(运行时 fallback 到 Web API)
|
|
56
|
-
*/
|
|
57
|
-
export declare function calculateTransitRoute(options: TransitRouteOptions): Promise<DriveRouteResult>;
|
|
58
|
-
/**
|
|
59
|
-
* 独立驾车路径规划
|
|
60
|
-
*
|
|
61
|
-
* - 只负责生成独立路径组,不会自动开始导航
|
|
62
|
-
* - 适合路线预览、行前选路、自定义路线选择页
|
|
63
|
-
* - 后续可配合 selectIndependentRoute / startNaviWithIndependentPath 使用
|
|
64
|
-
*/
|
|
65
|
-
export declare const independentDriveRoute: (options: IndependentDriveRouteOptions) => Promise<IndependentRouteResult>;
|
|
66
|
-
/**
|
|
67
|
-
* 独立货车路径规划
|
|
68
|
-
*
|
|
69
|
-
* - 只负责生成独立路径组,不会自动开始导航
|
|
70
|
-
* - 适合路线预览、行前选路
|
|
71
|
-
*/
|
|
72
|
-
export declare const independentTruckRoute: (options: IndependentTruckRouteOptions) => Promise<IndependentRouteResult>;
|
|
73
|
-
/**
|
|
74
|
-
* 独立步行路径规划
|
|
75
|
-
*
|
|
76
|
-
* - 只负责生成独立路径组,不会自动开始导航
|
|
77
|
-
* - 适合路线预览、行前选路
|
|
78
|
-
*/
|
|
79
|
-
export declare const independentWalkRoute: (options: IndependentWalkRouteOptions) => Promise<IndependentRouteResult>;
|
|
80
|
-
/**
|
|
81
|
-
* 独立骑行路径规划
|
|
82
|
-
*
|
|
83
|
-
* - 只负责生成独立路径组,不会自动开始导航
|
|
84
|
-
* - 适合路线预览、行前选路
|
|
85
|
-
*/
|
|
86
|
-
export declare const independentRideRoute: (options: IndependentRideRouteOptions) => Promise<IndependentRouteResult>;
|
|
87
|
-
/**
|
|
88
|
-
* 独立摩托车路径规划
|
|
89
|
-
*
|
|
90
|
-
* - 只负责生成独立路径组,不会自动开始导航
|
|
91
|
-
* - 适合路线预览、行前选路
|
|
92
|
-
*/
|
|
93
|
-
export declare const independentMotorcycleRoute: (options: IndependentMotorcycleRouteOptions) => Promise<IndependentRouteResult>;
|
|
94
|
-
/**
|
|
95
|
-
* 独立路径组:选主路线
|
|
96
|
-
*
|
|
97
|
-
* - 仅切换 token 对应路径组里的当前主路线
|
|
98
|
-
* - 本身不会开始导航
|
|
99
|
-
*/
|
|
100
|
-
export declare const selectIndependentRoute: (options: SelectIndependentRouteOptions) => Promise<boolean>;
|
|
101
|
-
/**
|
|
102
|
-
* 独立路径组:使用指定路线启动导航
|
|
103
|
-
*
|
|
104
|
-
* - 这是模块级启动入口,不依赖 ExpoGaodeMapNaviView ref
|
|
105
|
-
* - 适合工具函数、流程封装、非嵌入式页面场景
|
|
106
|
-
* - 若你已经持有嵌入式导航视图 ref,更适合调用 ref.startNavigationWithIndependentPath(...)
|
|
107
|
-
*/
|
|
108
|
-
export declare const startNaviWithIndependentPath: (options: StartNaviWithIndependentPathOptions) => Promise<boolean>;
|
|
109
|
-
/**
|
|
110
|
-
* 打开高德官方导航页(Android 原生 AmapNaviPage)
|
|
111
|
-
*/
|
|
112
|
-
export declare const openOfficialNaviPage: (options: OfficialNaviPageOptions) => Promise<boolean>;
|
|
113
|
-
/**
|
|
114
|
-
* 独立路径组:清理
|
|
115
|
-
*
|
|
116
|
-
* - 释放 independentXXXRoute 生成的 token 对应缓存
|
|
117
|
-
* - 当页面只保留路线预览、不再需要后续选路/导航时,建议主动清理
|
|
118
|
-
*/
|
|
119
|
-
export declare const clearIndependentRoute: (options: ClearIndependentRouteOptions) => Promise<boolean>;
|
|
120
|
-
export type { NaviPoint, RouteOptions, DriveRouteOptions, WalkRouteOptions, RideRouteOptions, EBikeRouteOptions, TransitRouteOptionsType as TransitRouteOptions, TruckRouteOptions, RouteResult, DriveRouteResult, IndependentRouteResult, IndependentDriveRouteOptions, IndependentTruckRouteOptions, IndependentWalkRouteOptions, IndependentRideRouteOptions, SelectIndependentRouteOptions, StartNaviWithIndependentPathOptions, OfficialNaviPageOptions, ClearIndependentRouteOptions, MotorcycleRouteOptions, IndependentMotorcycleRouteOptions, BuildAnchorWaypointsOptions, FollowWebPlannedRouteOptions, FollowWebPlannedRouteResult, FollowWebPlannedRouteCandidate, WebPlannedRoute, NaviInfoUpdateEvent, NaviLaneInfoEvent, NaviTrafficStatusesEvent, NaviVisualStateEvent, ExpoGaodeMapNaviViewProps, };
|
|
21
|
+
export type { NaviPoint, RouteOptions, DriveRouteOptions, WalkRouteOptions, RideRouteOptions, EBikeRouteOptions, TransitRouteOptions, TruckRouteOptions, RouteResult, DriveRouteResult, IndependentRouteResult, IndependentDriveRouteOptions, IndependentTruckRouteOptions, IndependentWalkRouteOptions, IndependentRideRouteOptions, SelectIndependentRouteOptions, StartNaviWithIndependentPathOptions, OfficialNaviPageOptions, ClearIndependentRouteOptions, MotorcycleRouteOptions, IndependentMotorcycleRouteOptions, BuildAnchorWaypointsOptions, FollowWebPlannedRouteOptions, FollowWebPlannedRouteResult, FollowWebPlannedRouteCandidate, WebPlannedRoute, NaviInfoUpdateEvent, NaviLaneInfoEvent, NaviTrafficStatusesEvent, NaviVisualStateEvent, ExpoGaodeMapNaviViewProps, } from './types';
|
|
121
22
|
export { RouteType, DriveStrategy, WalkStrategy, RideStrategy, TruckSize, TravelStrategy, };
|
|
122
|
-
declare const
|
|
23
|
+
declare const ExpoGaodeMapNavigation: {
|
|
123
24
|
initNavigation: () => void;
|
|
124
25
|
destroyAllCalculators: () => void;
|
|
125
26
|
calculateRoute: typeof calculateRoute;
|
|
126
27
|
calculateDriveRoute: typeof calculateDriveRoute;
|
|
127
|
-
calculateWalkRoute: (options: WalkRouteOptions) => Promise<RouteResult>;
|
|
128
|
-
calculateRideRoute: (options: RideRouteOptions) => Promise<RouteResult>;
|
|
129
|
-
calculateEBikeRoute: (options: EBikeRouteOptions) => Promise<RouteResult>;
|
|
28
|
+
calculateWalkRoute: (options: import("./types").WalkRouteOptions) => Promise<import("./types").RouteResult>;
|
|
29
|
+
calculateRideRoute: (options: import("./types").RideRouteOptions) => Promise<import("./types").RouteResult>;
|
|
30
|
+
calculateEBikeRoute: (options: import("./types").EBikeRouteOptions) => Promise<import("./types").RouteResult>;
|
|
130
31
|
calculateTransitRoute: typeof calculateTransitRoute;
|
|
131
|
-
calculateTruckRoute: (options: TruckRouteOptions) => Promise<DriveRouteResult>;
|
|
132
|
-
calculateMotorcycleRoute: (options: MotorcycleRouteOptions) => Promise<DriveRouteResult>;
|
|
32
|
+
calculateTruckRoute: (options: import("./types").TruckRouteOptions) => Promise<import("./types").DriveRouteResult>;
|
|
33
|
+
calculateMotorcycleRoute: (options: import("./types").MotorcycleRouteOptions) => Promise<import("./types").DriveRouteResult>;
|
|
133
34
|
buildAnchorWaypointsFromWebRoute: typeof buildAnchorWaypointsFromWebRoute;
|
|
134
35
|
followWebPlannedRoute: typeof followWebPlannedRoute;
|
|
135
|
-
independentDriveRoute: (options: IndependentDriveRouteOptions) => Promise<IndependentRouteResult>;
|
|
136
|
-
independentTruckRoute: (options: IndependentTruckRouteOptions) => Promise<IndependentRouteResult>;
|
|
137
|
-
independentWalkRoute: (options: IndependentWalkRouteOptions) => Promise<IndependentRouteResult>;
|
|
138
|
-
independentRideRoute: (options: IndependentRideRouteOptions) => Promise<IndependentRouteResult>;
|
|
139
|
-
independentMotorcycleRoute: (options: IndependentMotorcycleRouteOptions) => Promise<IndependentRouteResult>;
|
|
140
|
-
selectIndependentRoute: (options: SelectIndependentRouteOptions) => Promise<boolean>;
|
|
141
|
-
startNaviWithIndependentPath: (options: StartNaviWithIndependentPathOptions) => Promise<boolean>;
|
|
142
|
-
openOfficialNaviPage: (options: OfficialNaviPageOptions) => Promise<boolean>;
|
|
143
|
-
clearIndependentRoute: (options: ClearIndependentRouteOptions) => Promise<boolean>;
|
|
36
|
+
independentDriveRoute: (options: import("./types").IndependentDriveRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
37
|
+
independentTruckRoute: (options: import("./types").IndependentTruckRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
38
|
+
independentWalkRoute: (options: import("./types").IndependentWalkRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
39
|
+
independentRideRoute: (options: import("./types").IndependentRideRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
40
|
+
independentMotorcycleRoute: (options: import("./types").IndependentMotorcycleRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
41
|
+
selectIndependentRoute: (options: import("./types").SelectIndependentRouteOptions) => Promise<boolean>;
|
|
42
|
+
startNaviWithIndependentPath: (options: import("./types").StartNaviWithIndependentPathOptions) => Promise<boolean>;
|
|
43
|
+
openOfficialNaviPage: (options: import("./types").OfficialNaviPageOptions) => Promise<boolean>;
|
|
44
|
+
clearIndependentRoute: (options: import("./types").ClearIndependentRouteOptions) => Promise<boolean>;
|
|
144
45
|
};
|
|
145
|
-
export default
|
|
146
|
-
export { ExpoGaodeMapNavigationModule, };
|
|
46
|
+
export default ExpoGaodeMapNavigation;
|
|
147
47
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,KAAK,uBAAuB,EAC7B,MAAM,wBAAwB,CAAC;A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