expo-gaode-map-web-api 2.0.8 → 2.0.10

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 CHANGED
@@ -422,6 +422,8 @@ const result = await api.route.driving(
422
422
  waypoints: ['116.45,39.95', '116.46,39.94'], // 途经点
423
423
  strategy: DrivingStrategy.AVOID_JAM, // 躲避拥堵(新版使用33)
424
424
  show_fields: 'cost,navi,polyline', // 返回成本、导航、坐标信息
425
+ avoidroad: '京通快速路', // 避让道路名称
426
+ avoidpolygons: '116.39,39.90;116.40,39.90;116.40,39.91;116.39,39.91', // 避让区域
425
427
  plate: '京AHA322', // 车牌号(用于判断限行)
426
428
  cartype: 0, // 车辆类型:0-燃油,1-纯电,2-插混
427
429
  ferry: 0, // 是否使用轮渡:0-使用,1-不使用
@@ -780,7 +782,8 @@ try {
780
782
  ## 📚 文档与资源
781
783
  - [在线文档](https://tomwq.github.io/expo-gaode-map/api/web-api.html)
782
784
  - [GitHub 仓库](https://github.com/TomWq/expo-gaode-map/packages/web-api)
783
- - [示例项目(地图)](https://github.com/TomWq/expo-gaode-map-example)
785
+ - [地图示例工程](../../example)
786
+ - [导航示例工程](../../example-navigation)
784
787
  - [高德地图开放平台](https://lbs.amap.com/)
785
788
  - [Expo Modules API](https://docs.expo.dev/modules/overview/)
786
789
 
@@ -120,6 +120,11 @@ export interface DrivingRouteParams extends BaseRouteParams {
120
120
  * 格式:"经度1,纬度1;经度2,纬度2|经度3,纬度3;经度4,纬度4"
121
121
  */
122
122
  avoidpolygons?: string;
123
+ /**
124
+ * 避让道路名称
125
+ * 传入道路名后,服务会尽量规避该道路。
126
+ */
127
+ avoidroad?: string;
123
128
  /**
124
129
  * 车牌号
125
130
  * 如:京AHA322,支持6位传统车牌和7位新能源车牌
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-gaode-map-web-api",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "description": "AMap (Gaode Map) Web API toolkit for Expo/React Native: search, geocoding, and route planning in pure JavaScript.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",