No way of actually testing if this works, but it is based on https://docs.graphhopper.com/#operation/getRoute/parameters/point and https://www.graphhopper.com/blog/2020/07/08/turn-restriction-support-for-graphhoppers-directions-api/
"ch.disable": vehicleType === "car",
"elevation": false,
"instructions": true,
"ch.disable": vehicleType === "car",
"elevation": false,
"instructions": true,
"point": points.map(function (p) { return p.lat + "," + p.lng; })
},
traditional: true,
"point": points.map(function (p) { return p.lat + "," + p.lng; })
},
traditional: true,