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

Switch EFA option format to that of the Transport API Repository

Allows us to use the upstream files as-is.
parent 5b749e39
......@@ -255,3 +255,8 @@ QUrlQuery EfaBackend::commonQuery() const
}
return query;
}
void EfaBackend::setXmlOutputFormat(const QString &format)
{
m_compactXmlResponse = format == QLatin1String("compact");
}
......@@ -26,7 +26,7 @@ class EfaBackend : public AbstractBackend
/** Identifier type used for stations. Default is backendId(). */
Q_PROPERTY(QString locationIdentifierType MEMBER m_locationIdentifierType)
/** Backend is using compact XML responses. */
Q_PROPERTY(bool compactXmlRepsonse MEMBER m_compactXmlResponse)
Q_PROPERTY(QString xmlOutputFormat WRITE setXmlOutputFormat)
/** Additional "mId" argument value, needed by some instances. */
Q_PROPERTY(QString mId MEMBER m_mId)
......@@ -54,6 +54,8 @@ private:
std::unique_ptr<EfaParser> make_parser() const;
QUrlQuery commonQuery() const;
void setXmlOutputFormat(const QString &format);
QString m_endpoint;
QString m_locationIdentifierType;
bool m_compactXmlResponse = false;
......
......@@ -73,7 +73,12 @@
}
},
"options": {
"endpoint": "https://www.linzag.at/linz2/"
"endpoint": "https://www.linzag.at/linz2/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
......@@ -73,8 +73,11 @@
}
},
"options": {
"compactXmlRepsonse": true,
"endpoint": "http://appefa10.verbundlinie.at/android/"
"endpoint": "http://appefa10.verbundlinie.at/android/",
"supportedOutputFormats": [
"XML"
],
"xmlOutputFormat": "compact"
},
"supportedLanguages": [
"de",
......
......@@ -71,7 +71,11 @@
}
},
"options": {
"endpoint": "https://transportnsw.info/web/"
"endpoint": "https://transportnsw.info/web/",
"supportedOutputFormats": [
"XML"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"en"
......
......@@ -71,7 +71,12 @@
}
},
"options": {
"endpoint": "https://www.efa-bw.de/nvbw3L/"
"endpoint": "https://www.efa-bw.de/nvbw3L/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
......@@ -75,7 +75,12 @@
}
},
"options": {
"endpoint": "https://projekte.kvv-efa.de/sl3/"
"endpoint": "https://projekte.kvv-efa.de/sl3/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
......@@ -74,7 +74,12 @@
}
},
"options": {
"endpoint": "https://www2.vvs.de/vvs/"
"endpoint": "https://www2.vvs.de/vvs/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
......@@ -73,8 +73,11 @@
}
},
"options": {
"compactXmlRepsonse": true,
"endpoint": "https://mobile.defas-fgi.de/beg/"
"endpoint": "https://mobile.defas-fgi.de/beg/",
"supportedOutputFormats": [
"XML"
],
"xmlOutputFormat": "compact"
},
"supportedLanguages": [
"de",
......
......@@ -74,7 +74,12 @@
}
},
"options": {
"endpoint": "https://efa.mvv-muenchen.de/mobile/"
"endpoint": "https://efa.mvv-muenchen.de/mobile/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
......@@ -78,7 +78,12 @@
}
},
"options": {
"endpoint": "https://efa.vgn.de/vgn/"
"endpoint": "https://efa.vgn.de/vgn/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de"
......
......@@ -73,7 +73,12 @@
}
},
"options": {
"endpoint": "https://fahrplanauskunft-mv.de/vmv3/"
"endpoint": "https://fahrplanauskunft-mv.de/vmv3/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
......@@ -78,7 +78,12 @@
}
},
"options": {
"endpoint": "https://app.efa.de/mdv_server/app_gvh/"
"endpoint": "https://app.efa.de/mdv_server/app_gvh/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
......@@ -74,7 +74,12 @@
}
},
"options": {
"endpoint": "https://efa.vrr.de/standard/"
"endpoint": "https://efa.vrr.de/standard/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
......@@ -71,7 +71,12 @@
}
},
"options": {
"endpoint": "https://www.rolph.de/fahrplanauskunft/"
"endpoint": "https://www.rolph.de/fahrplanauskunft/",
"supportedOutputFormats": [
"XML",
"JSON"
],
"xmlOutputFormat": "full"
},
"supportedLanguages": [
"de",
......
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