I have a leaflet map, using graphopper as the router. I'm having problems with setting the options; for instance change the vehicle from default (car) to motorcycle.
routeControl = new L.Routing.Control({
waypoints: setWaypoints,
show: false,
routeWhileDragging: true,
router: L.Routing.graphHopper("api key"),
vehicle: "motorcycle"
}).addTo(map);
Any help in the right direction is much appreciated.