Getting latitude and longitude along with city name from google map in yii

I would like to get latitude and longitude along with city name from google map in yii.

I would like my user to either first select his city or country from a dropdown then google map will open up and he can select the proper place after which I should receive the latitude and longitude of tehplace

Is there an extension or tutorial about this in yii?