Skip to content

Commit 896862f

Browse files
Fixed intermediates
1 parent 5dfb05f commit 896862f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/controllers/maps/getRoutesPolyline.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ export async function getRoutesPolyline(googleMapsApiToken: string, waypoints: {
2020
}
2121
},
2222

23+
intermediates: waypoints.slice(1, waypoints.length - 2).map((waypoint) => {
24+
return {
25+
location: {
26+
latLng: waypoint
27+
}
28+
};
29+
}),
30+
2331
travelMode: "BICYCLE"
2432
})
2533
});

0 commit comments

Comments
 (0)