Code to create URL:
EditText editText = (EditText) findViewById(R.id.editText);
String Destin = editText.getText().toString();
StringBuilder googlePlacesUrl = new StringBuilder("https://maps.googleapis.com/maps/api/place/textsearch/json?");
//googlePlacesUrl.append(name);
googlePlacesUrl.append("key=myKey&query=");
googlePlacesUrl.append(name);
=========================
Logs on Fail: java.io.FileNotFoundException: https://maps.googleapis.com/maps/api/place/textsearch/json?key=myKey&query=Place_name street
Also,succefussly getting location for:name=place_name i.e. with no spaces https://maps.googleapis.com/maps/api/place/textsearch/json?key=myKey&query=Place_name