Using an if statement. When your current coordinate is close enough to the specific target coord, set its position to it.
Let’s say you have variables SPEED_X, SPEED_Y, TARGET_POSITION
if abs(TARGET_POSITION.x - object.position.x) < abs(SPEED_X) and abs(TARGET_POSITION.y - object.position.y) < abs(SPEED_Y):
object.set_postion(TARGET_POSITION)
object.target_position_reached()