Templates Plugins Courses

MapBox: show directions with list of waypoints

Hello,

I try to build a map which shows a route between location A and B. That works easy with MapBox.

Now I try to give the opportunity to the user to add waypoints on this route. The user should type an address in an input form and the map should add this address to the existing route.

How could I handle that?
thx for your help!