How to get the latitude and longtitude values by droping a pin in the google maps?

Hi, In my application, User want to set the source and destination address by droping  a pin in the google maps. For example, If the user drop a source pin at his home and drops a destination pin at his office. Now I want to get the latitude and longitude values of the source and destination addresses. If possible please tell me how to get the exact address also. Please help me. Thanks, Venkat.
1 answers

See Chris' answer here on how to implement an onclick function. Then, you can use Google's Reverse Geocoding API to get an address corresponding to that location.