[Task] Create random points with Tasker

Started by Tapio, August 30, 2024, 14:39:49

0 Members and 1 Guest are viewing this topic.

Tapio

Hi,

this is for the lulz, I use quite some techniques so you can learn from the task. Requires LM4.

Task creates random temporary points at map center in different ways.

Howto:
1. Import Task
2. Create a Quick Bookmark with in LM4, URL scheme see below code box.
3. Use that quick bookmark, in the dialogue, change values.

Have fun. Action no. 23, the JS code to calculate newpos from oldpos+dir+distance is the meat of it. "earth_radius" is for my area. Not too important.

Create random points in Locus Map 4 beta, at map center

Prerequisites:
Add it to Locus Map "Quick bookmarks"
URL Scheme:
tasker://assistantactions?task=RelPositionRND&par1={mapLat},{mapLon}

ARGS:
Number of points
Direction
Direction_range (30° means +/- 15°)
Distance_min
Distance_max
Relative from last point
Relative from last direction

Examples:
50 points in a circle, 100m radius
50, 0, 360, 0, 100, false, false

50 points in a half circle west, 100m radius
50, 270, 180, 0, 100, false, false

50 points at border of circle, 100m
50, 0, 360, 100, 100, false, false

20 subsequent points straight to the east
20, 90, 0, 100, 100, true, false

20 subsequent points straight to the somewhere
20, x, 0, 100, 100, true, false

20 subsequent points somewhat to the east
20, 90, 45, 100, 100, true, false

50 subsequent points to the east, but losing track
20, 90, 60, 100, 100, true, true

https://taskernet.com/shares/?user=AS35m8kdDIMDeveQcQfRglam%2Fah1mTW%2FWcg05FZ39c0i1q%2F77iY3E7cIwxCkXqJTaTA%3D&id=Task%3ARelPositionRND
Tapiola MFV4+ theme for OAM Maps:
Discuss - Releases - DL latest - Install latest