Remix.run Logo
daemonologist 3 days ago

Neat, I was not aware of this mechanism. Is there any way to get map (tile) data from CoMaps into another app?

ihatehn 3 days ago | parent | next [-]

The issue is that we change our map file "format" with nearly every release, and handling that without crashing is already a job. For example if we add, say, bomb shelters to the map, an older app using that newer data will have access to it but no idea how to render it, which can cause problems (crashing, errors, blanks, etc.) So we have very specific versioning on a per-map-release / app-release basis, and that's just our project. We've already diverged from Organic Maps and even moreso from the (corporate, closed) Maps.me and living on a totally different data format planet from OsmAnd and Magic Earth. So it's a nice idea but extremely hard in practice.

mkesper 3 days ago | parent | prev [-]

There are converters between different OSM formats and other formats (Garmin comes to mind). It depends on the target. E.g. here: https://www.mapfileconverter.com/free-gis-conversion-tools

daemonologist 3 days ago | parent [-]

Thanks, but I was interested more in the cross-app communication aspect rather than the data formats ( https://codeberg.org/comaps/comaps/wiki/Content-Provider ).

I once looked into building an app which piggybacked on CoMaps/OSMAnd's data (saving the user from having two copies of their maps, and me from having to duplicate the UI to manage them), but found that in modern Android it was basically impossible for even the user to access data/files that "belong" to an app, without rooting the device.

diggernet 3 days ago | parent [-]

Thanks for the reminder that ContentProvider is the Android term I couldn't remember when I wrote my other comment here.

And the reminder that I should have added this to my list:

3. A ContentProvider app for OSM map data, so that apps can share the same offline map data.