Dear Subhanshu - I believe, you have already figured out the solution.
For the benefit of others, please find the working code and example to find the latitute and longitude of any place.
Get Latitude and Longitude of any place using Google Map API in SAP – SAP Yard
If you still need any any explanation, do let me know.
Regards,
Raju.