def way(self, w):
        is_highway = False
        is_big = False
        name = ''
        highway_type = None

        for tag in w.tags:
          if tag.k == 'name':
            name = tag.v
          #  and tag.v in ['primary', 'secondary', 'tertiary', 'trunk']
          if tag.k == 'highway':
            highway_type = tag.v
            is_highway = True
          #try:
          #  if tag.k == 'lanes' and int(tag.v[len(tag.v)-1]) >= 2:
          #    is_big = True
          #  #    #for t in w.tags:
          #  #    #  print "tag {} {}".format(t.k, t.v)
          #except:
          #  print("exception, weird lanes designation {}".format(tag.v))

        #  or not is_big
        if not is_highway:
          return
        
        if not self.types in highway_type:
          self.types.append(highway_type)

        way_dict = {'visible': w.visible,
                    'deleted': w.deleted,
                    'uid': w.uid,
                    'highway_type': highway_type,
                    'ends_have_same_id': w.ends_have_same_id(),
                    'id': w.id,
                    'tags':[]}
        for tag in w.tags:
          way_dict['tags'].append((tag.k, tag.v))

        try:
          wkb = wkbfab.create_linestring(w)
        except:
          # throws on single point ways
          return
        line = wkblib.loads(wkb, hex=True)
        reverse_points = []
        for point in list(line.coords):
          reverse_points.append([point[1],point[0]])
        way_dict['linestring'] = reverse_points
        self.ways.append(way_dict)
dataset/ETHPy150Open trailbehind/DeepOSM/src/download_labels.py/WayExtracter.way/swapped operands of `in`