소스 검색

地图路线规划参数更改为参考实时路况时间最短和地点精确到小区/大厦

chenrui 4 년 전
부모
커밋
90d317705e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      pages/index/map.vue

+ 1 - 0
pages/index/map.vue

@@ -154,6 +154,7 @@
 						latitude: position[1].latitude,
 						longitude: position[1].longitude
 					}, 
+					policy: 'LEAST_TIME,NAV_POINT_FIRST',
 					success: function (res) {
 						var ret = res
 						var coors = ret.result.routes[0].polyline, pl = []