title: MapBox directions -- getting directions own Lat and Lng
body: <p>I'm using MapBox to plot points of interest that is submitted through a user generated form built on rails. Currently the user enters a address, then the address has it's Lat and Lng calculated through a gem (geocoder). There from I pass the data from rails to javascript via the gon gem, run a forEach loop on all the points of interest, and then plot on the map using the lat and lng. </p>
  
  <p>Now I want to get driving directions between the points of interest, a to b to c, etc. MapBox has a directions section, but the directions are based on the click event on the map, not stored input. Been wrestling with this for a while, and google hasn't been fruitful. </p>
  
  <p>Links and advice on how to get directions between my plotted points using MapBox is hugely appreciated.</p>
  
  <p>Cheers.</p>