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 SPEEDX, SPEEDY, TARGETPOSITION
if abs(TARGETPOSITION.x - object.position.x) < abs(SPEEDX) and abs(TARGETPOSITION.y - object.position.y) < abs(SPEEDY):
object.setpostion(TARGETPOSITION)
object.targetposition_reached()