Skip to content

Commit

Permalink
stop creating quests for private pitches
Browse files Browse the repository at this point in the history
fixes handling of pitches inaccessible to public - for example pitches inside school

https://www.openstreetmap.org/note/1267483 is an example
  • Loading branch information
matkoniecz authored and westnordost committed Jan 14, 2018
1 parent 8213602 commit e4a0bea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public class AddSport extends SimpleOverpassQuestType
protected String getTagFilters()
{
return "nodes, ways with leisure=pitch and" +
" (!sport or sport ~ " + TextUtils.join("|", AMBIGUOUS_SPORT_VALUES)+ ")";
" (!sport or sport ~ " + TextUtils.join("|", AMBIGUOUS_SPORT_VALUES)+ ")" +
" and (access !~ private|no)"; // exclude ones without access to general public
}

public AbstractQuestAnswerFragment createForm()
Expand Down

0 comments on commit e4a0bea

Please sign in to comment.