--- android/TrainInfo/src/dk/thoerup/traininfo/provider/GoogleStationProvider.java 2009/09/11 11:51:57 318 +++ android/TrainInfo/src/dk/thoerup/traininfo/provider/GoogleStationProvider.java 2009/09/11 12:24:53 319 @@ -16,7 +16,8 @@ List stations = new ArrayList(); @Override - public void lookupStations(Location location) { + public boolean lookupStations(Location location) { + boolean success = false; //ToDo: to be nice put the api key into the request String urlSource = "http://www.google.com/uds/GlocalSearch?callback=google.search.LocalSearch.RawCompletion&context=1&q=Train%20station&near=" + location.getLatitude() + "%2C" + location.getLongitude() + "&v=1.0"; //String urlSource = "http://www.google.com/uds/GlocalSearch?callback=google.search.LocalSearch.RawCompletion&context=1&q=Train%20station&near=56.2%2C9.0&v=1.0"; @@ -54,10 +55,11 @@ Log.e("Location", title + " " + lat +"," + lng); } - + success = true; } catch (Exception e) { Log.e("Location","Location",e); } + return success; } @Override