You need to use Google's GeoCoding API. Make a http request to the API with the required parameters and you would get the lat long as the response. More details about the API and examples are here.