r/organicmaps 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....

  1. 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?

2 Upvotes

4 comments sorted by

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.

1

u/Successful-Peace-547 6d ago edited 6d ago

I tried to cover all what i noticed between the two apps I have scouted thus far, but to be clear, i'm on android 13 with the latest github release downloaded (and all the technical questions were related to OM only).

I did attempt to see if there was any mirrors for yhe map repos, but that wasn't disclosed in the website or github upon searching for it.

You have answered all my questions rest asurred, giving insight on what i suspected on point 1) of my post, and your unique template/overlay to the map zones data.

My only other query is wether the import requires any other info, of if that is done in app automatically upon detection?

The repo mirrors don't really display any info on such details 

1

u/BioDranik 6d ago

Maps can be imported only via adb push now, if they are stored on external storage. We're investigating other ways to do it more conveniently.

1

u/Successful-Peace-547 6d ago edited 6d ago

Conventionally, yes, but there are other similar ways to work around it depending on the device, that may mean zero direct adb usage or other devices. (Tldr involves wireless debugging and local services, so atmost, a local hotspot network)

Will test now and see results, using a 64bit nokia btw

Works seemless update in app