def ways_callback(self, data):
        """ Callback for all ways """
        for way_id, tags, nodes in data:
            # Imposm passes all ways through regardless of whether the tags
            # have been filtered or not. It needs to do this in order to
            # handle relations, but we don't care about relations at the
            # moment.
            if tags:
                self.ways[way_id] = (tags, nodes)
def ways_callback ( self , data ) : for way_id , tags , nodes in data : if tags : self . ways [ way_id ] = ( tags , nodes )
Callback for all ways