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

Add explicit mapping for two more Transport API configs

Those failed to match automatically.
parent 53564fad
Pipeline #52713 passed with stage
in 23 seconds
......@@ -37,7 +37,7 @@
"Name[x-test]": "xxTransport for NSWxx"
},
"coverage": {
"anyCoverage": {
"realtimeCoverage": {
"area": {
"coordinates": [
[
......@@ -73,6 +73,9 @@
"options": {
"endpoint": "https://transportnsw.info/web/"
},
"supportedLanguages": [
"en"
],
"timezone": "Australia/Sydney",
"type": {
"efa": true
......
......@@ -38,6 +38,11 @@
"Name[uk]": "Nahverkehrsservice Sachsen-Anhalt (INSA)",
"Name[x-test]": "xxNahverkehrsservice Sachsen-Anhalt (INSA)xx"
},
"attribution": {
"homepage": "https://www.nasa.de/",
"isProprietary": true,
"name": "Nahverkehrsservice Sachsen-Anhalt GmbH"
},
"coverage": {
"anyCoverage": {
"area": {
......@@ -92,13 +97,16 @@
"bitmasks": [
1
],
"mode": "LongDistanceTrain"
"mode": "LongDistanceTrain",
"name": "InterCityExpress"
},
{
"bitmasks": [
2
],
"mode": "LongDistanceTrain"
"id": "national",
"mode": "LongDistanceTrain",
"name": "InterCity & EuroCity"
},
{
"bitmasks": [
......@@ -110,25 +118,33 @@
"bitmasks": [
8
],
"mode": "LocalTrain"
"id": "regional",
"mode": "LocalTrain",
"name": "RegionalExpress & RegionalBahn"
},
{
"bitmasks": [
16
],
"mode": "RapidTransit"
"id": "suburban",
"mode": "RapidTransit",
"name": "S-Bahn"
},
{
"bitmasks": [
32
],
"mode": "Tramway"
"id": "tram",
"mode": "Tramway",
"name": "Tram"
},
{
"bitmasks": [
64
],
"mode": "Bus"
"id": "bus",
"mode": "Bus",
"name": "Bus"
},
{
"bitmasks": [
......@@ -140,7 +156,9 @@
"bitmasks": [
256
],
"mode": "Train"
"id": "tourismTrain",
"mode": "Train",
"name": "Tourism Train"
}
],
"standardLocationIdentifierCountries": [
......
......@@ -30,10 +30,12 @@ static constexpr struct {
const char* fromId;
const char* to;
} transport_api_mapping[] = {
{ "au", "transportnsw", "au_nsw" },
{ "be", "nmbs-sncb", "be_sncb" },
{ "ch", "sbb-cff-ffs", "ch_sbb" },
{ "de", "bayernfahrplan", "de_by_bayern" },
{ "de", "nahsh", "de_sh_sh" },
{ "de", "nasa", "de_st_insa" },
{ "de", "saarfahrplan", "de_sl_saarvv" },
{ "dk", "rejseplanen", "dk_dsb" },
};
......
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