Google Places API网址返回错误

时间:2014-06-03 17:27:01

标签: google-maps

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-35.3419983,149.108&radius=8000&types=school&name=Malkara%20School&sensor=true&key=MY_KEY

我正在通过我在java中的程序准备以上链接并重新查找有关这些地方的详细信息。但是我遇到了错误。请参阅下面的代码。

Line 1 : URL url = new URL(theUrl);
Line 2 : URLConnection urlConnection = url.openConnection();
Line 3 : BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()), 8);

第3行导致错误。令人惊讶的是,Exception e为null !!!

我正在使用ADT捆绑包。

非常感谢任何帮助。

的问候,

- 的Pankaj

0 个答案:

没有答案