The nearest to a pin in golf is any point on the course that is closest to the hole, whether it be a flagstick or an object such as a fence or tree. For example, if you hit your ball into the rough and it rolls close enough to hit out of the rough and onto the green, your shot from there will count as being "near" or "on" the pin.