and in a second step I will filter for all my tiddlers that have pont inside this square.
Now I’m stuck in the first part, getting the four points.
With this I split latidudine longitudine, but if I use the Mathematics Operators sum or subtract I sum / subtract latidudine and longitudine. Not what I want
<$ vars inc = “0.5”>
<$ list filter = “[all [current] get [point] split [,] trim [] fixed [4]] sum []” variable = center>
(Related to the old riddle: Where can you walk one km south, one km east and one km north and be in the same spot that you started?)
An extra consideration to think about for your application is that lines of longitude are not parallel. So your “square” will look more and more like a skinny triangle near the poles until it breaks down completely within one delta/inc. of the poles.
Projecting a “square” of equal area anywhere on the globe given a lat/long coordinate as input is possible but not trivial.
A simple approximation is given here but still won’t work at the poles: