     $("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.arrival = $('#datetimepicker_arrival').datetimepicker({
    pickSeconds: false
  })




window.from = ''
window.to = ''

get_inputs_for = (direction) ->
  if place.address_components.length > 0
    for x in [0..place.address_components.length-1]
      type = place.address_components[x].types[0]

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