This question is specifically for Android, but I understand JavaScript as well.
In the image below, A,B and C are known Google Maps coordinates.
I need to find out the coordinate of point X.
The coordinate of point X is the place where the line between A and B is closest to point C.
Is there a way to find X?