openlostcat/categorycatalog.py
def apply(self, tag_bundle_set):
        """Categorizes a location (by its tag bundle set) according to the given strategy (stored in the catalog)
        
        :param tag_bundle_set: set of dicts of tags of osm objects at the location to be categorized
        :return: list of matching categories
        """
        evaluation_switcher = {
            "firstMatching": self.apply_fm_evaluation,
            "all": self.apply_all_evaluation
        }
        return evaluation_switcher.get(self.evaluationStrategy,
                                       lambda x: error("Unsupported evaluation strategy: ", self.evaluationStrategy))(
            tag_bundle_set)
Categorizes a location (by its tag bundle set) according to the given strategy (stored in the catalog)
        
        :param tag_bundle_set: set of dicts of tags of osm objects at the location to be categorized
        :return: list of matching categories
        
Categorizes a location (by its tag bundle set) according to the given strategy (stored in the catalog)
Categorizes a location ( by its tag bundle set ) according to the given strategy ( stored in the catalog )
def apply(self, tag_bundle_set):
        evaluation_switcher = {
            "firstMatching": self.apply_fm_evaluation,
            "all": self.apply_all_evaluation
        }
        return evaluation_switcher.get(self.evaluationStrategy,
                                       lambda x: error("Unsupported evaluation strategy: ", self.evaluationStrategy))(
            tag_bundle_set)
def apply ( self , tag_bundle_set ) : evaluation_switcher = { "firstMatching" : self . apply_fm_evaluation , "all" : self . apply_all_evaluation } return evaluation_switcher . get ( self . evaluationStrategy , lambda x : error ( "Unsupported evaluation strategy: " , self . evaluationStrategy ) ) ( tag_bundle_set )
Categorizes a location (by its tag bundle set) according to the given strategy (stored in the catalog)
Categorizes a location ( by its tag bundle set ) according to the given strategy ( stored in the catalog )
"""Categorizes a location (by its tag bundle set) according to the given strategy (stored in the catalog)
        
        :param tag_bundle_set: set of dicts of tags of osm objects at the location to be categorized
        :return: list of matching categories
        """
list of matching categories
list of matching categories
self
tag_bundle_set
set of dicts of tags of osm objects at the location to be categorized
set of dicts of tags of osm objects at the location to be categorized