android - google-place-api returning null json -


in app want use google place api nearest places such atm, bus stand etc... returning null result.. url is

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=28.568315675,77.33492885&radius=5000&types=atm&sensor=false&key=aizasyaryw3r30sfqcsdb3wqr_eeiz_davyuilq

and code is::

    string data = "";     inputstream istream = null;     httpurlconnection urlconnection = null;     try{             url url = new url(strurl);                                urlconnection = (httpurlconnection) url.openconnection();                               urlconnection.connect();                               istream = urlconnection.getinputstream();              bufferedreader br = new bufferedreader(new inputstreamreader(istream));              stringbuffer sb  = new stringbuffer();              string line = "";             while( ( line = br.readline())  != null){                     sb.append(line);             }              data = sb.tostring();              br.close();      }catch(exception e){             log.d("exception while downloading url", e.tostring());     }finally{             istream.close();             urlconnection.disconnect();     }     return data; 

i hv reffered many links no koi milii....

how can search places specific types using google places api?

finding both "shopping_mall" , "food" within single url google places api

you r using key i.e key android apps.. instead of key browser app.. use dis.. run... gud luck


Comments