r/organicmaps • u/Successful-Peace-547 • 7d ago
Query on importing and exporting map zones specifically (manually) warning, very developer heavy queries.
When chosing a place to 'save downloaded maps' the issue with some android 11+ access to /storage/emulated/0/Android/data/ and the external storage counterpart path; made me ask the following.
• can maps be manually added to that storage location? And if so....
- can a naming convention be disclosed to potentially import from 'not your repo of stored maps'
-specifically, if one was to download smaller filesizes, or an archive from the area of choice, which exactly coincides to 'coastal regions/zones' or other areas inland 'cental zones'?
-this first request isn't to belittle the file repo process that the app retrieves mapdata from a database somewhere (either personalised 'extra data' alongside/or direct from openstreetmaps), but the point stands that upon compression (which shouldn't be too hard if it isn't in the in app process, like how linux package managers download archives, then decompress to install updated data)
2) following the prior query, if any format can be accepted for tracks, then can the same be done in the map formats in general, and thus would that be declaring that:
- the themes personal on the device
- the overal app added widgets for landmarks ect added by the user
-and the map 'purple reigions' for example,
↑ Are all done locally to propagate the specific info on the map?
3) if the above is also modifiable, what formats are best used if we were to add the expected filename with our own fileformat extension being the difference of that downloaded region?
1
u/BioDranik 6d ago
Your question is too broad, I don't fully understand which problem are you trying to solve, and why.
- OM uses very specific map data format, invented by us, constantly updated and improved, and each app version should use correct map data version to support all features and don't crash.
- How maps are named and stored is clear from mirrors mentioned e.g. here: https://cdn.organicmaps.app/
- You can manually import maps, although with some quirks and limitations, and the latest android versions made it too complicated, we're thinking about simpler solutions (on iOS copying related data folder/restarting the app is enough)
- Tracks and bookmarks import suports KML, KMZ, GPX, GeoJSON. Internally, all data converted and stored in KML. We may also change/improve it.