Rendering routes and gpx exports

I’ve successfully hooked up the Mapbox Directions API and I’m creating routes between each of the waypoints.

Screenshot of the route

I’ve also added an Export Route button which exports the route as a gpx file which I can import without error into Strava.

Screenshot of the Strava route

I suppose you could say this is the MVP. It all actually works. At least in development.

Lots to do though:

  1. Hook up to Google Elevation API and display route elevation profile.
  2. Add direction arrows to the route lines
  3. Improve the Waypoints reorderable list
  4. Add functionality to include waypoint between existing waypoints instead of it just being added on at the end of the waypoint list