     $("input#trip_#{direction}_lng").val location.lng()
     $("input#trip_#{direction}_formatted_address").val place.formatted_address
 
-    get_inputs_for( direction )
+    set_inputs_for( direction )
   )
 
 get_from_coordinates = ->

$ ->
  window.departure = $('#datetimepicker_departure').datetimepicker({
    pickSeconds: false
  }).on('changeDate', (ev) ->

      window.directionsDisplay.setDirections(response);
  )




directions_hash = (directionsDisplay) ->
  waypoints = []
  leg = directionsDisplay.directions.routes[0].legs[0]
  directions =
