Locus Map - forum

Support => Troubles & Questions => Topic started by: opepryk on August 11, 2022, 14:49:06

Title: Locus API quick_bookmark function doesn't work.
Post by: opepryk on August 11, 2022, 14:49:06
Hi. I have a problem with a API action task quick_bookmark. Function is supposed to put down a quick_bookmark and it takes a name of a preset bookmark as a parameter. https://github.com/asamm/locus-api/wiki/Action-tasks-(Broadcasts)#quick_bookmark (https://github.com/asamm/locus-api/wiki/Action-tasks-(Broadcasts)#quick_bookmark)

I made a Automate (app similar to Tasker) script to place a bookmark on key press. However in Locus there is an error saying that the bookmark is not found. As you can see from screenshots bookmark "qwerty" clearly exists.

Is this a bug or am I understanding this feature incorrectly? I tinkered with other API functions and they work fine in Automate.

Locus version 4.11.0 on Android 11.
Title: Re: Locus API quick_bookmark function doesn't work.
Post by: Tapio on August 11, 2022, 21:10:28
Report it as a bug? I think it's broken. Tried it on Tasker (tasks: { quick_bookmark : { action: "start", name: "Google" } }) - here the green toast does not even appear, nothing happens at all. Other stuff like setting profiles works.
Title: Re: Locus API quick_bookmark function doesn't work.
Post by: Menion on August 15, 2022, 15:45:43
Hi guys,

@opepryk
try it please as tapio wrote, without quotations:
tasks: { quick_bookmark : { action: "start", name: "Google" } }
This works for me correctly. Just for sure.

@tapio
what your task should do? Most bookmarks need to have an open and visible map screen. Without it, does not work.
Title: Re: Locus API quick_bookmark function doesn't work.
Post by: Tapio on August 16, 2022, 16:33:58
Quote from: Menion on August 15, 2022, 15:45:43
Hi guys,

@opepryk
try it please as tapio wrote, without quotations:
tasks: { quick_bookmark : { action: "start", name: "Google" } }
This works for me correctly. Just for sure.

@tapio
what your task should do? Most bookmarks need to have an open and visible map screen. Without it, does not work.
My task? I have no task, I don't need quick bookmarks triggered via intent. Was just testing what op tries.
Title: Re: Locus API quick_bookmark function doesn't work.
Post by: opepryk on August 24, 2022, 13:10:03
My bad. I confused "Quick New Point" feature with "Quick bookmark". Quick bookmarks do work fine.
Similar API feature for "Quick New Point" would be very welcome.

Quote from: Menion on August 15, 2022, 15:45:43Hi guys,

@opepryk
try it please as tapio wrote, without quotations:
tasks: { quick_bookmark : { action: "start", name: "Google" } }This works for me correctly. Just for sure.

@tapio
what your task should do? Most bookmarks need to have an open and visible map screen. Without it, does not work.
Title: Re: Locus API quick_bookmark function doesn't work.
Post by: Menion on August 25, 2022, 14:14:48
Ah oki.
"Quick add point" seems to be a complicated task so not for now, sorry.