use of de.westnordost.streetcomplete.data.osmnotes.OsmNotesDownload in project StreetComplete by westnordost.
the class QuestDownload method downloadNotes.
private Set<LatLon> downloadNotes(BoundingBox bbox) {
OsmNotesDownload notesDownload = notesDownloadProvider.get();
notesDownload.setQuestListener(questListener);
Long userId = prefs.getLong(Prefs.OSM_USER_ID, -1);
if (userId == -1)
userId = null;
int maxNotes = 10000;
Set<LatLon> result = notesDownload.download(bbox, userId, maxNotes);
downloadedTilesDao.put(tiles, OsmNoteQuestType.class.getSimpleName());
downloadedQuestTypes++;
dispatchProgress();
return result;
}
Aggregations