File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import type {
55 DirectionsLeg ,
66 DirectionsStep ,
77 Duration ,
8- Distance ,
9- Location
8+ Distance
109} from '../schemas/directions.schema'
10+ import type { Location } from '../schemas/geocoding.schema'
1111import type {
1212 DistanceMatrixElement ,
1313 DistanceMatrixRow
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ async function convertVRPRequestToVROOM(request: VRPRequest): Promise<any> {
109109 service : job . service ,
110110 delivery : job . delivery ,
111111 pickup : job . pickup ,
112- time_windows : job . timeWindows ,
112+ time_windows : job . timeWindows as Array < [ number , number ] > | undefined ,
113113 priority : job . priority
114114 } )
115115 }
@@ -125,7 +125,7 @@ async function convertVRPRequestToVROOM(request: VRPRequest): Promise<any> {
125125 start,
126126 end,
127127 capacity : vehicle . capacity ,
128- time_window : vehicle . timeWindow ,
128+ time_window : vehicle . timeWindow as [ number , number ] | undefined ,
129129 profile : vehicle . profile || 'driving'
130130 } )
131131 }
You can’t perform that action at this time.
0 commit comments