Locus API quick_bookmark function doesn't work.

Started by opepryk, August 11, 2022, 14:49:06

0 Members and 1 Guest are viewing this topic.

opepryk

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

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.
  •  

Tapio

#1
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.
LM4 USER ID: 1AACAFF2A2
My "Tasker vs. Locus" YouTube playlist: http://tiny.cc/LocusVsTasker
  •  

Menion

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.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •  

Tapio

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.
LM4 USER ID: 1AACAFF2A2
My "Tasker vs. Locus" YouTube playlist: http://tiny.cc/LocusVsTasker
  •  

opepryk

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.
  •  

Menion

Ah oki.
"Quick add point" seems to be a complicated task so not for now, sorry.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •