     # TODO: See if this can be bound to a model date change event.
     @model.trigger 'fetch'
 
-  update_markers: =>
-    @map.set
-      from: _.pick(@model.get('from'), 'lat', 'lon')
-      to: _.pick(@model.get('to'), 'lat', 'lon')
-
-
-  geocode_error: (message) =>
-    @$('.progress').hide()
-    Transit.errorMessage("Sorry, don't know that place.", message)
-
-
-  fetch_plan: =>
-    @render()
-    @model.fetch
-      success: (plan) ->
-        Transit.events.trigger 'plan:complete', plan
-      error: (model, message) =>
-        @$('.progress').hide()
-        Transit.errorMessage('Whoops, something went wrong!', message)
-
 
   add_itineraries: (plan) =>
-    window.plan = plan
-    console.log plan
+    # reset UI, set title of directions
     @$('.subnav h3').text("#{plan.get('from').name} to #{plan.get('to').name}")
     @$('.progress').hide()
     @$('.itineraries').html('')
     plan.get('itineraries').each (trip, index) =>
       trip.set('index', index + 1)
-      console.log trip
       view = new Transit.Views.Itinerary
         model: trip
         index: index



  fit_bounds: =>
    console.log "fitting bounds..."
    if @map.get('fit_bounds')
      bounds = new google.maps.LatLngBounds()
      for leg in @model.get('itineraries').first().get('legs')

class Transit.Views.Plan extends Backbone.View
  template: JST['templates/plan']
  # el: "#navigation"
  # tagName: 'div'
  className: 'plan'

  events:
