-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated offline mapping download(s) #156
Comments
Following on from some experimentation in 1b43b05, and digging around in the separate map-packs app, I believe we should go for an in-app solution. I believe the technical hurdles can be overcome and the overall solution would be better. Here's my approximate proposal: Under "Settings"->"Maps display"
Under "Offline maps"
Subsequent enhancements to consider:
Feedback welcomed - particularly @jezhiggins and @mvl22. |
All sounds sensible.
I'm planning to write a proper API call - we are trying to move to the scenario where every request to get resources, other than tiles and Photomap images, is properly supported via the API. At present there remain some odds and ends like KML files and elevation charts which clients are getting by working out URLs rather than being told them explicitly in an API response. Essentially this API call will be very similar to the JSON in Oliver's prototype - just a listing. But it will have the download URLs in them, rather than the client having to construct that. |
FYI, the work-in-progress branch is manage-offline-maps-inside-main-app. |
There is now a work-in-progress API, which emits a GeoJSON listing of the areas and their corresponding download file URL, at: https://api.cyclestreets.net/v2/mapdownloads.list This will show the centroid of each download, unless Obviously please add in the usual way There are unimplemented aspects, which I am still to work through:
Feedback/suggestions very welcome. |
OOI, how far off is this one? Would be good to progress this as it's still a rather bad set up of using the separate UK map 'app'. |
@mvl22 quite a long way off, I'm afraid. I am intending to try to pick this up again after doing the various higher priority bug fixes and getting a new release out. I had to pause my contributions a couple of years ago due to other commitments (paid work & family) leaving me insufficient time available for hobby coding. |
This API is now stable and published:
All these and other known bugs are now resolved. The API will only the map packs that actually exist (not all Geofabrik areas as before). Date and download size are also shown. The download URL given will be a cyclestreets.net subdomain. Currently this is a mirror from the upstream, but I am implementing caching (as it should be us bearing the traffic obviously) - which will be transparent to the results you get. |
Caching now in place. So this API is now fully production-ready. |
Please update the UK offline map-pack download, or enable the app to use third-party map-packs such as those found here.
The text was updated successfully, but these errors were encountered: