mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 15:58:49 +00:00
documentation
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@945 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
69ca0a5f94
commit
d3ea0bc9f4
1 changed files with 6 additions and 2 deletions
|
@ -765,8 +765,12 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
request.append("<ReqT a=\"").append(dep ? 0 : 1).append("\" date=\"")
|
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)))
|
.append(String.format("%04d.%02d.%02d", c.get(Calendar.YEAR), c.get(Calendar.MONTH) + 1, c.get(Calendar.DAY_OF_MONTH)))
|
||||||
.append("\" time=\"").append(String.format("%02d:%02d", c.get(Calendar.HOUR_OF_DAY), c.get(Calendar.MINUTE)) + "\"/>");
|
.append("\" time=\"").append(String.format("%02d:%02d", c.get(Calendar.HOUR_OF_DAY), c.get(Calendar.MINUTE)) + "\"/>");
|
||||||
request.append("<RFlags b=\"0\" chExtension=\"").append(walkSpeed == WalkSpeed.SLOW ? 50 : 0).append("\" f=\"").append(NUM_CONNECTIONS)
|
request.append("<RFlags");
|
||||||
.append("\" sMode=\"N\"/>");
|
request.append(" b=\"").append(0).append("\""); // number of connections backwards
|
||||||
|
request.append(" f=\"").append(NUM_CONNECTIONS).append("\""); // number of connection forwards
|
||||||
|
request.append(" chExtension=\"").append(walkSpeed == WalkSpeed.SLOW ? 50 : 0).append("\""); // percentual extension of change time
|
||||||
|
// nrChanges: max number of changes
|
||||||
|
request.append(" sMode=\"N\"/>");
|
||||||
request.append("</ConReq>");
|
request.append("</ConReq>");
|
||||||
|
|
||||||
return queryConnections(request.toString(), from, via, to);
|
return queryConnections(request.toString(), from, via, to);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue