Browse Source

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

chenrui 4 years ago
parent
commit
90d317705e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pages/index/map.vue

+ 1 - 0
pages/index/map.vue

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