Skip to content

Commit

Permalink
update chonker index
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Jan 22, 2025
1 parent b6633f6 commit 2bb7cdd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ import de.westnordost.streetcomplete.data.quest.QuestTypeRegistry
import de.westnordost.streetcomplete.quests.address.AddHousenumber
import de.westnordost.streetcomplete.quests.cycleway.AddCycleway
import de.westnordost.streetcomplete.quests.existence.CheckExistence
import de.westnordost.streetcomplete.quests.max_height.AddMaxHeight
import de.westnordost.streetcomplete.quests.opening_hours.AddOpeningHours
import de.westnordost.streetcomplete.quests.place_name.AddPlaceName
import de.westnordost.streetcomplete.quests.shop_type.CheckShopExistence
import de.westnordost.streetcomplete.util.Listeners
import de.westnordost.streetcomplete.util.ktx.format
import de.westnordost.streetcomplete.util.ktx.intersects
Expand Down Expand Up @@ -422,7 +424,9 @@ class OsmQuestController internal constructor(
private val OsmElementQuestType<*>.chonkerIndex: Int get() = when (this) {
is AddOpeningHours -> 0 // OpeningHoursParser, extensive filter
is CheckExistence -> 1 // FeatureDictionary, extensive filter
is CheckShopExistence -> 1 // FeatureDictionary, extensive filter
is AddHousenumber -> 1 // complex filter
is AddMaxHeight -> 1 // complex filter
is AddCycleway -> 2 // complex filter
is AddPlaceName -> 2 // FeatureDictionary, extensive filter
else -> 10
Expand Down

0 comments on commit 2bb7cdd

Please sign in to comment.