Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set point in map #29

Open
arc3333 opened this issue Jul 20, 2022 · 4 comments
Open

Set point in map #29

arc3333 opened this issue Jul 20, 2022 · 4 comments

Comments

@arc3333
Copy link

arc3333 commented Jul 20, 2022

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
Copy link
Owner

Falcosc commented Jul 29, 2022

There are 2 not implemented API functions:

  • Import points with dialog
  • Display new points

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
Copy link
Author

arc3333 commented Jul 29, 2022

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
Copy link
Owner

Falcosc commented Jul 30, 2022

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
Copy link
Author

arc3333 commented Jan 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants