--- android/TrainInfo/src/dk/thoerup/traininfo/provider/GoogleStationProvider.java 2009/08/27 08:34:50 283 +++ android/TrainInfo/src/dk/thoerup/traininfo/provider/GoogleStationProvider.java 2009/10/10 11:30:08 433 @@ -15,8 +15,18 @@ List stations = new ArrayList(); + public boolean lookupStationsByName(String name) { + return false; // Not supported + } + + @Override + public boolean lookupStationsByIds(String ids) { + return false; + } + @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 +64,11 @@ Log.e("Location", title + " " + lat +"," + lng); } - + success = true; } catch (Exception e) { Log.e("Location","Location",e); } + return success; } @Override