I’ve created a reorder-able list of waypoints and also added a remove button the marker popups to allow them to be removed.
I’ve also added functionality of the backend to call the Mapbox Directions API to get the routes between all of the waypoints. It also returns things like a route name, distances, speed, as well as many more useful parameters. All I need to do is save the returned data to my
RoutePlan objects in the
routes parameter. Then pass that to the frontend and render the routes. I think I am very close, maybe 1 - 2 days away from having a very basic version of this route planner working with GPX export.