func (tm *tagMatcher) MatchWay(way *element.Way) []Match { if tm.matchAreas { // match way as polygon if way.IsClosed() { if way.Tags["area"] == "no" { return nil } return tm.match(&way.Tags) } } else { // match way as linestring if way.IsClosed() { if way.Tags["area"] == "yes" { return nil } } return tm.match(&way.Tags) } return nil }