Skip to content

Comment on CoMaps integration with the wider FLOSS ecosystem

Comments

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

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.

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

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.