Replies: 2 comments 15 replies
-
Interesting! Be sure to use the (surface) overlay for such things, this is exactly the use case it was made for! :-) Glad your solution works for you! I previously outlined in this post #473 (comment) how I imagine a final implementation could look like (I understand your implementation would fall short when the points in the GPX tracks are too far apart). On the topic of whether this would be accepted as a PR, you are right that I previously stated that placing it in the hamburger menu would be too prominent... a more appropriate place... to be honest, none comes to mind, other than hiding it behind a TBD "expert mode" or something. On that note, @Helium314 maintains a fork/extension to StreetComplete that basically intends to be pretty much that. And, it also already implements a "download along GPX", though, as far as I know, it only takes the bounding box of the whole GPX track, so this implementation could be enhanced with a better algorithm. |
Beta Was this translation helpful? Give feedback.
-
A more mature implementation is available at greuters:StreetComplete:gpx-download-by-intent now. I tried to address most points from above, so this version:
The test tracks I played around with (100 - 200km) result in around 50 - 150 downloads between 50 - 200 sqkm and download volumes / times are still OK for me even in more populated areas (around 15min max e.g. around Zurich). What would you consider sane limits? Should the max area be restricted by some user setting? I think the PR is ready for a first review and test, especially the UI part might have some pitfalls that I didn't see due to lack of Android experience.. |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks a lot for this great app @westnordost and others!
We're currently on a long cycling trip and started adding data to OSM, especially the surface and quality of streets which is interesting to us (and often unclear here in Mexico). As we are riding on a tandem, we started to conveniently edit on the way and I hacked together a quick solution to download tiles along our planned route when we have WIFI in our overnight locations. See the (quick and dirty, but working) implementation here: greuters/StreetComplete:gpx-download
To download, there is a new button "Download data along gpx" next to the existing "Download here" button which lets you select a GPX track and starts downloading tiles to cover it.
Do you think such a feature might be interesting to more users and be worth it to invest some more time in a proper solution, probably also overlaying the track on the map (only the last imported one)? I can imagine people going for a hike would use it, cyclists on tandem are probably too much of a niche.
If you like, I can clean up the code a bit and would of course be open for hints how to better do it. In related discussions (
#1757, #3898) I already saw that you think placing it in the hamburger menu is too prominent, would there be a more appropriate place?
I'll be available during the next two weeks, afterwards probably only with sporadic internet access, but there is no hurry for me.
Best,
simon
Beta Was this translation helpful? Give feedback.
All reactions