Commit c9a103b3 authored by Volker Krause's avatar Volker Krause
Browse files

Parse TRIAS navigation and journey section path elements

parent dd8788f9
......@@ -501,7 +501,7 @@ JourneySection OpenJourneyPlannerParser::parseTransferLeg(ScopedXmlStreamReader
section.setScheduledDepartureTime(QDateTime::fromString(r.readElementText(), Qt::ISODate));
} else if (r.isElement("TimeWindowEnd")) {
section.setScheduledArrivalTime(QDateTime::fromString(r.readElementText(), Qt::ISODate));
} else if (r.isElement("PathGuidance")) {
} else if (r.isElement("PathGuidance") || r.isElement("NavigationPath")) {
section.setPath(parsePathGuidance(r.subReader()));
}
}
......@@ -513,7 +513,7 @@ Path OpenJourneyPlannerParser::parsePathGuidance(ScopedXmlStreamReader &&r) cons
Path path;
std::vector<PathSection> sections;
while (r.readNextSibling()) {
if (r.isElement("PathGuidanceSection")) {
if (r.isElement("PathGuidanceSection") || r.isElement("NavigationSection")) {
sections.push_back(parsePathGuildanceSection(r.subReader()));
}
}
......@@ -536,7 +536,7 @@ PathSection OpenJourneyPlannerParser::parseTrackSection(ScopedXmlStreamReader &&
{
PathSection section;
while (r.readNextSibling()) {
if (r.isElement("LinkProjection")) {
if (r.isElement("LinkProjection") || r.isElement("Projection")) {
auto subR = r.subReader();
QPolygonF poly;
while (subR.readNextSibling()) {
......
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