osmose-frontend
osmose-frontend copied to clipboard
Support offline issue download from API
To support offline
- All issue, detail (
full
) and fixable should be report in on API call - preferably with bbox and not tiles.
Thanks for creating this issue.
To make clear why I asked in https://github.com/Helium314/StreetComplete/issues/384: I implemented an Osmose quest in my fork of StreetComplete, which essentially just shows available issues and allows editing element tags (if an element is associated with the issue). Since StreetComplete is supposed to work offline (downloading all data inside a bbox, which align with zoom 16 tiles), all Osmose issues in the downloaded bbox are downloaded too (currently using CSV, which contains sufficient data except fixables).
However, as part of solving https://github.com/Helium314/StreetComplete/issues/384 (creating nodes with tags in fixable), also the fixable tags are needed. I see 3 ways of doing this:
- switch to semi-online: download each issue once the user opens the corresponding quest
- stay offline with current possibilities: in addition to downloading the bbox, do another download with
fixable=online
(orjosm
?) and download each of the returned issues. This means that at least twice as many requests are sent, and potentially many many more. I assume this is not wanted from Osmose side due to extra server load (and I don't like it because it may slow download significantly if connection is bad or server is busy) - stay offline with only one download: This would require the possibility of downloading issues with using the proposed API call
- stay offline with only one download: This would require the possibility of downloading issues with using the proposed API call
That would seem like best solution to me too. Is there any interest from Osmose side to have such functionality?
- stay offline with only one download: This would require the possibility of downloading issues with using the proposed API call
That would seem like best solution to me too. Is there any interest from Osmose side to have such functionality?
Yes. But lack of time. Help and PR welcome.