def way(self, w):
if w.id not in self.way_ids:<EOL><INDENT>return<EOL><DEDENT>way_points = []<EOL>for n in w.nodes:<EOL><INDENT>try:<EOL><INDENT>way_points.append(Point(n.location.lon, n.location.lat))<EOL><DEDENT>except o.InvalidLocationError:<EOL><INDENT>logging.debug('<STR_LIT>', w.id, n.ref)<EOL><DEDENT><DEDENT>self.ways[w.id] = Way(w.id, way_points)<EOL>
Process each way.