             @services.set []
             @addService service
 
-        _search: (query) ->
+        _search: (query, filters) ->
             @_clearRadius()
             @selectedPosition.clear()
             @clearUnits all: true

                            @units.trigger 'finished'
                            @services.set []
                            deferred.resolve()
                opts = @searchResults.search query, opts

        search: (query) ->
            unless query?
                query = @searchResults.query
            if query? and query.length > 0
                @_search query
            else
                sm.resolveImmediately()


        renderSearch: (path, opts) ->
            unless opts.query?.q?
                return
            filters = {}
            for filter in ['municipality', 'service']
                value = opts.query?[filter]
                if value?
                    filters[filter] = value
            @search opts.query.q, filters

        _matchResourceUrl: (path) ->
            match = path.match /^([0-9]+)/
