Commit 105aeaab authored by Volker Krause's avatar Volker Krause
Browse files

Honor journey request parameters for including intermediate stops and paths

parent d8e4678c
......@@ -154,7 +154,18 @@ bool IvvAssBackend::queryJourney(const JourneyRequest &req, JourneyReply *reply,
query.addQueryItem(req.dateTimeMode() == JourneyRequest::Departure ? QStringLiteral("d") : QStringLiteral("a"), dt.toString(Qt::ISODate));
query.addQueryItem(QStringLiteral("c"), QString::number(req.maximumResults()));
query.addQueryItem(QStringLiteral("s"), QStringLiteral("t"));
query.addQueryItem(QStringLiteral("o"), QStringLiteral("vdpa")); // v: intermediate stops, d: walking directions, p: paths, a: load
QString options;
if (req.includeIntermediateStops()) {
options += QLatin1Char('v'); // "vias"
if (req.includePaths()) {
options += QLatin1Char('d'); // walking directions
options += QLatin1Char('p'); // paths
options += QLatin1Char('a'); // load/demand
query.addQueryItem(QStringLiteral("o"), options);
QUrl url(m_endpoint);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment