mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-06 15:18:49 +00:00
fixed via connections
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@914 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
c0185efd98
commit
de9b906855
1 changed files with 5 additions and 1 deletions
|
@ -754,7 +754,11 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
request.append("<Prod prod=\"").append(productsStr).append("\" bike=\"0\" couchette=\"0\" direct=\"0\" sleeper=\"0\"/>");
|
||||
request.append("</Start>");
|
||||
if (via != null)
|
||||
request.append("<Via>").append(locationXml(via)).append("</Via>");
|
||||
{
|
||||
request.append("<Via>").append(locationXml(via));
|
||||
request.append("<Prod prod=\"").append(productsStr).append("\" bike=\"0\" couchette=\"0\" direct=\"0\" sleeper=\"0\"/>");
|
||||
request.append("</Via>");
|
||||
}
|
||||
request.append("<Dest>").append(locationXml(to)).append("</Dest>");
|
||||
request.append("<ReqT a=\"").append(dep ? 0 : 1).append("\" date=\"")
|
||||
.append(String.format("%04d.%02d.%02d", c.get(Calendar.YEAR), c.get(Calendar.MONTH) + 1, c.get(Calendar.DAY_OF_MONTH)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue