drop pin on map

I want to be able to drop a pin on a map. For example if I view a satellite view of a golf course I want to drop a pin in the middle of the 12 th green and then calculate the distance from my current location. How can I drop a pin on the map where I click it and then move it around to place it in the correct spot and then get the latitude and longitude returned to me?

drop pin on map
 
 
Q