@heycar/heycars-map 0.10.2 → 0.10.3-relay1
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 +7 -0
- package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +1 -0
- package/dist/v2/Demo/DemoBusinessTaxiService.js +39 -19
- package/dist/v2/api/cdn.d.ts +1 -0
- package/dist/v2/api/cdn.js +3 -1
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +2 -0
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +25 -3
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +5 -0
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +141 -0
- package/dist/v2/business-components/PlaceCircle/PlaceCircle.js +1 -1
- package/dist/v2/business-components/StartEndPoint/StartEndPoint.css.d.ts +5 -0
- package/dist/v2/business-components/StartEndPoint/StartEndPoint.d.ts +1 -1
- package/dist/v2/business-components/StartEndPoint/StartEndPoint.js +3 -3
- package/dist/v2/business-components/TaxiCar/TaxiCar.js +1 -1
- package/dist/v2/chunks/{StartEndPoint.css.8242788c.js → StartEndPoint.css.38f98dca.js} +4 -4
- package/dist/{v3/css/PlaceCircle-3c051f4e.css → v2/css/PlaceCircle-fe58915a.css} +1 -0
- package/dist/v2/css/{StartEndPoint-d7806e8e.css → StartEndPoint-5bf29d8c.css} +7 -2
- package/dist/v2/hooks/useDeviationCorrectionDrivingRoute.d.ts +2 -1
- package/dist/v2/hooks/useDeviationCorrectionDrivingRoute.js +12 -5
- package/dist/v2/hooks/useDrivingRoute.d.ts +4 -3
- package/dist/v2/hooks/useDrivingRoute.js +14 -12
- package/dist/v2/types/interface.d.ts +1 -1
- package/dist/v2/utils/log.js +1 -1
- package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +1 -0
- package/dist/v3/Demo/DemoBusinessTaxiService.js +39 -19
- package/dist/v3/api/cdn.d.ts +1 -0
- package/dist/v3/api/cdn.js +3 -1
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +2 -0
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +21 -3
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +9 -0
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +113 -0
- package/dist/v3/business-components/PlaceCircle/PlaceCircle.js +1 -1
- package/dist/v3/business-components/StartEndPoint/StartEndPoint.css.d.ts +5 -0
- package/dist/v3/business-components/StartEndPoint/StartEndPoint.d.ts +1 -1
- package/dist/v3/business-components/StartEndPoint/StartEndPoint.js +3 -3
- package/dist/v3/business-components/TaxiCar/TaxiCar.js +1 -1
- package/dist/v3/chunks/{StartEndPoint.css.8242788c.js → StartEndPoint.css.38f98dca.js} +4 -4
- package/dist/{v2/css/PlaceCircle-3c051f4e.css → v3/css/PlaceCircle-fe58915a.css} +1 -0
- package/dist/v3/css/{StartEndPoint-d7806e8e.css → StartEndPoint-5bf29d8c.css} +7 -2
- package/dist/v3/hooks/useDeviationCorrectionDrivingRoute.d.ts +2 -1
- package/dist/v3/hooks/useDeviationCorrectionDrivingRoute.js +12 -5
- package/dist/v3/hooks/useDrivingRoute.d.ts +4 -3
- package/dist/v3/hooks/useDrivingRoute.js +14 -12
- package/dist/v3/types/interface.d.ts +1 -1
- package/dist/v3/utils/log.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -431,6 +431,13 @@ export default defineComponent({
|
|
|
431
431
|
lat: 1.2966426,
|
|
432
432
|
lng: 103.7763939,
|
|
433
433
|
}}
|
|
434
|
+
relayTo={{
|
|
435
|
+
displayName: "UFOU沃达迈Waldmann(虹桥南丰城南区店)",
|
|
436
|
+
name: "虹桥南丰城南区2楼208号",
|
|
437
|
+
lat: 31.207145,
|
|
438
|
+
lng: 121.407842,
|
|
439
|
+
}}
|
|
440
|
+
relayToTitle="上个乘客将\n在这下车"
|
|
434
441
|
driverStatus={"driverArrived"}
|
|
435
442
|
bookDispatchingTitle="2月14日 11:00 用车"
|
|
436
443
|
dispatchingTitle="正在为您搜索附近司机"
|
|
@@ -4,7 +4,23 @@ import { BusinessTaxiServiceMap } from "../business-components/BusinessTaxiServi
|
|
|
4
4
|
import { useBusinessTaxiServiceMap } from "../hooks-business/useBusinessTaxiServiceMap.js";
|
|
5
5
|
import { isPlace } from "../utils/helper.js";
|
|
6
6
|
import { l as layout, a as adjustedDemo } from "../chunks/Demo.css.e921a2f6.js";
|
|
7
|
-
const allDriverStatus = ["dispatching", "book-dispatching", "dispatched", "driverStartService", "book-driverStartService", "book-dispatched", "driverArrived", "inService", "canceled", "endService", "completed", "canceling", "banlanceRefund", "waitBanlanceRefund", "rechargePayed", "waitRechargePay", "payed", "waitpay", "refund", "confirmed", "assign"];
|
|
7
|
+
const allDriverStatus = ["dispatching", "book-dispatching", "dispatched", "driverStartRelayService", "driverStartService", "book-driverStartService", "book-dispatched", "driverArrived", "inService", "canceled", "endService", "completed", "canceling", "banlanceRefund", "waitBanlanceRefund", "rechargePayed", "waitRechargePay", "payed", "waitpay", "refund", "confirmed", "assign"];
|
|
8
|
+
const mockDriverTrackPoints = [{
|
|
9
|
+
lng: 121.4036983,
|
|
10
|
+
lat: 31.216324,
|
|
11
|
+
angle: 30,
|
|
12
|
+
timestamp: 1698058438e3
|
|
13
|
+
}, {
|
|
14
|
+
lng: 121.4036983,
|
|
15
|
+
lat: 31.216324,
|
|
16
|
+
angle: 30,
|
|
17
|
+
timestamp: 1698058439e3
|
|
18
|
+
}, {
|
|
19
|
+
lng: 121.403581,
|
|
20
|
+
lat: 31.216415,
|
|
21
|
+
angle: 30,
|
|
22
|
+
timestamp: 1698058442e3
|
|
23
|
+
}];
|
|
8
24
|
const DemoBusinessTaxiService = defineComponent({
|
|
9
25
|
name: "DemoBusinessTaxiService",
|
|
10
26
|
setup() {
|
|
@@ -21,7 +37,8 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
21
37
|
return {
|
|
22
38
|
from: {},
|
|
23
39
|
to: {},
|
|
24
|
-
|
|
40
|
+
relayTo: {},
|
|
41
|
+
status: "driverStartRelayService",
|
|
25
42
|
contentHeight: 200
|
|
26
43
|
};
|
|
27
44
|
},
|
|
@@ -37,6 +54,11 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
37
54
|
lng: 121.3995217963426,
|
|
38
55
|
name: "上海站"
|
|
39
56
|
};
|
|
57
|
+
this.relayTo = {
|
|
58
|
+
lat: 31.207145,
|
|
59
|
+
lng: 121.407842,
|
|
60
|
+
name: "UFOU沃达迈Waldmann(虹桥南丰城南区店)"
|
|
61
|
+
};
|
|
40
62
|
}, 1e3);
|
|
41
63
|
setTimeout(() => {
|
|
42
64
|
this.contentHeight = 600;
|
|
@@ -46,28 +68,23 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
46
68
|
const {
|
|
47
69
|
value: status
|
|
48
70
|
} = statusIterator.next();
|
|
49
|
-
|
|
71
|
+
if (status) {
|
|
72
|
+
this.status = status;
|
|
73
|
+
}
|
|
50
74
|
return status;
|
|
51
75
|
};
|
|
76
|
+
window.addDriverPosition = (lng, lat, angle = 0) => {
|
|
77
|
+
mockDriverTrackPoints.push({
|
|
78
|
+
lng,
|
|
79
|
+
lat,
|
|
80
|
+
angle,
|
|
81
|
+
timestamp: Date.now()
|
|
82
|
+
});
|
|
83
|
+
};
|
|
52
84
|
},
|
|
53
85
|
methods: {
|
|
54
86
|
getDriverPositionTrack() {
|
|
55
|
-
return Promise.resolve(
|
|
56
|
-
lng: 121.4036983,
|
|
57
|
-
lat: 31.216324,
|
|
58
|
-
angle: 30,
|
|
59
|
-
timestamp: 1698058438e3
|
|
60
|
-
}, {
|
|
61
|
-
lng: 121.4036983,
|
|
62
|
-
lat: 31.216324,
|
|
63
|
-
angle: 30,
|
|
64
|
-
timestamp: 1698058439e3
|
|
65
|
-
}, {
|
|
66
|
-
lng: 121.403581,
|
|
67
|
-
lat: 31.216415,
|
|
68
|
-
angle: 30,
|
|
69
|
-
timestamp: 1698058442e3
|
|
70
|
-
}]);
|
|
87
|
+
return Promise.resolve(mockDriverTrackPoints);
|
|
71
88
|
}
|
|
72
89
|
},
|
|
73
90
|
render() {
|
|
@@ -77,6 +94,7 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
77
94
|
registerFitVeiw,
|
|
78
95
|
from,
|
|
79
96
|
to,
|
|
97
|
+
relayTo,
|
|
80
98
|
status
|
|
81
99
|
} = this;
|
|
82
100
|
const isReady = isPlace(from) && isPlace(to);
|
|
@@ -92,7 +110,9 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
92
110
|
"attrs": {
|
|
93
111
|
"from": from,
|
|
94
112
|
"to": to,
|
|
113
|
+
"relayTo": relayTo,
|
|
95
114
|
"driverStatus": status,
|
|
115
|
+
"relayToTitle": "上个乘客将\n在这下车",
|
|
96
116
|
"bookDispatchingTitle": "2月14日 11:00 用车",
|
|
97
117
|
"dispatchingTitle": "正在为您搜索附近司机",
|
|
98
118
|
"driverArrivedTitle": "司机已等待 00:35",
|
package/dist/v2/api/cdn.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare const ICON_END_POINT_EN_URL = "https://overseas-oss.heycars.cn/he
|
|
|
5
5
|
export declare const ICON_END_POINT_ZH_TW_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/end-point-zh-TW.svg";
|
|
6
6
|
export declare const ICON_TAXI_CAR_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/taxi-car.svg";
|
|
7
7
|
export declare const ICON_DOT_LOADING_URL = "https://overseas-oss.heycars.cn/heycar-map/gif/dot-loading.gif";
|
|
8
|
+
export declare const ICON_WAYPOINT_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/waypoint.svg";
|
package/dist/v2/api/cdn.js
CHANGED
|
@@ -5,6 +5,7 @@ const ICON_END_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/en
|
|
|
5
5
|
const ICON_END_POINT_ZH_TW_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/end-point-zh-TW.svg";
|
|
6
6
|
const ICON_TAXI_CAR_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/taxi-car.svg";
|
|
7
7
|
const ICON_DOT_LOADING_URL = "https://overseas-oss.heycars.cn/heycar-map/gif/dot-loading.gif";
|
|
8
|
+
const ICON_WAYPOINT_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/waypoint.svg";
|
|
8
9
|
export {
|
|
9
10
|
AMAP_DEFAULT_MARKER_ICON_URL,
|
|
10
11
|
ICON_DOT_LOADING_URL,
|
|
@@ -12,5 +13,6 @@ export {
|
|
|
12
13
|
ICON_END_POINT_ZH_TW_URL,
|
|
13
14
|
ICON_FULL_SCREEN_URL,
|
|
14
15
|
ICON_START_POINT_EN_URL,
|
|
15
|
-
ICON_TAXI_CAR_URL
|
|
16
|
+
ICON_TAXI_CAR_URL,
|
|
17
|
+
ICON_WAYPOINT_URL
|
|
16
18
|
};
|
|
@@ -9,8 +9,8 @@ import { assertNotEmptyArray } from "../../utils/helper.js";
|
|
|
9
9
|
import { toPlaceType, place2point, combineHandler, pipeDefer, toTrackPoints, lnglat2point } from "../../utils/transform.js";
|
|
10
10
|
import { AuxiliaryGraspRoad } from "../AuxiliaryGraspRoad/AuxiliaryGraspRoad.js";
|
|
11
11
|
import { DeviceOrientation } from "../DeviceOrientation/DeviceOrientation.js";
|
|
12
|
-
import { SectionDispatching, SectionConfirmed, SectionDriverStartService, SectionBookDispatched, SectionInService, SectionDriverArrived, SectionCanceled, SectionEndService } from "./BusinessTaxiServiceSection.js";
|
|
13
|
-
const STATUS_NEED_CAR_POSITION = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"];
|
|
12
|
+
import { SectionDispatching, SectionConfirmed, SectionDriverStartRelayService, SectionDriverStartService, SectionBookDispatched, SectionInService, SectionDriverArrived, SectionCanceled, SectionEndService } from "./BusinessTaxiServiceSection.js";
|
|
13
|
+
const STATUS_NEED_CAR_POSITION = ["book-driverStartService", "dispatched", "driverStartRelayService", "driverStartService", "inService", "driverArrived"];
|
|
14
14
|
const IS_ENABLE_AUXILIARY_GRASP_ROAD = apiGetAuxiliaryGrapStatus();
|
|
15
15
|
const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", function(props, {
|
|
16
16
|
attrs
|
|
@@ -64,12 +64,15 @@ const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", funct
|
|
|
64
64
|
driverStatus,
|
|
65
65
|
from: inputFrom,
|
|
66
66
|
to: inputTo,
|
|
67
|
+
relayTo: inputRelayTo,
|
|
68
|
+
relayToTitle,
|
|
67
69
|
dispatchingTitle,
|
|
68
70
|
bookDispatchingTitle,
|
|
69
71
|
driverArrivedTitle
|
|
70
72
|
} = props;
|
|
71
73
|
const from = toPlaceType(inputFrom);
|
|
72
74
|
const to = toPlaceType(inputTo);
|
|
75
|
+
const relayTo = inputRelayTo ? toPlaceType(inputRelayTo) : void 0;
|
|
73
76
|
const carPosition = carPositionRef.value;
|
|
74
77
|
const carAngle = carAngleRef.value;
|
|
75
78
|
const carTrackPositions = carTrackPositionsRef.value;
|
|
@@ -113,6 +116,25 @@ const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", funct
|
|
|
113
116
|
}
|
|
114
117
|
})
|
|
115
118
|
}
|
|
119
|
+
}) : driverStatus === "driverStartRelayService" ? h(DeviceOrientation, {
|
|
120
|
+
"attrs": {
|
|
121
|
+
"elementRef": mapElementRef,
|
|
122
|
+
"disable": !passengerPosition,
|
|
123
|
+
"render": (orientation) => h(SectionDriverStartRelayService, {
|
|
124
|
+
"attrs": {
|
|
125
|
+
"from": from,
|
|
126
|
+
"relayTo": relayTo,
|
|
127
|
+
"carPosition": carPosition,
|
|
128
|
+
"carAngle": carAngle,
|
|
129
|
+
"carTrackPositions": carTrackPositions,
|
|
130
|
+
"passengerPosition": passengerPosition,
|
|
131
|
+
"passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
|
|
132
|
+
"relayToTitle": relayToTitle,
|
|
133
|
+
"renderTitle": renderStartSerivceTitle,
|
|
134
|
+
"registerOverlay": registerOverlay
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
}
|
|
116
138
|
}) : driverStatus === "dispatched" || driverStatus === "driverStartService" || driverStatus === "book-driverStartService" ? h(DeviceOrientation, {
|
|
117
139
|
"attrs": {
|
|
118
140
|
"elementRef": mapElementRef,
|
|
@@ -199,7 +221,7 @@ const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", funct
|
|
|
199
221
|
}
|
|
200
222
|
})]);
|
|
201
223
|
};
|
|
202
|
-
}).props(["bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]);
|
|
224
|
+
}).props(["bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapRef", "relayTo", "relayToTitle", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]);
|
|
203
225
|
export {
|
|
204
226
|
BusinessTaxiServiceMap
|
|
205
227
|
};
|
|
@@ -13,6 +13,11 @@ type SectionConfirmedProps = Required<MROP> & {
|
|
|
13
13
|
to: Place;
|
|
14
14
|
};
|
|
15
15
|
export declare const SectionConfirmed: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionConfirmedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionConfirmedProps, Required<SectionConfirmedProps>>, never, SectionConfirmedProps>;
|
|
16
|
+
interface SectionDriverStartRelayServiceProps extends SectionDriverStartServiceProps {
|
|
17
|
+
relayTo?: Place;
|
|
18
|
+
relayToTitle?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const SectionDriverStartRelayService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartRelayServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverStartRelayServiceProps, Required<SectionDriverStartRelayServiceProps>>, never, SectionDriverStartRelayServiceProps>;
|
|
16
21
|
type SectionDriverStartServiceProps = Required<MROP> & {
|
|
17
22
|
passengerPosition?: Point;
|
|
18
23
|
passengerAngle?: string;
|
|
@@ -141,6 +141,146 @@ const SectionConfirmed = defineSetup("SectionConfirmed", function(props) {
|
|
|
141
141
|
})]);
|
|
142
142
|
};
|
|
143
143
|
});
|
|
144
|
+
const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayService", function(props) {
|
|
145
|
+
const {
|
|
146
|
+
registerOverlay
|
|
147
|
+
} = props;
|
|
148
|
+
const fittableRegistryOverlay = createFittableRegisterOverlay({
|
|
149
|
+
registerOverlay,
|
|
150
|
+
immediate: true
|
|
151
|
+
});
|
|
152
|
+
const {
|
|
153
|
+
language
|
|
154
|
+
} = useMapSupplier();
|
|
155
|
+
const {
|
|
156
|
+
apiMapDistance
|
|
157
|
+
} = useMapGeometry();
|
|
158
|
+
return () => {
|
|
159
|
+
const {
|
|
160
|
+
from: fromPlace,
|
|
161
|
+
relayTo: relayToPlace,
|
|
162
|
+
carPosition,
|
|
163
|
+
carAngle,
|
|
164
|
+
carTrackPositions,
|
|
165
|
+
passengerPosition,
|
|
166
|
+
passengerAngle,
|
|
167
|
+
relayToTitle,
|
|
168
|
+
renderTitle
|
|
169
|
+
} = props;
|
|
170
|
+
const from = place2point(fromPlace);
|
|
171
|
+
const relayTo = relayToPlace ? place2point(relayToPlace) : void 0;
|
|
172
|
+
const waypoints = relayTo ? [relayTo] : void 0;
|
|
173
|
+
const passengerDistance = passengerPosition ? apiMapDistance(passengerPosition, from) : void 0;
|
|
174
|
+
const carDistance = carPosition ? apiMapDistance(carPosition, from) : void 0;
|
|
175
|
+
return h("div", [h(ConditionalFittablePassengerCircle, {
|
|
176
|
+
"attrs": {
|
|
177
|
+
"position": passengerPosition,
|
|
178
|
+
"angle": passengerAngle,
|
|
179
|
+
"condition": !!passengerDistance && passengerDistance < PASSENGER_DISTANCE_MAX,
|
|
180
|
+
"registerOverlay": registerOverlay
|
|
181
|
+
}
|
|
182
|
+
}), h(StartEndPoint, {
|
|
183
|
+
"attrs": {
|
|
184
|
+
"type": "start",
|
|
185
|
+
"position": from,
|
|
186
|
+
"registerOverlay": registerOverlay,
|
|
187
|
+
"language": language
|
|
188
|
+
}
|
|
189
|
+
}), h(PlaceCircle, {
|
|
190
|
+
"attrs": {
|
|
191
|
+
"position": from,
|
|
192
|
+
"label": fromPlace.displayName,
|
|
193
|
+
"hideIcon": true
|
|
194
|
+
}
|
|
195
|
+
}), !!relayTo && h(StartEndPoint, {
|
|
196
|
+
"attrs": {
|
|
197
|
+
"type": "waypoint",
|
|
198
|
+
"position": relayTo,
|
|
199
|
+
"registerOverlay": registerOverlay,
|
|
200
|
+
"language": language
|
|
201
|
+
}
|
|
202
|
+
}), !!relayTo && !!relayToTitle && h(PlaceCircle, {
|
|
203
|
+
"attrs": {
|
|
204
|
+
"position": relayTo,
|
|
205
|
+
"label": relayToTitle,
|
|
206
|
+
"hideIcon": true
|
|
207
|
+
}
|
|
208
|
+
}), !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? h(DeviationCorrectionDrivingRoute, {
|
|
209
|
+
"attrs": {
|
|
210
|
+
"tracks": carTrackPositions,
|
|
211
|
+
"to": from,
|
|
212
|
+
"waypoints": waypoints,
|
|
213
|
+
"deviation": MAX_DEVIATION_DISTANCE,
|
|
214
|
+
"render": ({
|
|
215
|
+
path,
|
|
216
|
+
angle,
|
|
217
|
+
distance,
|
|
218
|
+
duration
|
|
219
|
+
}) => {
|
|
220
|
+
var _a;
|
|
221
|
+
return [h(DrivingLine, {
|
|
222
|
+
"attrs": {
|
|
223
|
+
"path": path
|
|
224
|
+
}
|
|
225
|
+
}), h(TaxiCar, {
|
|
226
|
+
"attrs": {
|
|
227
|
+
"position": (_a = path[0]) != null ? _a : carPosition,
|
|
228
|
+
"angle": angle != null ? angle : carAngle,
|
|
229
|
+
"title": renderTitle({
|
|
230
|
+
distance,
|
|
231
|
+
duration
|
|
232
|
+
}),
|
|
233
|
+
"registerOverlay": fittableRegistryOverlay
|
|
234
|
+
}
|
|
235
|
+
})];
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}) : h(GraspRoad, {
|
|
239
|
+
"attrs": {
|
|
240
|
+
"tracks": carTrackPositions,
|
|
241
|
+
"render": ({
|
|
242
|
+
path: graspRoadPath,
|
|
243
|
+
angle
|
|
244
|
+
}) => {
|
|
245
|
+
var _a;
|
|
246
|
+
return h(TaxiCar, {
|
|
247
|
+
"attrs": {
|
|
248
|
+
"position": (_a = graspRoadPath[graspRoadPath.length - 1]) != null ? _a : carPosition,
|
|
249
|
+
"angle": angle != null ? angle : carAngle,
|
|
250
|
+
"title": renderTitle({
|
|
251
|
+
distance: carDistance,
|
|
252
|
+
duration: carDurationWithinMinDistance(carDistance)
|
|
253
|
+
}),
|
|
254
|
+
"registerOverlay": fittableRegistryOverlay
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}), !!passengerPosition && passengerDistance && passengerDistance < PASSENGER_DISTANCE_MAX && passengerDistance > PASSENGER_DISTANCE_MIN && h(WalkingRoute, {
|
|
260
|
+
"attrs": {
|
|
261
|
+
"from": passengerPosition,
|
|
262
|
+
"to": from,
|
|
263
|
+
"render": ({
|
|
264
|
+
path
|
|
265
|
+
}) => h(WalkingLine, {
|
|
266
|
+
"attrs": {
|
|
267
|
+
"path": path
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
}
|
|
271
|
+
}), h(FitViewOnce, {
|
|
272
|
+
"attrs": {
|
|
273
|
+
"registerOverlay": registerOverlay,
|
|
274
|
+
"immediate": true
|
|
275
|
+
}
|
|
276
|
+
}), h(InterruptableIntervalFitView, {
|
|
277
|
+
"attrs": {
|
|
278
|
+
"interval": AUTO_FIT_VIEW_INTERVAL,
|
|
279
|
+
"registerOverlay": registerOverlay
|
|
280
|
+
}
|
|
281
|
+
})]);
|
|
282
|
+
};
|
|
283
|
+
});
|
|
144
284
|
const SectionDriverStartService = defineSetup("SectionDriverStartService", function(props) {
|
|
145
285
|
const {
|
|
146
286
|
registerOverlay
|
|
@@ -651,6 +791,7 @@ export {
|
|
|
651
791
|
SectionConfirmed,
|
|
652
792
|
SectionDispatching,
|
|
653
793
|
SectionDriverArrived,
|
|
794
|
+
SectionDriverStartRelayService,
|
|
654
795
|
SectionDriverStartService,
|
|
655
796
|
SectionEndService,
|
|
656
797
|
SectionInService
|
|
@@ -16,6 +16,11 @@ export declare const pointIcon: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
16
16
|
width: "6.192vw";
|
|
17
17
|
height: "7.998vw";
|
|
18
18
|
};
|
|
19
|
+
waypoint: {
|
|
20
|
+
marginTop: "1.33vw";
|
|
21
|
+
width: "6.192vw";
|
|
22
|
+
height: "7.998vw";
|
|
23
|
+
};
|
|
19
24
|
};
|
|
20
25
|
}>;
|
|
21
26
|
export declare const textLayout: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
@@ -2,7 +2,7 @@ import type { GmapOverlay, MapRegisterOverlayProps } from "../../hooks/useOverla
|
|
|
2
2
|
import type { Language, Point } from "../../types/interface";
|
|
3
3
|
export interface StartEndPointProps<T> extends MapRegisterOverlayProps<T> {
|
|
4
4
|
language: Language;
|
|
5
|
-
type: "start" | "end";
|
|
5
|
+
type: "start" | "end" | "waypoint";
|
|
6
6
|
position: [number, number];
|
|
7
7
|
title?: string;
|
|
8
8
|
description?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { computed } from "vue-demi";
|
|
3
|
-
import { ICON_START_POINT_EN_URL, ICON_END_POINT_ZH_TW_URL, ICON_END_POINT_EN_URL } from "../../api/cdn.js";
|
|
3
|
+
import { ICON_WAYPOINT_URL, ICON_START_POINT_EN_URL, ICON_END_POINT_ZH_TW_URL, ICON_END_POINT_EN_URL } from "../../api/cdn.js";
|
|
4
4
|
import { ZINDEX_START_END_LOGO_LAYER } from "../../api/contants.js";
|
|
5
5
|
import { i as imgArrowRight } from "../../chunks/arrow-right.eedc7433.js";
|
|
6
6
|
import { AmapMarker } from "../../components/AmapMarker/AmapMarker.js";
|
|
@@ -10,7 +10,7 @@ import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
|
10
10
|
import { defineSetup } from "../../types/helper.js";
|
|
11
11
|
import { createDom } from "../../utils/dom.js";
|
|
12
12
|
import { decodeAsterisk, vec2lnglat } from "../../utils/transform.js";
|
|
13
|
-
import { p as pointInfoBoxEmphasize, a as pointIcon, b as pointLayout, c as pointSingleInfoBox, d as pointInfoBoxTitle, t as textLayout, e as arrowRight, f as pointInfoBox, g as pointInfoBoxDescription } from "../../chunks/StartEndPoint.css.
|
|
13
|
+
import { p as pointInfoBoxEmphasize, a as pointIcon, b as pointLayout, c as pointSingleInfoBox, d as pointInfoBoxTitle, t as textLayout, e as arrowRight, f as pointInfoBox, g as pointInfoBoxDescription } from "../../chunks/StartEndPoint.css.38f98dca.js";
|
|
14
14
|
const imgEndPoint = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyNy4wMDZjMi4xMjggMC0uOS0zLjc0MyA1LjYyMS02LjY0M0MxOS44NDIgMTguNDUzIDIyIDE0Ljk1MyAyMiAxMC45NSAyMiA0LjkwMiAxNy4wNzUgMCAxMSAwUzAgNC45MDIgMCAxMC45NWMwIDMuOTE4IDIuMDY4IDcuMzU2IDUuMTc3IDkuMjlDMTEuNzUgMjMuMjg0IDkuMDYgMjcuMDA3IDExIDI3LjAwN3oiIHN0cm9rZT0iI0ZGRiIgZmlsbD0idXJsKCNwcmVmaXhfX2EpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSIvPjx0ZXh0IGZvbnQtZmFtaWx5PSJQaW5nRmFuZ1NDLVNlbWlib2xkLCBQaW5nRmFuZyBTQyIgZm9udC1zaXplPSIxMiIgZm9udC13ZWlnaHQ9IjUwMCIgZmlsbD0iI0ZGRiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxLjIxNSkiPjx0c3BhbiB4PSI1IiB5PSIxNS40NDkiPue7iDwvdHNwYW4+PC90ZXh0PjwvZz48L3N2Zz4=";
|
|
15
15
|
const imgStartPoint = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjUwJSIgeDI9IjEyOS41OTklIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjMzZBOEZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ4NzFGMSIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTIgMzAuMjE1YzEuOTUgMCAzLjUzMi0uODE2IDMuNTMyLTEuODIzIDAtMS4wMDctMS41ODEtMS44MjMtMy41MzItMS44MjMtMS45NSAwLTMuNTMyLjgxNi0zLjUzMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
16
16
|
const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
|
|
@@ -24,7 +24,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
|
|
|
24
24
|
type,
|
|
25
25
|
language
|
|
26
26
|
} = props;
|
|
27
|
-
const icon = type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" ? imgEndPoint : language === "zh-TW" ? ICON_END_POINT_ZH_TW_URL : ICON_END_POINT_EN_URL;
|
|
27
|
+
const icon = type === "waypoint" ? ICON_WAYPOINT_URL : type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" ? imgEndPoint : language === "zh-TW" ? ICON_END_POINT_ZH_TW_URL : ICON_END_POINT_EN_URL;
|
|
28
28
|
const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
|
|
29
29
|
if (!description && !title)
|
|
30
30
|
return `<img class="AStartEndPoint ${pointIcon({
|
|
@@ -10,7 +10,7 @@ import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
|
10
10
|
import { defineSetup } from "../../types/helper.js";
|
|
11
11
|
import { createDom } from "../../utils/dom.js";
|
|
12
12
|
import { decodeAsterisk, vec2lnglat } from "../../utils/transform.js";
|
|
13
|
-
import { p as pointInfoBoxEmphasize, b as pointLayout, c as pointSingleInfoBox } from "../../chunks/StartEndPoint.css.
|
|
13
|
+
import { p as pointInfoBoxEmphasize, b as pointLayout, c as pointSingleInfoBox } from "../../chunks/StartEndPoint.css.38f98dca.js";
|
|
14
14
|
import { c as createRuntimeFn } from "../../chunks/vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
|
|
15
15
|
const TaxiCar_css_ts_vanilla = "";
|
|
16
16
|
var carIcon = "_65j3sr1";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../css/StartEndPoint-
|
|
1
|
+
import "../css/StartEndPoint-5bf29d8c.css";
|
|
2
2
|
import { c as createRuntimeFn } from "./vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
|
|
3
3
|
const StartEndPoint_css_ts_vanilla = "";
|
|
4
|
-
var arrowRight = createRuntimeFn({ defaultClassName: "
|
|
5
|
-
var pointIcon = createRuntimeFn({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4
|
+
var arrowRight = createRuntimeFn({ defaultClassName: "_4a4ovkb", variantClassNames: { withArrow: { true: "_4a4ovkc", false: "_4a4ovkd" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
|
+
var pointIcon = createRuntimeFn({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7", waypoint: "_4a4ovk8" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
6
|
var pointInfoBox = "_4a4ovk1";
|
|
7
7
|
var pointInfoBoxDescription = "_4a4ovk4";
|
|
8
8
|
var pointInfoBoxEmphasize = "_4a4ovk5";
|
|
9
9
|
var pointInfoBoxTitle = "_4a4ovk3";
|
|
10
10
|
var pointLayout = "_4a4ovk0";
|
|
11
11
|
var pointSingleInfoBox = "_4a4ovk2";
|
|
12
|
-
var textLayout = createRuntimeFn({ defaultClassName: "", variantClassNames: { withArrow: { true: "
|
|
12
|
+
var textLayout = createRuntimeFn({ defaultClassName: "", variantClassNames: { withArrow: { true: "_4a4ovk9", false: "_4a4ovka" } }, defaultVariants: {}, compoundVariants: [] });
|
|
13
13
|
export {
|
|
14
14
|
pointIcon as a,
|
|
15
15
|
pointLayout as b,
|
|
@@ -58,13 +58,18 @@
|
|
|
58
58
|
height: 7.998vw;
|
|
59
59
|
}
|
|
60
60
|
._4a4ovk8 {
|
|
61
|
+
margin-top: 1.33vw;
|
|
62
|
+
width: 6.192vw;
|
|
63
|
+
height: 7.998vw;
|
|
64
|
+
}
|
|
65
|
+
._4a4ovk9 {
|
|
61
66
|
padding-right: 2.67vw;
|
|
62
67
|
}
|
|
63
|
-
.
|
|
68
|
+
._4a4ovkb {
|
|
64
69
|
width: 1.758vw;
|
|
65
70
|
height: 2.93vw;
|
|
66
71
|
filter: invert(1);
|
|
67
72
|
}
|
|
68
|
-
.
|
|
73
|
+
._4a4ovkd {
|
|
69
74
|
display: none;
|
|
70
75
|
}
|
|
@@ -2,6 +2,7 @@ import type { Point, Route, TrackPoint } from "../types/interface";
|
|
|
2
2
|
export interface UseDeviationCorrectionDrivingRouteProps {
|
|
3
3
|
tracks: TrackPoint[];
|
|
4
4
|
to: Point;
|
|
5
|
+
waypoints?: Point[];
|
|
5
6
|
deviation: number;
|
|
6
7
|
}
|
|
7
8
|
interface SubRoute extends Route {
|
|
@@ -44,6 +45,6 @@ export declare const useDeviationCorrectionDrivingRoute: (props?: UseDeviationCo
|
|
|
44
45
|
trackIntersectionPathRef: import("vue-demi").Ref<Point[] | undefined>;
|
|
45
46
|
routeIntersectionPathRef: import("vue-demi").Ref<Point[] | undefined>;
|
|
46
47
|
extendedIntersectionPointRef: import("vue-demi").Ref<Point | undefined>;
|
|
47
|
-
apiMapDeviationCorrectionDrivingRoute: (tracks: TrackPoint[], to: Point, deviation: number, preRoute: SubRoute) => Promise<ApiMapDeviationCorrectionDrivingRouteOutput>;
|
|
48
|
+
apiMapDeviationCorrectionDrivingRoute: (tracks: TrackPoint[], to: Point, deviation: number, preRoute: SubRoute, waypoints?: Point[]) => Promise<ApiMapDeviationCorrectionDrivingRouteOutput>;
|
|
48
49
|
};
|
|
49
50
|
export {};
|
|
@@ -21,7 +21,7 @@ const useDeviationCorrectionDrivingRoute = (props) => {
|
|
|
21
21
|
const { apiMapToGraspRoadPath } = useMapGraspRoad();
|
|
22
22
|
const { apiMapDistance, apiMapDistanceOfLine } = useMapGeometry();
|
|
23
23
|
const { apiMapComputeHeading } = useMapAngle();
|
|
24
|
-
const apiMapDeviationCorrectionDrivingRoute = async (tracks, to, deviation, preRoute) => {
|
|
24
|
+
const apiMapDeviationCorrectionDrivingRoute = async (tracks, to, deviation, preRoute, waypoints = []) => {
|
|
25
25
|
var _a, _b;
|
|
26
26
|
if (tracks.length === 0) {
|
|
27
27
|
return { ...createEmptySubRoute(), angle: 0 };
|
|
@@ -69,20 +69,21 @@ const useDeviationCorrectionDrivingRoute = (props) => {
|
|
|
69
69
|
}
|
|
70
70
|
const { path: graspRoadPath } = inChina(position) ? await apiMapToGraspRoadPath(tracks) : { path: tracks.map(lnglat2point) };
|
|
71
71
|
const from = graspRoadPath[graspRoadPath.length - 1];
|
|
72
|
-
const route = await apiMapDrivingRoute(from, to);
|
|
72
|
+
const route = await apiMapDrivingRoute(from, to, waypoints);
|
|
73
73
|
const angle = (_b = apiMapComputeHeading(route.path[0], route.path[1])) != null ? _b : 0;
|
|
74
74
|
return { ...route, angle, graspRoadPath, baseRoute: route, index: 0 };
|
|
75
75
|
};
|
|
76
76
|
watchEffectForDeepOption(
|
|
77
77
|
() => {
|
|
78
|
-
const { tracks, to, deviation = MAX_DEVIATION_DISTANCE } = props != null ? props : {};
|
|
78
|
+
const { tracks, to, waypoints = [], deviation = MAX_DEVIATION_DISTANCE } = props != null ? props : {};
|
|
79
79
|
return {
|
|
80
80
|
tracks: tracks ? [...tracks] : void 0,
|
|
81
81
|
to: to ? [...to] : void 0,
|
|
82
|
+
waypoints,
|
|
82
83
|
deviation
|
|
83
84
|
};
|
|
84
85
|
},
|
|
85
|
-
async ({ tracks, to, deviation }) => {
|
|
86
|
+
async ({ tracks, to, waypoints, deviation }) => {
|
|
86
87
|
if (!tracks || !to)
|
|
87
88
|
return;
|
|
88
89
|
const {
|
|
@@ -92,7 +93,13 @@ const useDeviationCorrectionDrivingRoute = (props) => {
|
|
|
92
93
|
routeIntersectionPath,
|
|
93
94
|
extendedIntersectionPoint,
|
|
94
95
|
...subRoute
|
|
95
|
-
} = await apiMapDeviationCorrectionDrivingRoute(
|
|
96
|
+
} = await apiMapDeviationCorrectionDrivingRoute(
|
|
97
|
+
tracks,
|
|
98
|
+
to,
|
|
99
|
+
deviation,
|
|
100
|
+
drivingRoute,
|
|
101
|
+
waypoints
|
|
102
|
+
);
|
|
96
103
|
Object.assign(drivingRoute, subRoute);
|
|
97
104
|
angleRef.value = angle;
|
|
98
105
|
trackIntersectionPathRef.value = trackIntersectionPath;
|
|
@@ -2,6 +2,7 @@ import type { Point, Route } from "../types/interface";
|
|
|
2
2
|
export interface UseDrivingRouteProps {
|
|
3
3
|
from: Point;
|
|
4
4
|
to: Point;
|
|
5
|
+
waypoints?: Point[];
|
|
5
6
|
}
|
|
6
7
|
export declare const useADrivingRoute: (props?: UseDrivingRouteProps) => {
|
|
7
8
|
route: {
|
|
@@ -15,7 +16,7 @@ export declare const useADrivingRoute: (props?: UseDrivingRouteProps) => {
|
|
|
15
16
|
distance: number;
|
|
16
17
|
}[];
|
|
17
18
|
};
|
|
18
|
-
apiMapDrivingRoute: (from: Point, to: Point) => Promise<Route>;
|
|
19
|
+
apiMapDrivingRoute: (from: Point, to: Point, waypoints?: Point[]) => Promise<Route>;
|
|
19
20
|
};
|
|
20
21
|
export declare const useGDrivingRoute: (props?: UseDrivingRouteProps) => {
|
|
21
22
|
route: {
|
|
@@ -29,7 +30,7 @@ export declare const useGDrivingRoute: (props?: UseDrivingRouteProps) => {
|
|
|
29
30
|
distance: number;
|
|
30
31
|
}[];
|
|
31
32
|
};
|
|
32
|
-
apiMapDrivingRoute: (from: Point, to: Point) => Promise<Route>;
|
|
33
|
+
apiMapDrivingRoute: (from: Point, to: Point, waypoints?: Point[]) => Promise<Route>;
|
|
33
34
|
};
|
|
34
35
|
export declare const useDrivingRoute: (props?: UseDrivingRouteProps) => {
|
|
35
36
|
route: {
|
|
@@ -43,5 +44,5 @@ export declare const useDrivingRoute: (props?: UseDrivingRouteProps) => {
|
|
|
43
44
|
distance: number;
|
|
44
45
|
}[];
|
|
45
46
|
};
|
|
46
|
-
apiMapDrivingRoute: (from: Point, to: Point) => Promise<Route>;
|
|
47
|
+
apiMapDrivingRoute: (from: Point, to: Point, waypoints?: Point[]) => Promise<Route>;
|
|
47
48
|
};
|