Search in sources :

Example 1 with OsmNotesDownload

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;
}
Also used : LatLon(de.westnordost.osmapi.map.data.LatLon) OsmNotesDownload(de.westnordost.streetcomplete.data.osmnotes.OsmNotesDownload) OsmNoteQuestType(de.westnordost.streetcomplete.data.osmnotes.OsmNoteQuestType)

Aggregations

LatLon (de.westnordost.osmapi.map.data.LatLon)1 OsmNoteQuestType (de.westnordost.streetcomplete.data.osmnotes.OsmNoteQuestType)1 OsmNotesDownload (de.westnordost.streetcomplete.data.osmnotes.OsmNotesDownload)1