32 |
@Override |
@Override |
33 |
public void lookupStations(Location location) { |
public void lookupStations(Location location) { |
34 |
|
|
|
//String url = "http://pumba.t-hoerup.dk:8080/TrainInfoService/LocateStations?latitude=" + location.getLatitude() + "&longitude=" + location.getLongitude(); |
|
35 |
String url = "http://app.t-hoerup.dk/TrainInfoService/LocateStations?latitude=" + location.getLatitude() + "&longitude=" + location.getLongitude(); |
String url = "http://app.t-hoerup.dk/TrainInfoService/LocateStations?latitude=" + location.getLatitude() + "&longitude=" + location.getLongitude(); |
36 |
Log.i("url", url); |
Log.i("url", url); |
37 |
try { |
try { |
63 |
|
|
64 |
String nodeName = current.getNodeName(); |
String nodeName = current.getNodeName(); |
65 |
|
|
|
Log.i("XML", "" + nodeName + "=" + content); |
|
|
|
|
66 |
if (nodeName.equals("id")) |
if (nodeName.equals("id")) |
67 |
station.setId( Integer.parseInt(content)); |
station.setId( Integer.parseInt(content)); |
68 |
|
|