title: Google-Maps-for-Rails Direction Wiki Explaination Needed
body: <p>Hi I am currently working on a trash bin/recycling bin location application using google maps for rails. </p>
  
  <p>I have a recyclingbin.rb model with the address as its attributes, that itself is enough to put markers on a map that can get displayed using the gem. I believe the gem converts the model and its attributes into json data. </p>
  
  <p>I am trying to implement a feature where I can input my location and get direction to the nearest marker. </p>
  
  <p>I have looked at the wiki , <a href="https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Direction" rel="nofollow">https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Direction</a></p>
  
  <p>Am I suppose to put this in the view ? </p>
  
   { "data" => { "from" => "Paris, france", "to" => "Toulon, france" } }
              })
   %>
  
  <p>with the from to be embedded with my location for now? I understand I can pass options to this reference from google. </p>
  
  <p>The wiki is quite short, can someone give me a quick explanation ? </p>