--- android/TrainInfo/src/dk/thoerup/traininfo/provider/XmlDepartureProvider.java 2009/08/09 17:46:09 244 +++ android/TrainInfo/src/dk/thoerup/traininfo/provider/XmlDepartureProvider.java 2009/09/10 19:09:09 310 @@ -26,11 +26,14 @@ StringBuilder builder = new StringBuilder(512); @Override - public void lookupDepartures(String station) { + public void lookupDepartures(int stationID) { departures.clear(); try - { String url = "http://t-hoerup.dk/tog/xml_display.php?stationname="+station; - String doc = DownloadUtil.getContent(url, 30000, "ISO-8859-1"); + { + //String url = "http://t-hoerup.dk/tog/xml_display.php?stationcode="+stationCode; + String url = "http://app.t-hoerup.dk/TrainInfoService/DepartureServlet?format=xml&station=" + stationID; + Log.i("xmlurl",url); + String doc = DownloadUtil.getContentString(url, 45000, "ISO-8859-1"); InputSource source = new InputSource( new StringReader(doc));