           @stations = json
           for s in @stations
             s.name = "#{s.line.name} #{s.station.name}"
+          @matcher = stationMatcher(@stations)
           @setAutoCompleteAll()
       getScrape: ->
         ids = @parseScrapeUrl(@scrape)

        end: "2300"
        period: 60
      stations: []
      scrape: ""
    methods:
      getTypes: ->

      setAutoComplete: (elem) ->
        elem.typeahead('destroy')
        design = {hint: true, highlight: true}
        config = {name: 'stations', display: 'name', source: @matcher}
        elem.typeahead(design, config)
      setAutoCompleteAll: ->
        @setAutoComplete($('.autoCompleteStation'))
        @setStationIfOne()
      setStationIfOne: ->
        @stops.forEach (stop) =>
          @matcher stop.name, (matches) ->
            if matches.length == 1
              stop.name = matches[0].name
      pushPattern: ->
        start = parseTime(@pattern.start)
        end = parseTime(@pattern.end)
