Importing a GPX file using XML commands

Ronni C. shared this question 7 months ago
Answered

Hi Locus Support,

I am using Locus Map Classic 3.69.2 on an Android 13 phone.
Vector maps like OpenAndroMaps can be downloaded and imported by Firefox and by opening a specially coded html-page referring to a xml-file.

Is there also a similar feature to import a gpx-file ?

I tried the following code on the basis of the xml code for importing maps, but changed some parameters as a trial, here: "<after>import</after>"

<?xml version='1.0' encoding='UTF-8'?>
<locusActions>
<download>
<><!&#></>
<dest><![CDATA[//storage/emulated/0/DCIM/gpstrack.gpx]]></dest>
<after>import</after>
</download>
</locusActions>

The automatic download works fine, but the final import within Locus failed.

Does anybody know, if that feature works and what the correct parameter are like ?

Thanks in advance.

Replies (1)

photo
1

Hello,

please try <after>importData</after

More here: https://docs.locusmap.app/doku.php?id=manual:advanced:customization:actions

Regards,


Zdenek, Locus team

photo
1

Great, now the import works too. Thank you for the quick help.

photo
Leave a Comment
 
Attach a file