Looking for a solution specifically for Android, although JavaScript knowledge is acceptable as well.
In the image displayed below, points A, B, and C are already provided Google Maps coordinates.
The primary objective is to determine the coordinate of point X.
This coordinate corresponds to the spot where the line connecting A and B comes closest to point C.
Is there a method to accurately locate X?