def METHOD_NAME(self, **kwargs):
    queryset = models.Station.on_site.all()
    # If a gentity_id query parameter is specified, ignore all the rest
    try:
        gentity_id = int(self.request.GET.get("gentity_id", "0"))
        if gentity_id:
            return queryset.filter(id=gentity_id)
    except ValueError:
        raise Http404
    # Perform the search specified by the q parameter
    query_string = self.request.GET.get("q", "")
    for search_term in query_string.split():
        queryset = self._refine_queryset(queryset, search_term)
    # Also filter by the bbox query parameter, if there is one
    bbox = self.request.GET.get("bbox")
    if bbox:
        queryset = self._filter_by_bbox(queryset, bbox)
    return queryset