leaflet-routing-machine - Control for routing in Leaflet
Go to the Leaflet Routing Machine site for more information, demos, tutorials and more. Leaflet Routing Machine is in many ways already a feature complete routing UI. Most likely, your requirements are already covered and require very little adaptation.
@mapbox/corslite : 0.0.7
@mapbox/polyline : ^0.2.0
osrm-text-instructions : ^0.11.5