
The black 2 points (geographical coordinates) are the two points we know. The first coordinate is latitude, the second is longitude.
P1 = (51.071833, 6.237205)
P2 = (51.071836, 6.237195)
I can build a black diagonal of the rectangle. Any symetric 2 other points of the circle would build rectangle to this diagonal (i.e. the red box).
In my script I did exactly the red rectangle. I went down on the yaxis from the left upper corner to the lower edge, and to the right from the upper left corner to the right edge. Then, P3 and P4 have a coordinates:
P3 = (51.071833, 6.237195)
P4 = (51.071836, 6.237205)
Then (red rectangle) is exactly the north/south orientated rectange to the diagonal we have.
But that is not rectangle that I looking for. I looking for exactly pink rectangle.
From the project, the image that I am trying to reproduce (pink correct rectangle), I know that the rectangle has to be 94*8mm wide and 8mm high. So the ratio between length and width is 1/94 (the ratio is predefined, it does not result from any of my calculations or drawing).
With this information, I should be able to calculate the exact position (pink rectangle) of the two other vertices (P3' and P4'), but I don't know how to do it.
I expect that the pink rectangle should not be oriented exactly the north/south orientated to the diagonal we have.
Do you have any idea how to calculate the two other vertices of the pink rectangle P3' and P4' (geographic coordinates), taking into account the predefined ratio between length and width?
Thanks

If a rectangle's diagonal makes angle $\theta$ with its base, then its height/width ratio is $\tan\theta$ and the angle between the two diagonals is $2\theta$. So to get your other diagonal, rotate your known diagonal by $2\tan^{-1}(1/94)$ radians in either direction around the midpoint. (Using $94$ instead of $1/94$ works too but gives you an angle close to $\pi$ instead of close to $0$.)