Determining if the Coordinates is within the Polygon

I have this series of Coordinates in a First table that could form a polygon. There is also a 2nd table for markers. The question is, on the OnClick Event of the Polygon, can we all determine what coordinates in that 2nd table that is within the drawn Polygon of the First Table.

Any help will do. Thank you.

I'm not sure I understand this question.
Are both polygons drawn on the map? If so, the polygon click event should tell what polygon was clicked.

Polygons are drawn at the map. The onClick event should determine if the other table containing coordinates is inside the polygon. If that coordinate/s is/are inside, a marker should be drawn later.

Sorry, we do not have an algorithm that would perform such calculations on a table of coordinates off the map.

Thank you Bruno.