Falcosc / locus-addon-tasker

Locus Maps API useable as Tasker Plugin
GNU General Public License v3.0
9 stars 2 forks source link

Set point in map #29

Open arc3333 opened 2 years ago

arc3333 commented 2 years ago

Hi, Is there a function that a Tasker task can set a point in Locus map ?

I have a task which I use while riding. This task reads GPS data, record an audio file, do a transcription of this audio and add all this information into a kmz file. This kmz file also specifies the icon to use (already known icon for locus), the name of the point, description and the location of course. This task has more or less nothing to do with Locus. It's just triggered via secondary tasker app from Locus. I'm looking for a way to import all those points into locus via a tasker task. Now I must do it manually point by point which is a pain.

I'm using kmz because it was the simplest for me. I can prepare any other format you may need.

It looks like there is something related to this in Locus API: https://github.com/asamm/locus-api/wiki/Display-points-on-a-map

Falcosc commented 2 years ago

There are 2 not implemented API functions:

The Display thing can be used for automation, but it doesn't save anything to locus database. The Import thing is similar to manually importing GPX files, it will ask you where you want to store the points, so not great for automation but if you prepare a large amount of points into a single file you can import them with one import action. But this isn't better than manually importing kmz files because as soon as you have more than 1 file each import call will open the locus import dialog.

arc3333 commented 2 years ago

Ok, so if I'm able to create one file with all my point it will ask one time. Would be ok. Will find out if and how it's possible to create such a file.

Falcosc commented 2 years ago

Maybe it does support a list of file, like the import dialog supports a list of files. Just wanted to mention that the Import with dialog is the same thing as manually selecting and importing a file.

arc3333 commented 1 year ago

Just to let everyone know: In locus it's possible to import a zip file which includes multiple kmz files. A manual import of the zip will import the multiple points defined in the kmz's

Not exactly what I wanted but good enough.