mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
fixed autocompletion of addresses
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@877 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
a06adc56ab
commit
23b422ced5
1 changed files with 2 additions and 6 deletions
|
@ -183,8 +183,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
results.add(new Location(LocationType.STATION, stop.getInt("stateless"), lat, lon, place, name));
|
||||
else if ("poi".equals(type))
|
||||
results.add(new Location(LocationType.POI, 0, lat, lon, place, name));
|
||||
else if ("street".equals(type))
|
||||
results.add(new Location(LocationType.ADDRESS, 0, lat, lon, place, name));
|
||||
else if ("street".equals(type) || "address".equals(type) || "singlehouse".equals(type))
|
||||
results.add(new Location(LocationType.ADDRESS, 0, lat, lon, place, stop.getString("name")));
|
||||
else
|
||||
throw new IllegalArgumentException("unknown type: " + type);
|
||||
}
|
||||
|
@ -1752,8 +1752,6 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
final Calendar time = new GregorianCalendar(timeZone());
|
||||
final List<Connection> connections = new ArrayList<Connection>();
|
||||
|
||||
System.out.println("====================== bis hier");
|
||||
|
||||
if (XmlPullUtil.jumpToStartTag(pp, null, "itdRouteList"))
|
||||
{
|
||||
XmlPullUtil.enter(pp, "itdRouteList");
|
||||
|
@ -2017,8 +2015,6 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
|
||||
XmlPullUtil.exit(pp, "itdRouteList");
|
||||
|
||||
System.out.println("=== ready");
|
||||
|
||||
return new QueryConnectionsResult(header, uri, from, via, to, commandLink(context, requestId, "tripNext"), connections);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue