mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 08:19:50 +00:00
do not pre-populate connections with half-baked parts
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@62 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
9abab75816
commit
ea85db9851
6 changed files with 30 additions and 33 deletions
|
@ -234,7 +234,7 @@ public class SbbProvider implements NetworkProvider
|
|||
.parseTime(mConFine.group(5)));
|
||||
final String link = uri + "#" + id; // TODO use print link?
|
||||
|
||||
final Connection connection = new Connection(id, link, departureTime, arrivalTime, 0, from, 0, to,
|
||||
final Connection connection = new Connection(id, link, departureTime, arrivalTime, null, null, 0, from, 0, to,
|
||||
new ArrayList<Connection.Part>(1));
|
||||
connections.add(connection);
|
||||
}
|
||||
|
@ -437,6 +437,8 @@ public class SbbProvider implements NetworkProvider
|
|||
else
|
||||
strippedLine = line;
|
||||
|
||||
if (type.equals("ec")) // EuroCity
|
||||
return "I" + strippedLine;
|
||||
if (type.equals("ice")) // InterCityExpress
|
||||
return "I" + strippedLine;
|
||||
if (type.equals("ic")) // InterCity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue