26 |
StringBuilder builder = new StringBuilder(512); |
StringBuilder builder = new StringBuilder(512); |
27 |
|
|
28 |
@Override |
@Override |
29 |
public void lookupDepartures(String station) { |
public void lookupDepartures(int stationID) { |
30 |
departures.clear(); |
departures.clear(); |
31 |
try |
try |
32 |
{ String url = "http://t-hoerup.dk/tog/xml_display.php?stationname="+station; |
{ |
33 |
|
//String url = "http://t-hoerup.dk/tog/xml_display.php?stationcode="+stationCode; |
34 |
|
String url = "http://app.t-hoerup.dk/TrainInfoService/DepartureServlet?format=xml&station=" + stationID; |
35 |
|
Log.i("xmlurl",url); |
36 |
String doc = DownloadUtil.getContentString(url, 45000, "ISO-8859-1"); |
String doc = DownloadUtil.getContentString(url, 45000, "ISO-8859-1"); |
37 |
|
|
38 |
InputSource source = new InputSource( new StringReader(doc)); |
InputSource source = new InputSource( new StringReader(doc)); |