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

Add one more tag variant to read bus lines from

parent 61757598
Pipeline #196662 passed with stage
in 5 minutes and 41 seconds
......@@ -174,6 +174,7 @@ struct {
M("bicycle_parking", BicycleParking, Parking),
M("brand", Name, Header),
M("brand:wikipedia", Wikipedia, UnresolvedCategory),
M("bus_lines", Routes, Main),
M("bus_routes", Routes, Main),
M("buses", Routes, Main),
M("capacity", Capacity, UnresolvedCategory),
......@@ -510,7 +511,7 @@ QVariant OSMElementInformationModel::valueForKey(Info info) const
}
case Routes:
{
auto l = QString::fromUtf8(m_element.tagValue("route_ref", "bus_routes", "buses")).split(QLatin1Char(';'), Qt::SkipEmptyParts);
auto l = QString::fromUtf8(m_element.tagValue("route_ref", "bus_routes", "bus_lines", "buses")).split(QLatin1Char(';'), Qt::SkipEmptyParts);
for (auto &s : l) {
s = s.trimmed();
}
......
Supports Markdown
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