Falcosc / locus-addon-tasker

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

Get close point of track #18

Closed Falcosc closed 3 years ago

Falcosc commented 3 years ago

@tortuosit how do you use your close position task? https://youtu.be/_7W2kzzaSxs?t=35 it seems painfully slow. Is there an useful use case where something like this does help?

Maybe it could be a lot faster if the track is reasonably long.

How did you implement this without get track points and without a get closed point of track function? And how did you find the track from the map?

Or does this have nothing to do with tracks? Because right after finding the first point you jump to an empty place in the map.

TapioOfTapiola commented 3 years ago

Oh sorry, you misinterpreted - it's just some useless random position thing unrelated to tracks! Just a random offset position (from map center). Sometimes I ask the gods of randomness for a raw hiking direction/target. Not really useful. The point is calculated and displayed quickly, but Locus is the one who a) moves the map center and b) delays it (I have no influence on a and b). It's done via intent (geo:lat,lon)

Falcosc commented 3 years ago

Which action for point creation is so slow? This looks a lot faster: https://www.youtube.com/watch?v=D66wa_qnWmU

You can try the new map move zoom (animated) task, it does support lon/lat as target. (Not sure if locus maps beta does already support it, it is only a few days old) I did add it into my 1.5.0 beta version

TapioOfTapiola commented 3 years ago

Thanks for your help.

Which action for point creation is so slow? This looks a lot faster: https://www.youtube.com/watch?v=D66wa_qnWmU

OK, had a look at the code. The delay just happens because there is a 1.5s wait command in the task.