I have exactly the same problem as Autocomplete textview google places api
But the fixes suggested to him don't fix the problem with my case. I uses the exact same code. But it does not work.
tanks for the api tip
i debuged the problem and saw i am getting a respond of zero_results
Any suggestion?
String input = "";
try {
input = "input=" + URLEncoder.encode(place[0], "utf-8");
} catch (UnsupportedEncodingException e1) {
e1.printStackTrace();
}
// place type to be searched
String types = "types=geocode";
// Sensor enabled
String sensor = "sensor=false";
// Building the parameters to the web service
String parameters = input + "&" + types + "&" + sensor + "&" + key;
// Output format
String output = "json";
// Building the url to the web service
String url = "https://maps.googleapis.com/maps/api/place/autocomplete/json?input="
+ output + "?" + parameters;