Skip to content

Commit

Permalink
fetch a little more quests automatically and fetch more if there are …
Browse files Browse the repository at this point in the history
…not enough in a 200m radius (#1829)
  • Loading branch information
westnordost committed May 15, 2020
1 parent cfd8e6e commit 5629519
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class MobileDataAutoDownloadStrategy @Inject constructor(
questTypesProvider: OrderedVisibleQuestTypesProvider
) : AActiveRadiusStrategy(visibleQuestsSource, downloadedTilesDao, questTypesProvider) {

override val questTypeDownloadCount = 4
override val minQuestsInActiveRadiusPerKm2 = 8
override val activeRadii = intArrayOf(300)
override val questTypeDownloadCount = 5
override val minQuestsInActiveRadiusPerKm2 = 12
override val activeRadii = intArrayOf(200)
override val downloadRadius = 600
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class WifiAutoDownloadStrategy @Inject constructor(
* However, Overpass is as limited as always, so the number of quest types we download is
* limited as before */

override val questTypeDownloadCount = 8
override val questTypeDownloadCount = 5
override val minQuestsInActiveRadiusPerKm2 = 12

// checks if either in 600 or 300m radius, there are enough quests.
override val activeRadii = intArrayOf(600, 300)
// checks if either in 600 or 200m radius, there are enough quests.
override val activeRadii = intArrayOf(600, 200)
override val downloadRadius = 1200
}

0 comments on commit 5629519

Please sign in to comment.