Commit 40d08c89 authored by Volker Krause's avatar Volker Krause
Browse files

Add VDV organization ids to the coverage data

Just like UIC company codes, this enables selecting the right backend for
a given ticket.
parent 6fe1c412
Pipeline #92002 passed with stage
in 1 minute and 33 seconds
......@@ -22,6 +22,7 @@ public:
CoverageArea::Type type = CoverageArea::Any;
QStringList regions;
QStringList uicCompanyCodes;
QStringList vdvOrganizationIds;
std::vector<QPolygonF> areas;
QRectF boundingBox;
};
......@@ -31,6 +32,7 @@ KPUBLICTRANSPORT_MAKE_GADGET(CoverageArea)
KPUBLICTRANSPORT_MAKE_PROPERTY(CoverageArea, CoverageArea::Type, type, setType)
KPUBLICTRANSPORT_MAKE_PROPERTY(CoverageArea, QStringList, regions, setRegions)
KPUBLICTRANSPORT_MAKE_PROPERTY(CoverageArea, QStringList, uicCompanyCodes, setUicCompanyCodes)
KPUBLICTRANSPORT_MAKE_PROPERTY(CoverageArea, QStringList, vdvOrganizationIds, setVdvOrganizationIds)
bool CoverageArea::isEmpty() const
{
......
......@@ -38,6 +38,8 @@ public:
/** UIC company codes of operators covered by this backend. */
KPUBLICTRANSPORT_PROPERTY(QStringList, uicCompanyCodes, setUicCompanyCodes)
/** VDV organization ids of operators covered by this backend. */
KPUBLICTRANSPORT_PROPERTY(QStringList, vdvOrganizationIds, setVdvOrganizationIds)
public:
/** Checks whether this coverage area is empty.
......
......@@ -86,6 +86,13 @@
"0080",
"1080",
"1180"
],
"vdvOrganizationIds": [
"6212",
"6260",
"6261",
"6312",
"6377"
]
}
},
......
......@@ -72,6 +72,10 @@
},
"region": [
"DE-NW"
],
"vdvOrganizationIds": [
"70",
"6212"
]
}
},
......
......@@ -69,6 +69,10 @@
},
"region": [
"DE-NW"
],
"vdvOrganizationIds": [
"102",
"6212"
]
}
},
......
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