code: def ways_callback(self, data):
          
          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)
docs: Callback for all ways