From b2f94ae8c0409a2fbc5eddde3dd3ec64f375b9a4 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 17 Jan 2021 18:57:33 +0100 Subject: [PATCH 01/35] DE: add more details to DB --- data/de/db-hafas-mgate.json | 81 +++++++++++++++++++++++++++++++------ 1 file changed, 69 insertions(+), 12 deletions(-) diff --git a/data/de/db-hafas-mgate.json b/data/de/db-hafas-mgate.json index 0937e47..95bcf0d 100644 --- a/data/de/db-hafas-mgate.json +++ b/data/de/db-hafas-mgate.json @@ -9,6 +9,23 @@ "fr", "es" ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "DB Fernverkehr AG", + "homepage": "https://www.bahn.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["DE", "LU", "CH", "LI", "AT"] + }, + "regularCoverage": { + "region": ["PL", "CZ", "SK", "HU", "SI", "RO", "BE"] + }, + "anyCoverage": { + "region": ["UA", "HR", "BG", "IT", "FR", "ES", "PT", "GB", "DK", "SE"] + } + }, "options": { "auth": { "aid": "n91dB8Z77MLdoR0K" @@ -22,19 +39,59 @@ }, "endpoint": "https://reiseauskunft.bahn.de/bin/mgate.exe", "ext": "DB.R19.12.a", - "lineModeMap": { - "1": "Long-distance train (ICE)", - "128": "Metro", - "16": "Rapid Transit (S)", - "2": "Long-Distance Train (IC/EC)", - "256": "Tram", - "32": "Bus", - "4": "Local Train (D)", - "512": "Taxi", - "64": "Ferry", - "8": "Local Train (RE/RB)" - }, "locationIdentifierType": "db", + "products": [ + { + "id": "express-train", + "bitmask": 1, + "name": "Long-distance train (ICE)" + }, + { + "id": "long-distance-train", + "bitmask": 2, + "name": "Long-Distance Train (IC/EC)" + }, + { + "id": "local-train", + "bitmask": 4, + "name": "Local Train (D)" + }, + { + "id": "regional-train", + "bitmask": 8, + "name": "Local Train (RE/RB)" + }, + { + "id": "rapid-transit", + "bitmask": 16, + "name": "Rapid Transit (S)" + }, + { + "id": "bus", + "bitmask": 32, + "name": "Bus" + }, + { + "id": "ferry", + "bitmask": 64, + "name": "Ferry" + }, + { + "id": "metro", + "bitmask": 128, + "name": "Metro" + }, + { + "id": "tram", + "bitmask": 256, + "name": "Tram" + }, + { + "id": "taxi", + "bitmask": 512, + "name": "Taxi" + } + ], "standardLocationIdentifierCountries": [ 51, 53, From ab866d4624c94f43f2fb0e0bf68a15f894b26068 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:21:32 +0100 Subject: [PATCH 02/35] =?UTF-8?q?AT:=20add=20=C3=96BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/at/oebb-hafas-mgate.json | 103 ++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 data/at/oebb-hafas-mgate.json diff --git a/data/at/oebb-hafas-mgate.json b/data/at/oebb-hafas-mgate.json new file mode 100644 index 0000000..e6f4e1d --- /dev/null +++ b/data/at/oebb-hafas-mgate.json @@ -0,0 +1,103 @@ +{ + "name": "Österreichische Bundesbahnen (ÖBB)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Vienna", + "attribution": { + "name": "ÖBB-Personenverkehr AG", + "license": "todo", + "homepage": "https://www.oebb.at/" + }, + "coverage": { + "realtimeCoverage": { + "region": ["AT"] + }, + "regularCoverage": { + "region": ["CH", "LI", "DE", "IT", "SI", "HU", "SK", "CZ", "FR", "BE", "LU"] + }, + "anyCoverage": { + "region": ["NL"] + } + }, + "options": { + "endpoint": "http://fahrplan.oebb.at/bin/mgate.exe", + "client": { + "type": "IPA", + "id": "OEBB", + "v": "6000500", + "name": "oebbIPAD_ADHOC", + "os": "iOS 10.3.3" + }, + "ver": "1.16", + "auth": { + "aid": "OWDL4fE4ixNiPBBm" + }, + "lang": "de", + "products": [ + { + "id": "express-train", + "bitmask": 1, + "name": "InterCityExpress & RailJet" + }, + { + "id": "long-distance-train-1", + "bitmask": 2, + "name": "InterCity & EuroCity" + }, + { + "id": "long-distance-train-2", + "bitmask": 4, + "name": "InterCity & EuroCity" + }, + { + "id": "long-distance-train-3", + "bitmask": 8, + "name": "Durchgangszug & EuroNight" + }, + { + "id": "regional-train", + "bitmask": 16, + "name": "Regional & RegionalExpress" + }, + { + "id": "suburban", + "bitmask": 32, + "name": "S-Bahn" + }, + { + "id": "bus", + "bitmask": 64, + "name": "Bus" + }, + { + "id": "ferry", + "bitmask": 128, + "name": "Ferry" + }, + { + "id": "subway", + "bitmask": 256, + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmask": 512, + "name": "Tram" + }, + { + "id": "on-call", + "bitmask": 2048, + "name": "on-call transit, lifts, etc" + }, + { + "id": "long-distance-train-4", + "bitmask": 4096, + "name": "Durchgangszug & EuroNight" + } + ] + } +} From 7f204ae37eb7295f8d5016daa8a6074d1a7259d2 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:11:28 +0100 Subject: [PATCH 03/35] CH: add SBB --- data/ch/sbb-cff-ffs-hafas-mgate.json | 89 ++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 data/ch/sbb-cff-ffs-hafas-mgate.json diff --git a/data/ch/sbb-cff-ffs-hafas-mgate.json b/data/ch/sbb-cff-ffs-hafas-mgate.json new file mode 100644 index 0000000..662bbb8 --- /dev/null +++ b/data/ch/sbb-cff-ffs-hafas-mgate.json @@ -0,0 +1,89 @@ +{ + "name": "Swiss Railways (SBB/CFF/FFS)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "fr", + "it", + "en" + ], + "timezone": "Europe/Zurich", + "attribution": { + "name": "Schweizerische Bundesbahnen SBB", + "homepage": "https://www.sbb.ch", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[5.95012,46.13037],[5.96722,46.12541],[5.9932,46.13926],[6.03725,46.13002],[6.05585,46.14681],[6.13832,46.13729],[6.19005,46.16087],[6.19349,46.17713],[6.22843,46.19764],[6.29904,46.22181],[6.31664,46.24302],[6.31552,46.25832],[6.29362,46.26901],[6.26884,46.25321],[6.24486,46.2774],[6.25929,46.28954],[6.25499,46.30344],[6.22819,46.31394],[6.25818,46.35751],[6.33795,46.39951],[6.42804,46.41163],[6.52095,46.45185],[6.68091,46.44985],[6.81274,46.42411],[6.79653,46.39325],[6.79941,46.38036],[6.76664,46.36398],[6.76484,46.35256],[6.79498,46.31704],[6.81507,46.31164],[6.82555,46.29694],[6.85815,46.28153],[6.84857,46.25632],[6.81563,46.2346],[6.79777,46.20647],[6.80518,46.1831],[6.78527,46.16337],[6.79149,46.13515],[6.81405,46.12483],[6.89044,46.1202],[6.87586,46.09536],[6.88266,46.07608],[6.86659,46.0486],[6.8918,46.03772],[6.92721,46.06027],[6.9462,46.04615],[6.97439,46.01744],[6.9802,46.00157],[7.00372,45.99462],[7.01465,45.97944],[7.00333,45.96698],[7.02994,45.95243],[7.03779,45.92101],[7.05697,45.90885],[7.05851,45.89809],[7.08708,45.87547],[7.09758,45.85563],[7.12112,45.8552],[7.15571,45.87428],[7.17196,45.85907],[7.19901,45.85622],[7.22218,45.88508],[7.26056,45.88458],[7.29517,45.91557],[7.32306,45.90577],[7.34347,45.90986],[7.38809,45.89283],[7.44785,45.9268],[7.47907,45.93261],[7.48148,45.94834],[7.51636,45.95604],[7.54233,45.95131],[7.55263,45.96133],[7.55202,45.98157],[7.57035,45.98296],[7.58587,45.9665],[7.66155,45.97089],[7.67686,45.95352],[7.70235,45.94579],[7.70189,45.93216],[7.71839,45.91925],[7.73827,45.91997],[7.75287,45.93503],[7.79743,45.91308],[7.82147,45.92223],[7.86444,45.91225],[7.88332,45.92561],[7.87544,45.93816],[7.88566,45.97131],[7.91252,45.99208],[7.99038,45.9916],[8.01744,46.00917],[8.02093,46.03077],[8.0408,46.04328],[8.02894,46.07012],[8.04032,46.09561],[8.11208,46.10801],[8.12241,46.12787],[8.14796,46.13313],[8.15984,46.14422],[8.15631,46.16105],[8.17149,46.18384],[8.1595,46.19382],[8.14429,46.22865],[8.11884,46.24134],[8.1139,46.25319],[8.09147,46.25781],[8.09275,46.26385],[8.14047,46.29746],[8.15977,46.29157],[8.20231,46.29853],[8.21773,46.30744],[8.23166,46.3321],[8.26779,46.34316],[8.26946,46.36082],[8.28617,46.35944],[8.3175,46.37407],[8.32517,46.38594],[8.32249,46.39927],[8.30083,46.40906],[8.30907,46.41969],[8.32946,46.42145],[8.36956,46.44775],[8.44469,46.45896],[8.45805,46.44222],[8.45036,46.42303],[8.46109,46.41127],[8.46259,46.39649],[8.45449,46.38656],[8.46239,46.36276],[8.45513,46.35389],[8.45754,46.33461],[8.42126,46.29863],[8.44772,46.26586],[8.43563,46.25571],[8.43904,46.24647],[8.45948,46.24035],[8.46839,46.22799],[8.52609,46.2156],[8.53515,46.19529],[8.55839,46.18055],[8.56763,46.16248],[8.59188,46.15168],[8.58679,46.14164],[8.60845,46.11788],[8.64392,46.11907],[8.68289,46.09819],[8.71425,46.09356],[8.74072,46.11498],[8.75702,46.0976],[8.78238,46.08962],[8.80785,46.09526],[8.84669,46.07132],[8.8414,46.05421],[8.82374,46.04937],[8.82018,46.03315],[8.7872,46.01002],[8.77986,45.98757],[8.82863,45.98288],[8.86477,45.95695],[8.89031,45.9536],[8.88685,45.93041],[8.91893,45.90276],[8.91556,45.89433],[8.93071,45.86609],[8.90839,45.84412],[8.90773,45.82725],[8.94951,45.83862],[8.96846,45.82804],[8.98553,45.83213],[8.98997,45.81849],[9.01975,45.81377],[9.03984,45.8205],[9.05697,45.86391],[9.09555,45.90071],[9.06306,45.92488],[9.02742,45.93315],[9.01971,45.96267],[9.00051,45.96971],[9.03477,45.99279],[9.01573,46.03549],[9.02375,46.04774],[9.0818,46.06101],[9.09599,46.0876],[9.07991,46.11624],[9.12522,46.13114],[9.16566,46.16664],[9.18834,46.16731],[9.20058,46.17728],[9.20761,46.20527],[9.224,46.21172],[9.22866,46.22598],[9.25466,46.23209],[9.25884,46.26499],[9.29068,46.29507],[9.28897,46.30884],[9.30655,46.32587],[9.29901,46.3359],[9.30635,46.34308],[9.30236,46.35715],[9.28342,46.36976],[9.29089,46.38528],[9.28346,46.39426],[9.28615,46.41604],[9.25466,46.43447],[9.25411,46.44395],[9.28419,46.45993],[9.28751,46.49273],[9.36273,46.5028],[9.36429,46.48904],[9.38516,46.46991],[9.41159,46.46239],[9.42994,46.47419],[9.43723,46.49282],[9.4555,46.50042],[9.45501,46.48912],[9.44257,46.48404],[9.45859,46.46962],[9.44796,46.42136],[9.46005,46.39697],[9.45508,46.37429],[9.49209,46.3607],[9.51263,46.32507],[9.54727,46.29813],[9.63455,46.2815],[9.67562,46.29515],[9.71198,46.28757],[9.73095,46.30885],[9.72659,46.32488],[9.739,46.34547],[9.77855,46.33035],[9.83705,46.35635],[9.87077,46.35819],[9.90555,46.37499],[9.92419,46.36161],[9.94921,46.37363],[9.98803,46.34721],[9.97349,46.32274],[9.99111,46.31014],[9.98517,46.29627],[9.99041,46.28254],[10.049,46.26284],[10.05316,46.25049],[10.03911,46.22663],[10.07053,46.21266],[10.09055,46.2234],[10.13532,46.2209],[10.18297,46.25876],[10.15953,46.29538],[10.12271,46.31679],[10.11184,46.33692],[10.11553,46.34841],[10.13515,46.35919],[10.13457,46.37581],[10.16728,46.38489],[10.17326,46.40833],[10.14541,46.43255],[10.12831,46.43622],[10.08663,46.4263],[10.0661,46.43108],[10.06086,46.44406],[10.04786,46.44646],[10.06087,46.46462],[10.0496,46.4802],[10.05556,46.49977],[10.04985,46.50655],[10.06052,46.52277],[10.05069,46.53883],[10.07282,46.5473],[10.09126,46.5652],[10.08902,46.57162],[10.10648,46.58059],[10.10625,46.60472],[10.12903,46.60069],[10.18815,46.62066],[10.21664,46.61255],[10.23431,46.62833],[10.24985,46.61053],[10.2357,46.59323],[10.24007,46.5732],[10.28256,46.5663],[10.29351,46.54584],[10.32522,46.5462],[10.33766,46.53824],[10.35664,46.55088],[10.39613,46.5395],[10.41587,46.54636],[10.4523,46.52623],[10.47691,46.54028],[10.49812,46.61717],[10.44871,46.64541],[10.40817,46.6398],[10.3915,46.68359],[10.42219,46.70739],[10.42509,46.72021],[10.41132,46.73291],[10.44893,46.75266],[10.44809,46.77286],[10.43336,46.78867],[10.45608,46.80158],[10.47303,46.83517],[10.47837,46.84875],[10.47308,46.88504],[10.49261,46.91441],[10.49593,46.93798],[10.45898,46.95669],[10.43126,46.96067],[10.43171,46.9785],[10.40256,47.00056],[10.38205,47.00412],[10.34104,46.9921],[10.3218,46.95666],[10.30212,46.94992],[10.29974,46.93921],[10.30911,46.9303],[10.23539,46.93413],[10.2192,46.89658],[10.22756,46.88392],[10.22462,46.87087],[10.19225,46.87083],[10.16539,46.85546],[10.10846,46.84625],[10.09097,46.86499],[10.0577,46.86651],[10.05714,46.8795],[10.02102,46.90554],[9.99317,46.90704],[9.97968,46.92023],[9.93951,46.91768],[9.88672,46.93797],[9.87917,46.96302],[9.89889,46.99059],[9.89417,47.00331],[9.87862,47.01032],[9.88701,47.01728],[9.87951,47.02513],[9.85872,47.02765],[9.83662,47.01847],[9.78725,47.04269],[9.72089,47.04839],[9.68239,47.06658],[9.64252,47.06393],[9.63186,47.05581],[9.60327,47.06627],[9.56008,47.0541],[9.54032,47.06963],[9.47905,47.06034],[9.51856,47.08272],[9.52577,47.09561],[9.51802,47.13369],[9.49248,47.18152],[9.53707,47.26923],[9.55181,47.27766],[9.56165,47.29557],[9.59381,47.31506],[9.61046,47.34866],[9.62615,47.36061],[9.66424,47.36646],[9.67967,47.38014],[9.68005,47.39239],[9.65853,47.40789],[9.65104,47.43445],[9.66538,47.44777],[9.66379,47.45538],[9.62565,47.46143],[9.61121,47.47479],[9.59937,47.46721],[9.56843,47.49753],[9.55589,47.53988],[9.51819,47.5412],[9.44954,47.5982],[9.27074,47.66024],[9.17323,47.66001],[9.1536,47.67165],[9.02339,47.69103],[8.89795,47.6524],[8.88229,47.65871],[8.87896,47.67274],[8.85965,47.68499],[8.88041,47.69214],[8.87824,47.70665],[8.8219,47.72287],[8.81015,47.74214],[8.76322,47.71941],[8.7649,47.70352],[8.79179,47.69955],[8.787,47.68102],[8.73353,47.6973],[8.74287,47.71712],[8.71949,47.73321],[8.74809,47.74785],[8.73208,47.76543],[8.71296,47.76984],[8.69488,47.76308],[8.68662,47.78907],[8.65648,47.80494],[8.64078,47.79651],[8.6419,47.77241],[8.63162,47.76479],[8.62238,47.78394],[8.62883,47.79472],[8.62381,47.80114],[8.56648,47.81284],[8.55739,47.80673],[8.5553,47.79226],[8.56918,47.78402],[8.55102,47.78896],[8.48596,47.77722],[8.46767,47.76668],[8.44362,47.74007],[8.44788,47.72772],[8.41307,47.71377],[8.39843,47.69973],[8.4125,47.68494],[8.39897,47.67355],[8.40825,47.66271],[8.45708,47.64826],[8.47218,47.63401],[8.53492,47.64179],[8.55542,47.66482],[8.57821,47.65705],[8.60028,47.66583],[8.6222,47.65027],[8.60475,47.65686],[8.59018,47.64557],[8.59836,47.61425],[8.57801,47.60131],[8.5714,47.6026],[8.58039,47.61425],[8.56159,47.6282],[8.51143,47.63727],[8.50146,47.62161],[8.47581,47.61911],[8.45057,47.60414],[8.45462,47.58629],[8.4688,47.57945],[8.46242,47.57654],[8.43138,47.5711],[8.3976,47.58171],[8.38059,47.57131],[8.33153,47.57529],[8.30326,47.59167],[8.30379,47.60707],[8.29504,47.61313],[8.25796,47.61982],[8.2295,47.61259],[8.20578,47.62559],[8.16189,47.59833],[8.10582,47.58618],[8.0877,47.562],[8.06632,47.56898],[8.02079,47.55492],[7.95889,47.56245],[7.94356,47.54852],[7.91692,47.55366],[7.91678,47.57283],[7.89538,47.5913],[7.84163,47.58665],[7.8223,47.59248],[7.79107,47.56096],[7.68308,47.53712],[7.65025,47.55566],[7.69112,47.5628],[7.69607,47.57262],[7.68118,47.5875],[7.69997,47.60246],[7.67083,47.59641],[7.64493,47.60142],[7.61849,47.58201],[7.58619,47.59396],[7.57807,47.58112],[7.56339,47.58163],[7.55158,47.56834],[7.50041,47.54732],[7.49261,47.54086],[7.4967,47.52566],[7.49127,47.52065],[7.50285,47.49964],[7.47631,47.4847],[7.42915,47.50077],[7.41449,47.47898],[7.44473,47.47006],[7.3968,47.43992],[7.35519,47.43878],[7.3302,47.44625],[7.25183,47.42833],[7.23149,47.44409],[7.20079,47.43968],[7.17961,47.44669],[7.19312,47.48071],[7.20913,47.48971],[7.20311,47.49854],[7.16346,47.49449],[7.12813,47.50843],[7.07836,47.49384],[7.021,47.50894],[6.97887,47.4981],[6.97982,47.47585],[6.99216,47.45379],[6.93525,47.43627],[6.93334,47.41027],[6.90806,47.40744],[6.90558,47.38849],[6.87752,47.37465],[6.873,47.35123],[6.9756,47.35568],[7.01511,47.36716],[7.04342,47.35852],[7.04393,47.34566],[7.0533,47.343],[7.04665,47.33358],[7.00559,47.32788],[7.00278,47.31943],[7.0094,47.31461],[6.99421,47.30046],[6.93572,47.28927],[6.94638,47.24457],[6.83562,47.17384],[6.84508,47.15999],[6.80075,47.13411],[6.73623,47.11303],[6.73868,47.0955],[6.69801,47.08524],[6.69862,47.07669],[6.68513,47.06552],[6.7065,47.05096],[6.69364,47.04158],[6.65497,47.03074],[6.63518,47.00558],[6.61571,46.99605],[6.59076,46.99587],[6.5071,46.97147],[6.49292,46.97788],[6.42781,46.93173],[6.43,46.91959],[6.45787,46.88955],[6.45379,46.85284],[6.42477,46.81286],[6.42917,46.79897],[6.45043,46.78713],[6.44551,46.77683],[6.42623,46.7602],[6.39121,46.7519],[6.38081,46.73532],[6.36416,46.73292],[6.33807,46.71412],[6.27522,46.69363],[6.22272,46.65131],[6.10491,46.57878],[6.14736,46.54529],[6.14256,46.53422],[6.10685,46.51169],[6.09148,46.48386],[6.06669,46.46702],[6.06834,46.45189],[6.07966,46.44348],[6.05742,46.41569],[6.09264,46.40547],[6.16253,46.36725],[6.13257,46.34127],[6.11375,46.31418],[6.1137,46.29919],[6.09625,46.28649],[6.11409,46.24978],[6.10146,46.24381],[6.08987,46.25146],[6.0617,46.25015],[6.04479,46.23763],[6.03124,46.24273],[5.96787,46.21613],[5.9575,46.19572],[5.98728,46.18246],[5.95012,46.13037]],[[7.50392,47.52406],[7.5239,47.5274],[7.51847,47.52171],[7.50392,47.52406]]]} + } + }, + "options": { + "endpoint": "http://fahrplan.sbb.ch/bin/mgate.exe", + "client": { + "type": "AND", + "id": "DBZUGRADARNETZ", + "v": "" + }, + "ver": "1.18", + "auth": { + "aid": "hf7mcf9bv3nv8g5f", + "type": "AID" + }, + "lang": "deu", + "products": [ + { + "id": "express-train", + "bitmask": 1, + "name": "ICE/EN/CNL/ES/RJ/TGV/THA" + }, + { + "id": "long-distance-train", + "bitmask": 2, + "name": "EC/IC/ICN/OEC" + }, + { + "id": "regional-train-1", + "bitmask": 4, + "name": "IR/PE" + }, + { + "id": "regional-train-2", + "bitmask": 8, + "name": "RE/D" + }, + { + "id": "ferry", + "bitmask": 16, + "name": "Schiff/Fähre/Dampfschiff" + }, + { + "id": "suburban", + "bitmask": 32, + "name": "S/SN/R/TER/RB" + }, + { + "id": "bus-taxi", + "bitmask": 64, + "name": "Bus/Taxi" + }, + { + "id": "funicular", + "bitmask": 128, + "name": "Standseilbahn/Gondelbahn/Luftseilbahn/Sesselbahn" + }, + { + "id": "special-train", + "bitmask": 256, + "name": "Autoreisezug/Extrazug" + }, + { + "id": "tram-metro", + "bitmask": 512, + "name": "Tram/Metro" + } + ] + } +} From 71cf742e15d2d2ef22c00ce6116c76251c14391e Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 23:36:44 +0100 Subject: [PATCH 04/35] LU: add CFL --- data/lu/cfl-hafas-mgate.json | 77 ++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 data/lu/cfl-hafas-mgate.json diff --git a/data/lu/cfl-hafas-mgate.json b/data/lu/cfl-hafas-mgate.json new file mode 100644 index 0000000..8d1c6e1 --- /dev/null +++ b/data/lu/cfl-hafas-mgate.json @@ -0,0 +1,77 @@ +{ + "name": "Société Nationale des Chemins de Fer Luxembourgeois (CFL)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "fr", + "en", + "de" + ], + "timezone": "Europe/Luxembourg", + "attribution": { + "name": "Société Nationale des Chemins de Fer Luxembourgeois", + "homepage": "https://www.cfl.lu/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["LU"] + }, + "anyCoverage": { + "region": ["NL", "DK", "DE", "PL", "CZ", "AT", "IT", "CH", "FR", "BE"] + } + }, + "options": { + "endpoint": "https://horaires.cfl.lu/bin/mgate.exe", + "client": { + "type": "IPH", + "id": "HAFAS", + "v": "4000000", + "name": "cflPROD-STORE", + "os": "iPhone OS 9.3.5" + }, + "ver": "1.16", + "auth": { + "aid": "ALT2vl7LAFDFu2dz" + }, + "lang": "de", + "products": [ + { + "id": "long-distance-train-1", + "bitmask": 1, + "name": "TGV, ICE, EuroCity" + }, + { + "id": "long-distance-train-2", + "bitmask": 2, + "name": "TGV, ICE, EuroCity" + }, + { + "id": "local-train-1", + "bitmask": 8, + "name": "local trains" + }, + { + "id": "local-train-2", + "bitmask": 16, + "name": "local trains" + }, + { + "id": "bus", + "bitmask": 32, + "name": "bus" + }, + { + "id": "tram", + "bitmask": 256, + "name": "tram" + }, + { + "id": "funicular", + "bitmask": 512, + "name": "Fun" + } + ] + } +} From 136fcaff9289f5a02624ec59587993dc658d6220 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:11:07 +0100 Subject: [PATCH 05/35] BE: add SNCB/NMBS --- data/be/nmbs-sncb-hafas-mgate.json | 75 ++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 data/be/nmbs-sncb-hafas-mgate.json diff --git a/data/be/nmbs-sncb-hafas-mgate.json b/data/be/nmbs-sncb-hafas-mgate.json new file mode 100644 index 0000000..5096691 --- /dev/null +++ b/data/be/nmbs-sncb-hafas-mgate.json @@ -0,0 +1,75 @@ +{ + "name": "Belgian National Rail (SNCB/NMBS)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "fr", + "nl", + "de", + "en" + ], + "timezone": "Europe/Brussels", + "attribution": { + "name": "Belgian National Rail", + "homepage": "https://www.belgiantrain.be/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"MultiPolygon","coordinates":[[[[2.38176,51.26876],[2.55202,51.07001],[2.56743,51.00148],[2.60065,50.98692],[2.62423,50.94702],[2.58308,50.91814],[2.59928,50.91065],[2.60177,50.89533],[2.59713,50.88623],[2.60465,50.86545],[2.59213,50.84788],[2.6085,50.84438],[2.6307,50.80937],[2.66995,50.81504],[2.67748,50.80897],[2.7139,50.80937],[2.72037,50.78974],[2.75341,50.76994],[2.74944,50.76194],[2.76028,50.75194],[2.77586,50.74629],[2.78476,50.7228],[2.81874,50.71102],[2.8449,50.71738],[2.86539,50.69965],[2.88479,50.69979],[2.90479,50.68788],[2.93529,50.7073],[2.93649,50.72384],[2.95178,50.73162],[2.94484,50.742],[2.95541,50.74813],[2.97548,50.74626],[3.05728,50.77618],[3.08838,50.76843],[3.11582,50.78735],[3.1441,50.78474],[3.19201,50.73374],[3.18426,50.7247],[3.20067,50.71563],[3.19984,50.70889],[3.24209,50.70765],[3.2518,50.69934],[3.24569,50.68979],[3.25304,50.67876],[3.235,50.67103],[3.23307,50.65791],[3.24143,50.64717],[3.23726,50.63933],[3.27028,50.59331],[3.27179,50.53785],[3.28292,50.52306],[3.3262,50.50404],[3.35708,50.50006],[3.3756,50.48666],[3.45237,50.50267],[3.47577,50.52762],[3.51068,50.52129],[3.48933,50.49974],[3.49806,50.48254],[3.55009,50.49307],[3.58456,50.48605],[3.60587,50.49097],[3.63937,50.4594],[3.65555,50.45453],[3.65136,50.44645],[3.66174,50.43692],[3.66703,50.40262],[3.65026,50.36807],[3.67772,50.31812],[3.70565,50.2996],[3.73755,50.3088],[3.73627,50.32579],[3.75158,50.34493],[3.80626,50.34848],[3.81526,50.34039],[3.84457,50.34876],[3.85375,50.3383],[3.88059,50.33355],[3.882,50.3232],[3.9008,50.32246],[3.95866,50.34138],[3.98789,50.33787],[4.02469,50.35137],[4.0304,50.34097],[4.07149,50.31835],[4.07412,50.30642],[4.09674,50.30757],[4.11618,50.29541],[4.11485,50.27686],[4.12718,50.26882],[4.13159,50.25368],[4.16734,50.25365],[4.1749,50.26038],[4.17067,50.27318],[4.20325,50.26882],[4.21346,50.25377],[4.18879,50.24375],[4.16356,50.22041],[4.14416,50.21562],[4.15366,50.19778],[4.14102,50.17441],[4.148,50.16461],[4.12013,50.13529],[4.14421,50.1241],[4.19072,50.12955],[4.19577,50.12062],[4.19031,50.10453],[4.22395,50.07257],[4.17967,50.05138],[4.15736,50.0525],[4.12853,50.01923],[4.13672,50.00296],[4.15363,49.99544],[4.13486,49.97638],[4.1873,49.96561],[4.19479,49.95046],[4.30782,49.9639],[4.34823,49.94809],[4.44591,49.93273],[4.527,49.94635],[4.54513,49.96408],[4.56829,49.96667],[4.58436,49.97894],[4.6969,49.99151],[4.69388,50.02601],[4.70701,50.05343],[4.68971,50.06643],[4.70769,50.09197],[4.75686,50.10889],[4.76983,50.13401],[4.81975,50.15712],[4.83069,50.14881],[4.87168,50.149],[4.88436,50.13593],[4.86154,50.12214],[4.86353,50.10305],[4.84773,50.10548],[4.83169,50.09565],[4.83275,50.07194],[4.81303,50.06782],[4.82107,50.04771],[4.83415,50.0399],[4.81392,50.02808],[4.81071,49.99548],[4.78774,49.98463],[4.78335,49.97003],[4.78601,49.95497],[4.84327,49.94522],[4.87937,49.91032],[4.85456,49.87054],[4.84067,49.86889],[4.86546,49.81909],[4.84596,49.7908],[4.90617,49.78106],[4.93411,49.78298],[4.95441,49.79591],[4.99018,49.79557],[5.01082,49.77616],[5.06171,49.75781],[5.08916,49.75939],[5.11195,49.7369],[5.11974,49.71032],[5.1444,49.70472],[5.15613,49.71208],[5.16089,49.68949],[5.24291,49.68087],[5.26723,49.69103],[5.32346,49.65493],[5.29821,49.63121],[5.3073,49.60841],[5.34192,49.61202],[5.35079,49.62489],[5.39243,49.61231],[5.42257,49.59365],[5.43142,49.56799],[5.44575,49.56279],[5.43597,49.54863],[5.45923,49.53609],[5.44119,49.51585],[5.46847,49.49298],[5.48879,49.50329],[5.54422,49.5112],[5.55542,49.52353],[5.59055,49.51731],[5.61236,49.50155],[5.62814,49.51824],[5.6245,49.52873],[5.65003,49.5456],[5.70364,49.53441],[5.72995,49.53978],[5.74779,49.53498],[5.76346,49.54053],[5.76374,49.55465],[5.77069,49.55842],[5.81948,49.54192],[5.84597,49.54944],[5.87825,49.57151],[5.87686,49.59075],[5.85551,49.59505],[5.8826,49.60615],[5.89192,49.63115],[5.9136,49.63668],[5.90919,49.64947],[5.91753,49.6619],[5.90644,49.67179],[5.86922,49.68101],[5.89362,49.71052],[5.86847,49.73088],[5.83413,49.72889],[5.8391,49.74821],[5.82409,49.75729],[5.79651,49.79787],[5.76034,49.79753],[5.75164,49.81944],[5.74939,49.8341],[5.76521,49.84582],[5.76397,49.86485],[5.7908,49.87183],[5.78315,49.88688],[5.74565,49.8992],[5.77007,49.91346],[5.78192,49.95444],[5.81062,49.95854],[5.84187,49.97671],[5.84702,49.99024],[5.82849,50.00053],[5.82725,50.0096],[5.86618,50.02693],[5.8769,50.04615],[5.86363,50.0631],[5.89297,50.07661],[5.90233,50.10996],[5.96769,50.12947],[5.97125,50.16877],[6.01987,50.17645],[6.02776,50.15974],[6.06349,50.14881],[6.08429,50.15372],[6.08666,50.16632],[6.10111,50.16576],[6.11147,50.16151],[6.10675,50.13327],[6.14102,50.12586],[6.16148,50.14116],[6.15082,50.16627],[6.19918,50.18108],[6.19533,50.20707],[6.17878,50.22134],[6.18257,50.23187],[6.20039,50.23378],[6.22796,50.25425],[6.28351,50.26329],[6.29766,50.27482],[6.29516,50.2917],[6.31479,50.31507],[6.32678,50.31754],[6.36411,50.30072],[6.38719,50.31673],[6.41251,50.32274],[6.415,50.33645],[6.40565,50.34713],[6.35207,50.38187],[6.37562,50.40557],[6.38452,50.43886],[6.37718,50.45844],[6.34872,50.46374],[6.34812,50.48103],[6.35643,50.49084],[6.30957,50.50595],[6.2694,50.50911],[6.22953,50.50204],[6.20373,50.53154],[6.21672,50.55098],[6.2296,50.55164],[6.24237,50.56418],[6.25518,50.60207],[6.2756,50.61723],[6.28111,50.63053],[6.27041,50.64591],[6.24761,50.64515],[6.23083,50.65379],[6.21859,50.64495],[6.19134,50.64463],[6.20308,50.65643],[6.20109,50.66507],[6.17033,50.66712],[6.12425,50.72283],[6.0423,50.73278],[6.04704,50.74715],[6.02123,50.7591],[5.98445,50.75788],[5.96098,50.76697],[5.89907,50.75794],[5.88651,50.77465],[5.81145,50.76048],[5.77313,50.78773],[5.75421,50.78162],[5.73348,50.76228],[5.71956,50.76919],[5.69154,50.7615],[5.70579,50.77901],[5.70086,50.81229],[5.6635,50.82266],[5.64749,50.84627],[5.6511,50.86311],[5.68528,50.878],[5.70344,50.9068],[5.72829,50.90631],[5.7343,50.92326],[5.76522,50.94966],[5.75296,50.96497],[5.72696,50.96072],[5.7743,50.99812],[5.78343,51.02415],[5.76563,51.03408],[5.77963,51.05795],[5.80684,51.0593],[5.80474,51.07185],[5.812,51.08],[5.80278,51.08953],[5.82553,51.08794],[5.83924,51.09599],[5.83839,51.1074],[5.81604,51.11584],[5.84683,51.12858],[5.86185,51.14702],[5.82603,51.17221],[5.78668,51.16016],[5.78235,51.18127],[5.7514,51.19293],[5.70905,51.18648],[5.66109,51.19037],[5.65634,51.20155],[5.56697,51.22553],[5.56313,51.26803],[5.51754,51.29956],[5.48002,51.30425],[5.41478,51.26762],[5.34541,51.28024],[5.33486,51.2676],[5.23963,51.26648],[5.23412,51.26967],[5.24732,51.30838],[5.2016,51.32702],[5.161,51.31532],[5.14128,51.31893],[5.13822,51.34894],[5.07984,51.39415],[5.11128,51.43301],[5.08478,51.47427],[5.05109,51.4756],[5.04089,51.4913],[5.00439,51.47433],[4.99755,51.44672],[4.94102,51.41237],[4.92243,51.41158],[4.92141,51.4044],[4.89424,51.41909],[4.89952,51.42404],[4.89311,51.42937],[4.86121,51.41773],[4.8353,51.42581],[4.83143,51.4447],[4.84111,51.44474],[4.85097,51.45784],[4.84379,51.46464],[4.84862,51.48235],[4.7803,51.50888],[4.74739,51.50285],[4.69802,51.47007],[4.68831,51.45592],[4.66091,51.44718],[4.66179,51.43038],[4.64084,51.42715],[4.57473,51.43735],[4.54132,51.42936],[4.53734,51.44879],[4.55538,51.47316],[4.54407,51.485],[4.47343,51.48236],[4.3729,51.44905],[4.3885,51.44084],[4.37693,51.41946],[4.42206,51.37565],[4.4187,51.36925],[4.37948,51.3595],[4.34687,51.36298],[4.3358,51.38206],[4.21444,51.37793],[4.21527,51.36302],[4.2314,51.35274],[4.1612,51.29625],[4.05662,51.24804],[4.01224,51.24928],[3.95444,51.22092],[3.92704,51.2245],[3.90739,51.20926],[3.88914,51.20692],[3.90051,51.21842],[3.88995,51.22743],[3.85803,51.21608],[3.79686,51.21789],[3.80243,51.25719],[3.77787,51.26778],[3.69906,51.2797],[3.59081,51.31041],[3.5749,51.29608],[3.5615,51.3003],[3.50933,51.28956],[3.51959,51.25007],[3.43265,51.25009],[3.42194,51.26318],[3.38701,51.2784],[3.38738,51.28879],[3.37469,51.29599],[3.3852,51.30353],[3.36809,51.31506],[3.39165,51.33197],[3.39032,51.34267],[3.30083,51.45186],[3.07882,51.5552],[2.99364,51.5282],[2.91101,51.4782],[2.73321,51.40823],[2.6109,51.34949],[2.38176,51.26876]],[[4.15978,50.27664],[4.16468,50.28112],[4.16999,50.27413],[4.15978,50.27664]],[[4.77675,51.42036],[4.78263,51.4278],[4.82173,51.41774],[4.77675,51.42036]],[[4.84839,49.8475],[4.8484,49.8475],[4.84839,49.8475],[4.84839,49.8475]]],[[[4.9078,51.43545],[4.94,51.42566],[4.95966,51.45294],[4.93757,51.45968],[4.91318,51.44928],[4.9078,51.43545]]]]} + } + }, + "options": { + "endpoint": "https://www.belgianrail.be/jp/sncb-nmbs-routeplanner/mgate.exe", + "client": { + "type": "IPH", + "id": "SNCB", + "name": "sncb", + "v": "4030200" + }, + "ver": "1.16", + "auth": { + "type": "AID", + "aid": "sncb-mobi" + }, + "lang": "fr", + "products": [ + { + "id": "high-speed-train", + "bitmask": 1, + "name": "high-speed train" + }, + { + "id": "long-distance-train", + "bitmask": 4, + "name": "InterCity/Peak" + }, + { + "id": "suburban", + "bitmask": 16, + "name": "S-train" + }, + { + "id": "local-train", + "bitmask": 64, + "name": "local train" + }, + { + "id": "metro", + "bitmask": 256, + "name": "Metro" + }, + { + "id": "bus", + "bitmask": 512, + "name": "bus" + }, + { + "id": "tram", + "bitmask": 1024, + "name": "tram" + } + ] + } +} From ffbaccc9410ca4d54d6497ca5150aaeac4f5889c Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 23:36:54 +0100 Subject: [PATCH 06/35] LU: add mobiliteit.lu --- data/lu/mobiliteit-lu-hafas-mgate.json | 72 ++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 data/lu/mobiliteit-lu-hafas-mgate.json diff --git a/data/lu/mobiliteit-lu-hafas-mgate.json b/data/lu/mobiliteit-lu-hafas-mgate.json new file mode 100644 index 0000000..2e82b12 --- /dev/null +++ b/data/lu/mobiliteit-lu-hafas-mgate.json @@ -0,0 +1,72 @@ +{ + "name": "mobilitéits zentral (mobiliteit.lu)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en", + "fr" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Verkéiersverbond", + "homepage": "https://www.mobiliteit.lu/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["LU"] + }, + "anyCoverage": { + "region": ["NL", "DE", "CH", "FR", "BE"] + } + }, + "options": { + "endpoint": "https://cdt.hafas.de/bin/mgate.exe", + "client": { + "type": "WEB", + "id": "MMILUX", + "name": "webapp", + "l": "vs_webapp" + }, + "ver": "1.25", + "auth": { + "type": "AID", + "aid": "SkC81GuwuzL4e0" + }, + "lang": "de", + "products": [ + { + "id": "express-train", + "bitmask": 1, + "name": "local train (TGV/ICE)" + }, + { + "id": "national-train-1", + "bitmask": 2, + "name": "national train (IC/RE/IRE)" + }, + { + "id": "national-train-2", + "bitmask": 4, + "name": "national train (IC/RE/IRE)" + }, + { + "id": "local-train", + "bitmask": 8, + "name": "local train (RB/TER)" + }, + { + "id": "bus", + "bitmask": 32, + "name": "Bus" + }, + { + "id": "tram", + "bitmask": 256, + "name": "Tram" + } + ] + } +} From d47293236976ce879cba121ac833e96febd2870c Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:16:44 +0100 Subject: [PATCH 07/35] DK: add Rejseplanen --- data/dk/rejseplanen-hafas-mgate.json | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 data/dk/rejseplanen-hafas-mgate.json diff --git a/data/dk/rejseplanen-hafas-mgate.json b/data/dk/rejseplanen-hafas-mgate.json new file mode 100644 index 0000000..4b8caeb --- /dev/null +++ b/data/dk/rejseplanen-hafas-mgate.json @@ -0,0 +1,62 @@ +{ + "name": "Rejseplanen", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "dk", + "en", + "de" + ], + "timezone": "Europe/Copenhagen", + "attribution": { + "name": "Rejsekort & Rejseplan A/S", + "homepage": "https://rejseplanen.dk/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["DK"] + } + }, + "options": { + "endpoint": "https://mobilapps.rejseplanen.dk/bin/iphone.exe", + "ext": "DK.9", + "client": { + "type": "AND", + "id": "DK" + }, + "ver": "1.21", + "auth": { + "type": "AID", + "aid": "irkmpm9mdznstenr-android" + }, + "products": [ + { + "id": "intercity", + "bitmask": 1, + "name": "InterCity" + }, + { + "id": "icl", + "bitmask": 2, + "name": "ICL" + }, + { + "id": "regional", + "bitmask": 4, + "name": "Regional" + }, + { + "id": "oe", + "bitmask": 8, + "name": "Ø" + }, + { + "id": "s-tog", + "bitmask": 16, + "name": "S-Tog A/B/Bx/C/E/F/H" + } + ] + } +} From 35db451764fa37354d985676527a7ec35b4d1215 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:16:02 +0100 Subject: [PATCH 08/35] =?UTF-8?q?IE/UK:=20add=20Iarnr=C3=B3d=20=C3=89irean?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/ie/iarnrod-eireann-hafas-mgate.json | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 data/ie/iarnrod-eireann-hafas-mgate.json diff --git a/data/ie/iarnrod-eireann-hafas-mgate.json b/data/ie/iarnrod-eireann-hafas-mgate.json new file mode 100644 index 0000000..cb827bd --- /dev/null +++ b/data/ie/iarnrod-eireann-hafas-mgate.json @@ -0,0 +1,58 @@ +{ + "name": "Iarnród Éireann (Irish Rail)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "en" + ], + "timezone": "Europe/Dublin", + "attribution": { + "name": "Iarnród Éireann – Irish Rail", + "homepage": "https://www.irishrail.ie/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["IE", "GB-NIR"] + } + }, + "options": { + "endpoint": "https://journeyplanner.irishrail.ie/bin/mgate.exe", + "client": { + "type": "IPA", + "id": "IRISHRAIL", + "v": "4000100", + "name": "IrishRailPROD-APPSTORE", + "os": "iOS 12.4.8" + }, + "ver": "1.18", + "auth": { + "type": "AID", + "aid": "P9bplgVCGnozdgQE" + }, + "lang": "ga", + "products": [ + { + "id": "intercity", + "bitmask": 2, + "name": "InterCity" + }, + { + "id": "commuter", + "bitmask": 8, + "name": "Commuter" + }, + { + "id": "dart", + "bitmask": 16, + "name": "Dublin Area Rapid Transit" + }, + { + "id": "luas", + "bitmask": 64, + "name": "LUAS Tram" + } + ] + } +} From 1c99536204a1c3217f1f2abdf0e4d8211eb236d2 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:21:43 +0100 Subject: [PATCH 09/35] DE: add VBB --- data/de/vbb-hafas-mgate.json | 79 ++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 data/de/vbb-hafas-mgate.json diff --git a/data/de/vbb-hafas-mgate.json b/data/de/vbb-hafas-mgate.json new file mode 100644 index 0000000..2b6eb61 --- /dev/null +++ b/data/de/vbb-hafas-mgate.json @@ -0,0 +1,79 @@ +{ + "name": "Verkehrsverbund Berlin-Brandenburg (VBB)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "VBB Verkehrsverbund Berlin-Brandenburg GmbH", + "homepage": "https://www.vbb.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["DE-BE", "DE-BB"] + }, + "regularCoverage": { + "region": ["DE"] + }, + "anyCoverage": { + "region": ["PL", "CZ"] + } + }, + "options": { + "endpoint": "https://fahrinfo.vbb.de/bin/mgate.exe", + "client": { + "type": "IPA", + "id": "VBB", + "name": "vbbPROD", + "v": "4010300" + }, + "ext": "VBB.1", + "ver": "1.16", + "auth": { + "type": "AID", + "aid": "hafas-vbb-apps" + }, + "products": [ + { + "id": "suburban", + "bitmasks": [1], + "name": "S-Bahn" + }, + { + "id": "subway", + "bitmasks": [2], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [4], + "name": "Tram" + }, + { + "id": "bus", + "bitmasks": [8], + "name": "Bus" + }, + { + "id": "ferry", + "bitmasks": [16], + "name": "Fähre" + }, + { + "id": "express", + "bitmasks": [32], + "name": "IC/ICE" + }, + { + "id": "regional", + "bitmasks": [64], + "name": "RB/RE" + } + ] + } +} From adcd7726b80786508d04c1369389b363847a719d Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:21:50 +0100 Subject: [PATCH 10/35] DE: add BVG --- data/de/bvg-hafas-mgate.json | 79 ++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 data/de/bvg-hafas-mgate.json diff --git a/data/de/bvg-hafas-mgate.json b/data/de/bvg-hafas-mgate.json new file mode 100644 index 0000000..8e9d804 --- /dev/null +++ b/data/de/bvg-hafas-mgate.json @@ -0,0 +1,79 @@ +{ + "name": "Berliner Verkehrsbetriebe (BVG)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en" + ], + "timezone": "Europe/Berlin", + "attribution": { + "isProprietary": true, + "name": "Berliner Verkehrsbetriebe", + "homepage": "https://www.bvg.de/" + }, + "coverage": { + "realtimeCoverage": { + "region": ["DE-BE", "DE-BB"] + }, + "regularCoverage": { + "region": ["DE"] + }, + "anyCoverage": { + "region": ["PL", "CZ"] + } + }, + "options": { + "endpoint": "https://bvg-apps.hafas.de/bin/mgate.exe", + "client": { + "type": "IPA", + "id": "BVG", + "name": "FahrInfo", + "v": "6020000" + }, + "ext": "BVG.1", + "ver": "1.21", + "auth": { + "type": "AID", + "aid": "Mz0YdF9Fgx0Mb9" + }, + "products": [ + { + "id": "suburban", + "bitmasks": [1], + "name": "S-Bahn" + }, + { + "id": "subway", + "bitmasks": [2], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [4], + "name": "Tram" + }, + { + "id": "bus", + "bitmasks": [8], + "name": "Bus" + }, + { + "id": "ferry", + "bitmasks": [16], + "name": "Fähre" + }, + { + "id": "express", + "bitmasks": [32], + "name": "IC/ICE" + }, + { + "id": "regional", + "bitmasks": [64], + "name": "RB/RE" + } + ] + } +} From e76351249d084b681df98718d0ef5132708f336a Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:11:42 +0100 Subject: [PATCH 11/35] DE: add AVV --- data/de/avv-hafas-mgate.json | 90 ++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 data/de/avv-hafas-mgate.json diff --git a/data/de/avv-hafas-mgate.json b/data/de/avv-hafas-mgate.json new file mode 100644 index 0000000..93a1d07 --- /dev/null +++ b/data/de/avv-hafas-mgate.json @@ -0,0 +1,90 @@ +{ + "name": "Aachener Verkehrsverbund (AVV)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Aachener Verkehrsverbund", + "homepage": "https://avv.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[5.859188417072768,51.05148800230104],[5.872487617358398,51.01586276097089],[5.897738698853541,50.99918876649366],[5.885563755057118,50.98104738322942],[5.891698530808384,50.97191324968534],[5.951257723126823,50.98276546964921],[5.967104741459945,50.9749066309938],[6.017849791398296,50.978916315819944],[5.99806000215941,50.95678803752185],[6.008636678679826,50.95026960453096],[6.012026307136951,50.93244910458006],[6.051208585656157,50.91811549448109],[6.080908919003151,50.91659933030443],[6.068074326490712,50.89330068818137],[6.07970800487149,50.87338773739646],[6.068461910864243,50.85349300443252],[6.0547384169323175,50.86172646083302],[6.01417596000511,50.84959484238591],[6.008835896197805,50.83907675507872],[6.015544663428678,50.8150497409345],[6.004584042126695,50.807011056091824],[5.980720206705035,50.814090582039434],[5.967930753731685,50.79702468001392],[6.017928532858145,50.77225504010337],[6.012562619548639,50.75785473965118],[6.03245069812976,50.74344883211223],[6.026147347898739,50.727218240790286],[6.03437957579858,50.71516917897426],[6.049427326800921,50.721369465086575],[6.114003878963365,50.71632813587331],[6.138314986796232,50.67898526815074],[6.174343827004632,50.65068349059165],[6.15962888019785,50.64404977256717],[6.173466177347765,50.631658566054035],[6.171717954430313,50.62237601312756],[6.183580060844878,50.619443960291036],[6.195482002350687,50.627797899968044],[6.262499279595271,50.623064531481035],[6.236990263765208,50.592981021220055],[6.221328794279586,50.594203150675085],[6.167472036112202,50.55866604805133],[6.17171177379472,50.53968098357579],[6.187582711923979,50.534282316508616],[6.181195999977328,50.52369715429532],[6.201135338512379,50.51639391843414],[6.220657132053212,50.49124973712048],[6.270881532260956,50.49869814401655],[6.317659456444563,50.492265086974676],[6.3709325358224556,50.51252241221192],[6.387266028697921,50.53318324157898],[6.372204067073668,50.54137638435431],[6.371842013467801,50.55965874998212],[6.400936280886091,50.580960377198444],[6.39752667169208,50.59247026783389],[6.423188551151553,50.59898257232489],[6.42569709638268,50.6124941426901],[6.466468856921105,50.60742148616783],[6.489651064533271,50.595705704395115],[6.5572298319165,50.59610803487757],[6.567598365170311,50.60382459227881],[6.568359671546414,50.62658889442988],[6.584593940086462,50.639268067858],[6.577410627413058,50.655643379961106],[6.608294058611749,50.67212224606286],[6.594947065667077,50.7038369221661],[6.618419706808936,50.7112069356729],[6.632096587394283,50.72525048890611],[6.681083603024851,50.70899208354646],[6.709468838053739,50.72944325567665],[6.703354212043242,50.73580709276013],[6.706647584999947,50.75116178264817],[6.687360264610232,50.77101158178426],[6.719311888379969,50.786162602830636],[6.723826741793095,50.826545957195634],[6.710228493088018,50.83914826683614],[6.677612673670777,50.84260935751484],[6.619589200097157,50.830205589991294],[6.618700055354939,50.84031644673072],[6.602266544336534,50.8513340540655],[6.567313601333944,50.85820275619867],[6.562359920330054,50.864308680894155],[6.568609681534597,50.87850903250905],[6.558738890269826,50.895346362237234],[6.527027755731355,50.89826634607329],[6.531076467722369,50.933596490377425],[6.508431869161832,50.93570551424151],[6.494895112807649,50.95434053663845],[6.491674735524336,50.96327915653773],[6.505981403675532,50.96873452197569],[6.505936273160839,50.978441544974714],[6.49607266438588,50.987716838733924],[6.479913964159365,50.98864470336928],[6.4687791145148426,51.00247081834245],[6.47074576175071,51.02275268375652],[6.487495103667864,51.03477153449965],[6.469784621434878,51.04396672400457],[6.483701606669992,51.058273543016185],[6.4543712480773845,51.06694778906477],[6.461567846730124,51.07856644136998],[6.456670184103094,51.09234444966072],[6.405528437398226,51.09256602163549],[6.392638395001537,51.10352724370392],[6.365186136790947,51.10006784671324],[6.358009614020293,51.11441713689799],[6.361790851263973,51.12848742683048],[6.310400825585381,51.15708126368452],[6.312744551268784,51.16675338462228],[6.298646968488261,51.17740655516795],[6.265815787869258,51.19039332398935],[6.247109948740463,51.19400841816413],[6.212475460034322,51.17248417411624],[6.175633971549586,51.18904194476149],[6.13443821420098,51.17690790038127],[6.133933034971025,51.170037526487306],[6.163276571684236,51.157963806313234],[6.0882677568402315,51.13888777964998],[6.0322586593481535,51.10017110714091],[6.005221541118982,51.09443842773804],[5.974124535264043,51.07459587034676],[5.950746311527444,51.041424394743025],[5.942348338889109,51.04106872990513],[5.914145922311933,51.071340786752366],[5.859188417072768,51.05148800230104]]]} + } + }, + "options": { + "auth": { + "type": "AID", + "aid": "4vV1AcH3N511icH" + }, + "client": { + "id": "AVV_AACHEN", + "type": "WEB", + "name": "webapp", + "l": "vs_avv" + }, + "endpoint": "https://auskunft.avv.de/bin/mgate.exe", + "products": [ + { + "id": "regional-train", + "bitmasks": [1], + "name": "Regionalzug" + }, + { + "id": "long-distance-train", + "bitmasks": [2], + "name": "Fernzug" + }, + { + "id": "express-train", + "bitmasks": [4], + "name": "ICE/Thalys" + }, + { + "id": "fernbus", + "bitmasks": [8], + "name": "Fernbus" + }, + { + "id": "suburban-train", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "subway", + "bitmasks": [32], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [64], + "name": "Straßenbahn" + }, + { + "id": "bus", + "bitmasks": [128], + "name": "Bus" + }, + { + "id": "added-bus", + "bitmasks": [256], + "name": "Bus, Verstärkerfahrt" + }, + { + "id": "on-call", + "bitmasks": [512], + "name": "Bedarfsverkehr" + }, + { + "id": "ferry", + "bitmasks": [1024], + "name": "Fähre" + } + ] + } +} From d05d5416689d313fb03871ac43b01d2dd56491a8 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:11:35 +0100 Subject: [PATCH 12/35] CH: add ZVV --- data/ch/zvv-hafas-mgate.json | 81 ++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 data/ch/zvv-hafas-mgate.json diff --git a/data/ch/zvv-hafas-mgate.json b/data/ch/zvv-hafas-mgate.json new file mode 100644 index 0000000..76d4e1e --- /dev/null +++ b/data/ch/zvv-hafas-mgate.json @@ -0,0 +1,81 @@ +{ + "name": "Züricher Verkehrsverbund (ZVV)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en", + "fr", + "it" + ], + "timezone": "Europe/Zurich", + "attribution": { + "name": "Züricher Verkehrsverbund", + "homepage": "https://zvv.ch/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[8.352025837078337,47.5001946155509],[8.357119309606821,47.479130525873835],[8.367173207608177,47.4766185045161],[8.359466808834565,47.46459772477852],[8.377399051098445,47.452078948313925],[8.368626530154767,47.42955734390269],[8.38381185702575,47.42251716240422],[8.356301536260577,47.40051768577848],[8.387504465114173,47.390424913158846],[8.398992609394579,47.36613930937793],[8.397430993122665,47.345454843663],[8.409261201273008,47.334135937196244],[8.40679813184773,47.32471996760294],[8.435598364226303,47.32086307053431],[8.422926479560184,47.303546506184816],[8.382193179769875,47.28896784552383],[8.413385287712355,47.223339458811],[8.47020626097956,47.204549035863074],[8.541462134504288,47.21776649955635],[8.569621314034256,47.213932445293175],[8.590008911275557,47.20715123303359],[8.595632209104373,47.19755472326554],[8.607210450462205,47.1989498648056],[8.620240245491928,47.16944865252999],[8.677447075356481,47.155273591454055],[8.698575536226802,47.16221781004482],[8.687270230387314,47.17955238021197],[8.698248869398862,47.192127432823554],[8.74302311026567,47.207408587595246],[8.813240094131404,47.217006492735635],[8.803341374125436,47.23859405661785],[8.808592793461488,47.24307356789095],[8.861086740171382,47.23877572606355],[8.937102133849532,47.25530583881892],[8.95396351806477,47.274547381434786],[8.954675681060309,47.2830480161951],[8.946638205064016,47.28647574468289],[8.99130336555281,47.31811887147506],[8.978027132283865,47.35408977402376],[8.962370744408346,47.36255000164088],[8.948823046907652,47.388344157011566],[8.913865753981376,47.40568266417173],[8.921198494785665,47.42825216614875],[8.93967945368972,47.43480760980664],[8.913171999039992,47.441226377449176],[8.914966682808515,47.45002829116238],[8.89133881129825,47.47375864535559],[8.90421816319347,47.48423057519131],[8.904018784437358,47.52651451027008],[8.847743300827208,47.53585220395763],[8.837291269471706,47.5527974123987],[8.856396043009415,47.558078475692795],[8.855814056420309,47.566695618333846],[8.833865120940896,47.577526597262306],[8.814294111735027,47.57593706453024],[8.808220588544032,47.58739833863206],[8.754303118734615,47.597293035460574],[8.748910613907324,47.60596533004298],[8.760958620231614,47.61341392733114],[8.785972290861224,47.5993618987626],[8.808641623877579,47.59895354443008],[8.834455291767654,47.64058016768297],[8.831244931506342,47.64988021013735],[8.811592386636834,47.655972183941934],[8.806583477175467,47.66927312435391],[8.78515407608729,47.66924368868699],[8.777624822526542,47.65562162909576],[8.752142171394746,47.646884970076414],[8.708247907754266,47.64768680648116],[8.686271474512886,47.66095476907609],[8.673860292588039,47.68825146711931],[8.643821639316794,47.698854342951826],[8.621634113762378,47.69551508411229],[8.620046613949446,47.68134432971829],[8.60881859542899,47.681687526037486],[8.599464636304084,47.66915128914561],[8.62219979219682,47.65026992076075],[8.604754539805883,47.65686128469804],[8.589675881119451,47.64498593020601],[8.598323247120668,47.61414589021119],[8.57218252381505,47.59107721231949],[8.557145613705112,47.559469963142085],[8.543272582882814,47.58509867306814],[8.568530142978274,47.59687149321976],[8.580392184534633,47.61425207850634],[8.561588756300669,47.62819521907079],[8.514587441821966,47.63839106839812],[8.501463403106824,47.62161151862348],[8.475813327421022,47.619105808634885],[8.451180851998204,47.60487609988067],[8.454616100859454,47.586294292326784],[8.468797833312001,47.57944835210793],[8.414325365583457,47.56853309756402],[8.408517695280056,47.55021928544264],[8.377961758739614,47.53016141556618],[8.372675791091822,47.51646272799863],[8.356326655696932,47.513149542049746],[8.352025837078337,47.5001946155509]]]} + } + }, + "options": { + "endpoint": "https://online.fahrplan.zvv.ch/bin/mgate.exe", + "client": { + "type": "IPH", + "id": "ZVV", + "name": "zvvPROD-STORE", + "v": "6000400" + }, + "ext": "ZVV.2", + "ver": "1.24", + "auth": { + "type": "AID", + "aid": "TLRUqdDPF7ttB824Yoy2BN8mk" + }, + "products": [ + { + "id": "high-speed-train", + "bitmasks": [1, 2, 4, 8], + "short": "High Speed" + }, + { + "id": "urban-train", + "mode": "train", + "bitmasks": [32], + "name": "Urban Train" + }, + { + "id": "tram", + "mode": "train", + "bitmasks": [512], + "name": "Tram" + }, + { + "id": "bus", + "mode": "bus", + "bitmasks": [64], + "name": "Bus" + }, + { + "id": "boat", + "mode": "watercraft", + "bitmasks": [16], + "name": "Boat" + }, + { + "id": "cable-car", + "mode": "gondola", + "bitmasks": [128], + "name": "Cable Car" + }, + { + "id": "night-train", + "mode": "train", + "bitmasks": [256], + "name": "Night Train" + } + ] + } +} From 2b4c1ddabd8513685b3fa91bdb9b48f17e7478b1 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:10:49 +0100 Subject: [PATCH 13/35] AT: add VKG --- data/at/vkg-hafas-mgate.json | 87 ++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 data/at/vkg-hafas-mgate.json diff --git a/data/at/vkg-hafas-mgate.json b/data/at/vkg-hafas-mgate.json new file mode 100644 index 0000000..d6700da --- /dev/null +++ b/data/at/vkg-hafas-mgate.json @@ -0,0 +1,87 @@ +{ + "name": "Kärntner Linien/Verkehrsverbund Kärnten (VKG/VVK)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en", + "it" + ], + "timezone": "Europe/Vienna", + "attribution": { + "name": "Kärntner Linien", + "homepage": "https://www.kaerntner-linien.at/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[12.65388,47.10452],[12.65013,47.09768],[12.69442,47.06937],[12.71012,47.0414],[12.76032,47.04006],[12.72995,47.01511],[12.71952,46.99127],[12.73923,46.9579],[12.77728,46.93605],[12.78494,46.9229],[12.83029,46.91012],[12.82525,46.90016],[12.83473,46.89009],[12.83596,46.85823],[12.88085,46.83897],[12.89365,46.82106],[12.95834,46.79518],[12.95907,46.78881],[12.93043,46.76907],[12.89898,46.78134],[12.83824,46.7537],[12.79057,46.76094],[12.72193,46.74744],[12.70558,46.73723],[12.70562,46.70984],[12.68318,46.70397],[12.68689,46.69426],[12.67724,46.67943],[12.68735,46.65215],[12.72964,46.62996],[12.75887,46.64267],[12.78905,46.63889],[12.80624,46.62705],[12.82863,46.62478],[12.82745,46.60851],[12.84042,46.60211],[12.92881,46.60557],[12.94819,46.59778],[13.04678,46.59081],[13.08678,46.59665],[13.16236,46.58372],[13.21383,46.56509],[13.23908,46.54723],[13.27096,46.55617],[13.32204,46.54685],[13.34509,46.56352],[13.37468,46.56354],[13.37606,46.57356],[13.42578,46.55314],[13.4761,46.55295],[13.49987,46.5608],[13.49977,46.55363],[13.51851,46.54251],[13.5458,46.54885],[13.57479,46.53361],[13.59423,46.5413],[13.6212,46.53767],[13.67104,46.51886],[13.77356,46.51152],[13.79382,46.50086],[13.83415,46.51227],[13.91206,46.51624],[14.00507,46.47697],[14.04905,46.48819],[14.11164,46.47397],[14.13044,46.44769],[14.16169,46.42925],[14.21802,46.43751],[14.23831,46.42779],[14.28291,46.43838],[14.30619,46.42634],[14.32718,46.42657],[14.42602,46.44119],[14.42422,46.4342],[14.43812,46.41982],[14.47621,46.40937],[14.49538,46.40899],[14.51642,46.42171],[14.53367,46.40975],[14.55169,46.37383],[14.56409,46.3678],[14.58702,46.37881],[14.59587,46.4091],[14.59072,46.42265],[14.60232,46.43233],[14.67829,46.44688],[14.68471,46.46101],[14.70677,46.46336],[14.70591,46.47478],[14.7152,46.47903],[14.71895,46.49274],[14.7298,46.48594],[14.74169,46.49653],[14.78658,46.49505],[14.82305,46.50608],[14.84626,46.57053],[14.87062,46.59128],[14.87411,46.6031],[14.88767,46.60791],[14.92191,46.59788],[14.92914,46.61102],[14.95738,46.62662],[14.98168,46.59721],[15.02139,46.63753],[15.07164,46.65169],[15.05483,46.67355],[15.03121,46.67298],[15.05089,46.71437],[15.04509,46.72796],[15.05098,46.73398],[15.03412,46.75855],[15.0367,46.77089],[14.98504,46.78777],[14.9967,46.81977],[15.0181,46.83007],[15.02586,46.84283],[15.01461,46.87621],[15.02391,46.88248],[15.03309,46.91182],[14.99994,46.93868],[14.96339,46.99167],[14.90751,47.0043],[14.85239,47.03556],[14.84396,47.05302],[14.76886,47.04364],[14.71857,47.02431],[14.62557,47.01782],[14.6107,47.00327],[14.58656,47.01619],[14.52297,47.014],[14.50462,47.03266],[14.46867,47.01573],[14.45413,47.01756],[14.45277,47.00095],[14.42809,47.00474],[14.38952,46.98632],[14.38342,46.99595],[14.38931,47.01475],[14.37382,47.02624],[14.32849,47.03429],[14.26323,47.03188],[14.25084,47.03921],[14.23707,47.03293],[14.22245,47.06359],[14.2022,47.08166],[14.16087,47.05771],[14.12503,47.06467],[14.11817,47.0458],[14.09758,47.04156],[14.0638,47.01401],[14.00749,47.00679],[14.00066,46.9745],[13.94705,46.96227],[13.94361,46.9459],[13.93211,46.94983],[13.84812,46.91645],[13.81948,46.92267],[13.79096,46.94114],[13.78197,46.95158],[13.77799,46.97852],[13.76265,46.99261],[13.70861,47.00166],[13.69737,47.01614],[13.69752,47.04369],[13.6504,47.04383],[13.64158,47.05911],[13.61723,47.06352],[13.57869,47.05678],[13.45849,47.0848],[13.4261,47.08576],[13.40369,47.07417],[13.38791,47.08312],[13.38505,47.09566],[13.36351,47.10327],[13.30623,47.0909],[13.27654,47.09962],[13.24208,47.08754],[13.23281,47.07189],[13.24147,47.05405],[13.13173,47.03919],[13.12242,47.03102],[13.07782,47.03097],[13.0711,47.01862],[13.0273,47.03238],[13.02031,47.04565],[12.96818,47.04308],[12.94334,47.07844],[12.92811,47.08414],[12.87072,47.09076],[12.84773,47.08612],[12.82139,47.1021],[12.78656,47.09769],[12.77477,47.10523],[12.74166,47.10453],[12.73292,47.13528],[12.66233,47.1265],[12.66471,47.10989],[12.65388,47.10452]]]} + } + }, + "options": { + "auth": { + "type": "AID", + "aid": "wf7mcf9bv3nv8g5f" + }, + "client": { + "id": "VAO", + "type": "WEB", + "name": "webapp", + "l": "vs_vkg" + }, + "endpoint": "https://routenplaner.kaerntner-linien.at/bin/mgate.exe", + "products": [ + { + "id": "trains", + "bitmasks": [1, 2], + "name": "Bahn & S-Bahn" + }, + { + "id": "subway", + "bitmasks": [4], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [16], + "name": "Straßenbahn" + }, + { + "id": "city-bus", + "bitmasks": [128], + "name": "Stadtbus" + }, + { + "id": "regional-bus", + "bitmasks": [64], + "name": "Regionalbus" + }, + { + "id": "long-distance-bus", + "bitmasks": [32], + "name": "Fernbus" + }, + { + "id": "other-bus", + "bitmasks": [2048], + "name": "sonstige Busse" + }, + { + "id": "aerial-lift", + "bitmasks": [256], + "name": "Seil-/Zahnradbahn" + }, + { + "id": "ferry", + "bitmasks": [512], + "name": "Schiff" + }, + { + "id": "on-call", + "bitmasks": [1024], + "name": "Anrufsammeltaxi" + } + ] + } +} From a390ead7a945a76fdd1174e9bb504c3b81aa42cc Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:12:04 +0100 Subject: [PATCH 14/35] DE: add INVG --- data/de/invg-hafas-mgate.json | 79 +++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 data/de/invg-hafas-mgate.json diff --git a/data/de/invg-hafas-mgate.json b/data/de/invg-hafas-mgate.json new file mode 100644 index 0000000..e3c68fb --- /dev/null +++ b/data/de/invg-hafas-mgate.json @@ -0,0 +1,79 @@ +{ + "name": "Ingolstädter Verkehrsgesellschaft (INVG)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en", + "fr", + "it" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Ingolstädter Verkehrsgesellschaft", + "homepage": "https://www.invg.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[10.93036,48.86285],[10.95711,48.85443],[10.96663,48.83775],[10.98829,48.8366],[10.997,48.82452],[10.97309,48.81355],[10.94857,48.81819],[10.94073,48.81006],[10.95549,48.79278],[10.97634,48.78801],[10.95841,48.77466],[10.98967,48.75372],[10.97475,48.73555],[10.98959,48.73019],[10.97306,48.72536],[10.98172,48.70004],[10.97669,48.69256],[11.00918,48.65024],[11.02667,48.64525],[11.03187,48.63092],[11.01644,48.62568],[11.01755,48.61742],[11.04956,48.59646],[11.11391,48.59942],[11.12286,48.58767],[11.15124,48.58856],[11.1554,48.57517],[11.12575,48.56579],[11.12203,48.55066],[11.19925,48.52452],[11.20832,48.49248],[11.24193,48.48176],[11.25266,48.46426],[11.26974,48.4594],[11.29241,48.46837],[11.29797,48.4489],[11.32635,48.4437],[11.34367,48.45047],[11.35373,48.43953],[11.37858,48.43506],[11.37504,48.4217],[11.39466,48.4182],[11.40979,48.40245],[11.44827,48.41012],[11.45144,48.42812],[11.51345,48.43843],[11.5389,48.45376],[11.54037,48.4661],[11.56296,48.48607],[11.60226,48.46162],[11.63114,48.46015],[11.64755,48.48772],[11.66951,48.49731],[11.66562,48.53874],[11.67574,48.55191],[11.66674,48.56012],[11.6807,48.56113],[11.68232,48.57087],[11.71428,48.58586],[11.70498,48.60905],[11.71338,48.61769],[11.70272,48.62919],[11.72004,48.64854],[11.6958,48.66533],[11.7012,48.68598],[11.66307,48.70151],[11.67719,48.72348],[11.6637,48.73206],[11.6625,48.7418],[11.72061,48.75279],[11.70599,48.77818],[11.72149,48.7741],[11.7431,48.78998],[11.73951,48.80537],[11.74681,48.81828],[11.71482,48.81821],[11.70996,48.83045],[11.72652,48.83564],[11.72586,48.86474],[11.75089,48.87555],[11.74462,48.89276],[11.724,48.89928],[11.7353,48.93093],[11.71718,48.9363],[11.70663,48.92256],[11.69,48.93747],[11.64242,48.93599],[11.63834,48.9492],[11.60257,48.95545],[11.58167,48.99195],[11.56415,48.99422],[11.55829,49.0078],[11.54795,49.00945],[11.54642,49.02903],[11.52705,49.03411],[11.53922,49.03849],[11.55144,49.06276],[11.54106,49.07389],[11.50431,49.08135],[11.48393,49.06839],[11.43913,49.06948],[11.38944,49.09187],[11.37868,49.07796],[11.39712,49.05741],[11.40058,49.03671],[11.38249,49.03465],[11.3668,49.02013],[11.34185,49.02328],[11.32605,49.0041],[11.29945,49.02071],[11.28784,49.01899],[11.28806,49.01044],[11.27341,49.01551],[11.27634,49.02883],[11.26074,49.04072],[11.25894,49.05667],[11.19929,49.05161],[11.1745,49.03006],[11.17568,49.02221],[11.15368,49.01402],[11.15112,48.99747],[11.13665,48.99268],[11.14094,48.98369],[11.133,48.96995],[11.09929,48.97051],[11.0649,48.95641],[11.0441,48.93201],[11.06422,48.91757],[11.02757,48.91201],[11.03058,48.90106],[11.02033,48.88981],[10.97153,48.88289],[10.956,48.86632],[10.93036,48.86285]],[[11.25174,48.52608],[11.29558,48.54363],[11.32228,48.54618],[11.33433,48.5371],[11.30737,48.5177],[11.30829,48.48818],[11.29821,48.50359],[11.26125,48.51505],[11.25174,48.52608]]]} + } + }, + "options": { + "endpoint": "https://fpa.invg.de/bin/mgate.exe", + "client": { + "type": "IPH", + "id": "INVG", + "name": "invgPROD-APPSTORE-LIVE", + "v": "1040000" + }, + "ver": "1.16", + "auth": { + "type": "AID", + "aid": "GITvwi3BGOmTQ2a5" + }, + "products": [ + { + "id": "bus", + "bitmasks": [1, 16], + "name": "Bus" + }, + { + "id": "express-train", + "bitmasks": [2], + "name": "High-speed train" + }, + { + "id": "regional-train", + "bitmasks": [4], + "name": "Regional train" + }, + { + "id": "local-train", + "bitmasks": [8], + "name": "Nahverkehrszug" + }, + { + "id": "ferry", + "bitmasks": [32], + "name": "Ferry" + }, + { + "id": "subway", + "bitmasks": [64], + "name": "Subway" + }, + { + "id": "tram", + "bitmasks": [128], + "name": "Tram" + }, + { + "id": "on-demand", + "bitmasks": [256], + "name": "On-demand traffic" + } + ] + } +} From 0b2f430bc2900521b9eaa44aeeed4403e35591b6 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:12:13 +0100 Subject: [PATCH 15/35] DE: add mobil.nrw --- data/de/mobil-nrw-hafas-mgate.json | 83 ++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 data/de/mobil-nrw-hafas-mgate.json diff --git a/data/de/mobil-nrw-hafas-mgate.json b/data/de/mobil-nrw-hafas-mgate.json new file mode 100644 index 0000000..06ab8e9 --- /dev/null +++ b/data/de/mobil-nrw-hafas-mgate.json @@ -0,0 +1,83 @@ +{ + "name": "mobil.nrw", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "mobil.nrw", + "homepage": "https://www.mobil.nrw/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[5.85919,51.05149],[5.87249,51.01586],[5.89774,50.99919],[5.88556,50.98105],[5.8917,50.97191],[5.95126,50.98277],[5.9671,50.97491],[6.01785,50.97892],[5.99806,50.95679],[6.00864,50.95027],[6.01203,50.93245],[6.05121,50.91812],[6.08091,50.9166],[6.06807,50.8933],[6.07971,50.87339],[6.06846,50.85349],[6.05474,50.86173],[6.01418,50.84959],[6.00884,50.83908],[6.01554,50.81505],[6.00458,50.80701],[5.98072,50.81409],[5.96793,50.79702],[6.01793,50.77226],[6.01256,50.75785],[6.03245,50.74345],[6.02615,50.72722],[6.03438,50.71517],[6.04943,50.72137],[6.114,50.71633],[6.13831,50.67899],[6.17434,50.65068],[6.15963,50.64405],[6.17347,50.63166],[6.17172,50.62238],[6.18358,50.61944],[6.19548,50.6278],[6.2625,50.62306],[6.23699,50.59298],[6.22133,50.5942],[6.19655,50.57222],[6.16928,50.56084],[6.17124,50.54057],[6.18758,50.53428],[6.1812,50.5237],[6.20114,50.51639],[6.22174,50.49085],[6.27088,50.4987],[6.30787,50.49588],[6.33463,50.48469],[6.33425,50.4602],[6.36798,50.45006],[6.37014,50.4419],[6.35976,50.42025],[6.36288,50.40958],[6.33598,50.37952],[6.36354,50.35466],[6.3933,50.34266],[6.39975,50.32076],[6.43324,50.32274],[6.43018,50.33624],[6.41037,50.34704],[6.41224,50.3657],[6.39662,50.37421],[6.39812,50.38185],[6.40893,50.38406],[6.40903,50.37254],[6.42521,50.36001],[6.44131,50.36544],[6.45312,50.35792],[6.4425,50.33841],[6.449,50.33127],[6.48833,50.33451],[6.53409,50.3652],[6.56111,50.36513],[6.59474,50.38026],[6.59967,50.3716],[6.61857,50.37045],[6.61532,50.35178],[6.63259,50.34153],[6.6554,50.34502],[6.66603,50.36612],[6.70153,50.33159],[6.7396,50.34924],[6.8068,50.35943],[6.80904,50.37121],[6.79287,50.3762],[6.77713,50.39358],[6.79082,50.42277],[6.77764,50.42876],[6.77409,50.43947],[6.75288,50.43852],[6.77116,50.44951],[6.76484,50.47243],[6.77138,50.47832],[6.79856,50.48593],[6.80772,50.46865],[6.85357,50.44918],[6.87138,50.45226],[6.90831,50.46764],[6.91285,50.50243],[6.90039,50.51119],[6.90423,50.51985],[6.89182,50.52489],[6.91016,50.52117],[6.93555,50.53028],[6.93403,50.55617],[6.9735,50.55143],[7.00169,50.5612],[7.05272,50.59922],[7.09015,50.58145],[7.10807,50.58721],[7.1194,50.60451],[7.15129,50.59657],[7.15853,50.60905],[7.17597,50.60832],[7.19535,50.62134],[7.20489,50.6445],[7.21162,50.61889],[7.33704,50.63377],[7.3662,50.64956],[7.36341,50.66362],[7.3751,50.66909],[7.37908,50.68113],[7.37041,50.70213],[7.37833,50.71112],[7.43903,50.70563],[7.52305,50.72505],[7.55123,50.74046],[7.58724,50.73461],[7.60106,50.74243],[7.59841,50.7558],[7.61208,50.76402],[7.6595,50.76433],[7.66924,50.77118],[7.66715,50.77874],[7.68468,50.78006],[7.68984,50.7947],[7.67976,50.81555],[7.70452,50.822],[7.73103,50.84414],[7.76935,50.84311],[7.77327,50.85791],[7.75803,50.86907],[7.76723,50.90089],[7.75282,50.91486],[7.79381,50.93757],[7.83903,50.92219],[7.82655,50.90831],[7.82351,50.87907],[7.87772,50.86979],[7.9005,50.84515],[7.91498,50.84023],[7.96035,50.84135],[7.96891,50.82513],[7.95701,50.78459],[7.96187,50.773],[8.03343,50.72498],[8.0332,50.69424],[8.06015,50.69067],[8.0966,50.69903],[8.11675,50.68153],[8.1307,50.68259],[8.14949,50.69416],[8.17387,50.73511],[8.15934,50.76337],[8.13733,50.78278],[8.17089,50.80043],[8.1928,50.82539],[8.2739,50.87767],[8.28468,50.87746],[8.30259,50.85693],[8.36929,50.85851],[8.37601,50.87034],[8.39198,50.87392],[8.39492,50.88929],[8.43473,50.91249],[8.46528,50.91729],[8.45766,50.94018],[8.46937,50.94921],[8.46641,50.9639],[8.48302,50.96571],[8.48118,50.9745],[8.54488,51.01906],[8.52495,51.04678],[8.53391,51.06395],[8.50997,51.07691],[8.51288,51.08207],[8.5532,51.09924],[8.65887,51.0903],[8.72598,51.1082],[8.72622,51.11646],[8.70898,51.12172],[8.70127,51.13437],[8.76422,51.17487],[8.75646,51.19517],[8.77494,51.21059],[8.74766,51.22105],[8.73584,51.2499],[8.74364,51.26262],[8.72384,51.27901],[8.6896,51.28084],[8.59711,51.25127],[8.58524,51.26834],[8.5655,51.27811],[8.59854,51.30125],[8.61081,51.32081],[8.63832,51.33812],[8.65875,51.33651],[8.66609,51.34994],[8.68674,51.35784],[8.68586,51.36983],[8.6926,51.37155],[8.73423,51.36797],[8.8039,51.38579],[8.85501,51.37254],[8.89208,51.38814],[8.94365,51.38526],[8.94911,51.40771],[8.95874,51.41214],[8.95557,51.42579],[8.94718,51.43376],[8.92624,51.43487],[8.9288,51.44655],[8.92002,51.46064],[8.89833,51.4781],[8.91026,51.48654],[9.01641,51.5109],[9.03581,51.49797],[9.08494,51.49266],[9.06999,51.4652],[9.08482,51.44296],[9.14766,51.43727],[9.16687,51.44112],[9.18554,51.46148],[9.2214,51.45683],[9.22478,51.48026],[9.24606,51.49339],[9.26757,51.49376],[9.28615,51.50967],[9.31302,51.50908],[9.32286,51.52219],[9.31819,51.53129],[9.32612,51.5493],[9.38058,51.59055],[9.34638,51.61209],[9.42956,51.6266],[9.45227,51.6425],[9.43956,51.65584],[9.38316,51.65293],[9.38671,51.6648],[9.40377,51.67194],[9.39388,51.68848],[9.40892,51.70347],[9.39434,51.7198],[9.40074,51.7335],[9.38255,51.74303],[9.45485,51.79193],[9.43606,51.81298],[9.45005,51.82818],[9.44131,51.83951],[9.4689,51.8589],[9.45926,51.86753],[9.42273,51.8605],[9.36623,51.86935],[9.34571,51.86517],[9.35344,51.88933],[9.34802,51.90928],[9.33574,51.92088],[9.28016,51.93256],[9.28623,51.93974],[9.27977,51.95136],[9.29352,51.95717],[9.27952,51.97684],[9.23703,51.98117],[9.19528,51.96859],[9.18695,51.98198],[9.20399,51.99532],[9.19249,52.00405],[9.20447,52.01136],[9.18062,52.04846],[9.18793,52.06431],[9.20127,52.07047],[9.1812,52.08951],[9.14529,52.10421],[9.16654,52.11848],[9.14989,52.13802],[9.12932,52.14428],[9.09079,52.14043],[9.06716,52.15419],[9.01901,52.13875],[9.02491,52.14789],[9.02042,52.16212],[9.02944,52.17005],[9.01754,52.1798],[9.05147,52.18041],[9.05599,52.19555],[9.04985,52.21563],[9.07508,52.22355],[9.08402,52.23455],[9.03807,52.25435],[8.98118,52.26594],[8.98302,52.27862],[8.99506,52.28611],[8.99617,52.3113],[9.00497,52.3216],[9.03334,52.33912],[9.06212,52.33511],[9.08895,52.35158],[9.10519,52.37027],[9.10593,52.38446],[9.13113,52.40413],[9.13045,52.42425],[9.10344,52.44453],[9.14596,52.47592],[9.13868,52.48745],[9.11743,52.48978],[9.10318,52.5012],[9.04882,52.50401],[9.03535,52.48562],[9.01767,52.48019],[9.01018,52.46418],[8.97229,52.45309],[8.97883,52.44426],[8.97475,52.43245],[8.93454,52.41865],[8.9368,52.41086],[8.92834,52.40618],[8.89028,52.41003],[8.88214,52.40081],[8.8492,52.39475],[8.78775,52.4033],[8.74732,52.39305],[8.72768,52.405],[8.71652,52.4017],[8.71299,52.41775],[8.72564,52.4289],[8.71081,52.44403],[8.71854,52.46579],[8.70619,52.48776],[8.70891,52.50482],[8.69543,52.52184],[8.67439,52.52229],[8.65325,52.53595],[8.55494,52.50448],[8.5049,52.51865],[8.45306,52.49436],[8.44917,52.46688],[8.43103,52.45443],[8.36263,52.44881],[8.29902,52.46269],[8.28973,52.45644],[8.29653,52.43295],[8.3144,52.42353],[8.30614,52.40418],[8.38519,52.38104],[8.43352,52.35741],[8.46127,52.31262],[8.45078,52.30237],[8.45821,52.26788],[8.45154,52.25728],[8.4582,52.248],[8.43513,52.21266],[8.45031,52.19592],[8.50143,52.18407],[8.47534,52.16294],[8.40537,52.13962],[8.39769,52.13075],[8.39979,52.11525],[8.37595,52.1144],[8.32555,52.13033],[8.30774,52.12415],[8.29037,52.13919],[8.26651,52.1363],[8.25779,52.12536],[8.24307,52.12556],[8.21439,52.10842],[8.18956,52.07685],[8.15043,52.08085],[8.09963,52.06397],[8.0314,52.07269],[7.97848,52.04101],[7.92636,52.05407],[7.89701,52.08444],[7.96111,52.10083],[7.97551,52.11166],[8.01464,52.11391],[8.00904,52.15181],[8.03249,52.16257],[8.0232,52.17453],[7.93996,52.18093],[7.91179,52.1995],[7.91371,52.21043],[7.93524,52.229],[7.93254,52.26081],[7.94958,52.26136],[7.9647,52.2719],[7.93938,52.28935],[7.94017,52.29824],[7.99135,52.29912],[7.99749,52.31147],[7.95569,52.3368],[7.96067,52.34829],[7.94066,52.36893],[7.89202,52.38515],[7.84114,52.37349],[7.80889,52.3758],[7.71955,52.40499],[7.70992,52.43472],[7.68765,52.46131],[7.60197,52.47928],[7.55702,52.43295],[7.59605,52.41794],[7.57597,52.40562],[7.56534,52.38206],[7.43313,52.33689],[7.42036,52.31775],[7.38216,52.31302],[7.35642,52.29168],[7.31321,52.28396],[7.2945,52.26877],[7.15405,52.27075],[7.11794,52.26531],[7.09984,52.24826],[7.06283,52.24535],[7.03647,52.23181],[6.9855,52.23076],[6.947,52.18512],[6.90474,52.17997],[6.87458,52.15869],[6.86581,52.13267],[6.85194,52.12466],[6.75493,52.12164],[6.75045,52.10048],[6.73753,52.09446],[6.74252,52.08526],[6.68857,52.07229],[6.68067,52.03903],[6.74887,52.02464],[6.80316,51.99149],[6.82092,51.98939],[6.82549,51.97201],[6.79312,51.96151],[6.7792,51.92959],[6.72716,51.90223],[6.68193,51.92189],[6.54072,51.88858],[6.46908,51.85885],[6.4537,51.86946],[6.43565,51.86617],[6.38887,51.87834],[6.37965,51.86374],[6.39878,51.85123],[6.39574,51.83608],[6.37128,51.83901],[6.35029,51.85475],[6.3111,51.85484],[6.30482,51.87054],[6.28162,51.87846],[6.21451,51.87272],[6.19255,51.88292],[6.19658,51.89461],[6.1533,51.90965],[6.11437,51.9056],[6.09617,51.89264],[6.13115,51.88223],[6.13864,51.86711],[6.15715,51.85939],[6.15859,51.8477],[6.10351,51.85326],[6.06303,51.86994],[6.03395,51.84849],[5.99385,51.83546],[5.96098,51.84124],[5.93932,51.82666],[5.94112,51.80988],[5.9678,51.79747],[5.96745,51.78408],[5.98301,51.76817],[5.94594,51.75144],[5.9489,51.73584],[5.99074,51.73424],[6.02472,51.72208],[6.02828,51.71699],[6.01882,51.70903],[6.02541,51.67218],[6.10864,51.65396],[6.08709,51.62363],[6.08483,51.60399],[6.15128,51.56352],[6.17093,51.53602],[6.20508,51.51201],[6.20559,51.49079],[6.21624,51.47312],[6.19805,51.39943],[6.21427,51.39629],[6.20722,51.38965],[6.21831,51.36182],[6.18276,51.33885],[6.16272,51.33562],[6.11747,51.27655],[6.06561,51.24345],[6.07581,51.22695],[6.06212,51.22314],[6.06129,51.21316],[6.06632,51.18141],[6.07622,51.16914],[6.10299,51.16578],[6.16451,51.18893],[6.13164,51.17311],[6.16328,51.15796],[6.08827,51.13889],[6.03226,51.10017],[6.00522,51.09444],[5.97412,51.0746],[5.95075,51.04142],[5.94235,51.04107],[5.91415,51.07134],[5.85919,51.05149]],[[8.47632,52.50277],[8.47638,52.50275],[8.47637,52.50275],[8.47632,52.50277]],[[9.0098,52.18531],[9.00987,52.18532],[9.01094,52.18556],[9.01103,52.18527],[9.01114,52.18505],[9.01075,52.18516],[9.01038,52.18524],[9.0098,52.18531]]]} + } + }, + "options": { + "endpoint": "https://nrw.hafas.de/bin/mgate.exe", + "client": { + "id": "DB-REGIO-NRW", + "name": "NRW", + "os": "iOS 12.4.9", + "type": "IPH", + "v": "6000300" + }, + "ver": "1.24", + "auth": { + "type": "AID", + "aid": "Kdf0LNRWYg5k3499" + }, + "lang": "de", + "products": [ + { + "id": "regional-train", + "bitmasks": [8], + "name": "regional train" + }, + { + "id": "urban-train", + "bitmasks": [16], + "name": "urban train" + }, + { + "id": "subway", + "bitmasks": [128], + "name": "subway" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "tram" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "bus" + }, + { + "id": "dial-a-ride", + "bitmasks": [512], + "name": "dial-a-ride" + }, + { + "id": "long-distance-train", + "bitmasks": [4], + "name": "long-distance train" + }, + { + "id": "express-train", + "bitmasks": [1], + "name": "ICE" + }, + { + "id": "ec-ic", + "bitmasks": [2], + "name": "EC/IC" + } + ] + } +} From b4e10531512a8f3aa4ce9419a7fa82087e13fa12 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:11:53 +0100 Subject: [PATCH 16/35] DE: add DB Busradar NRW --- data/de/db-busradar-nrw-hafas-mgate.json | 78 ++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 data/de/db-busradar-nrw-hafas-mgate.json diff --git a/data/de/db-busradar-nrw-hafas-mgate.json b/data/de/db-busradar-nrw-hafas-mgate.json new file mode 100644 index 0000000..5aed445 --- /dev/null +++ b/data/de/db-busradar-nrw-hafas-mgate.json @@ -0,0 +1,78 @@ +{ + "name": "DB Busradar NRW", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "DB Regio Bus NRW", + "homepage": "https://www.dbregiobus-nrw.de/regiobusnrw/view/service/busradar.shtml", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[5.85919,51.05149],[5.87249,51.01586],[5.89774,50.99919],[5.88556,50.98105],[5.8917,50.97191],[5.95126,50.98277],[5.9671,50.97491],[6.01785,50.97892],[5.99806,50.95679],[6.00864,50.95027],[6.01203,50.93245],[6.05121,50.91812],[6.08091,50.9166],[6.06807,50.8933],[6.07971,50.87339],[6.06846,50.85349],[6.05474,50.86173],[6.01418,50.84959],[6.00884,50.83908],[6.01554,50.81505],[6.00458,50.80701],[5.98072,50.81409],[5.96793,50.79702],[6.01793,50.77226],[6.01256,50.75785],[6.03245,50.74345],[6.02615,50.72722],[6.03438,50.71517],[6.04943,50.72137],[6.114,50.71633],[6.13831,50.67899],[6.17434,50.65068],[6.15963,50.64405],[6.17347,50.63166],[6.17172,50.62238],[6.18358,50.61944],[6.19548,50.6278],[6.2625,50.62306],[6.23699,50.59298],[6.22133,50.5942],[6.19655,50.57222],[6.16928,50.56084],[6.17124,50.54057],[6.18758,50.53428],[6.1812,50.5237],[6.20114,50.51639],[6.22174,50.49085],[6.27088,50.4987],[6.30787,50.49588],[6.33463,50.48469],[6.33425,50.4602],[6.36798,50.45006],[6.37014,50.4419],[6.35976,50.42025],[6.36288,50.40958],[6.33598,50.37952],[6.36354,50.35466],[6.3933,50.34266],[6.39975,50.32076],[6.43324,50.32274],[6.43018,50.33624],[6.41037,50.34704],[6.41224,50.3657],[6.39662,50.37421],[6.39812,50.38185],[6.40893,50.38406],[6.40903,50.37254],[6.42521,50.36001],[6.44131,50.36544],[6.45312,50.35792],[6.4425,50.33841],[6.449,50.33127],[6.48833,50.33451],[6.53409,50.3652],[6.56111,50.36513],[6.59474,50.38026],[6.59967,50.3716],[6.61857,50.37045],[6.61532,50.35178],[6.63259,50.34153],[6.6554,50.34502],[6.66603,50.36612],[6.70153,50.33159],[6.7396,50.34924],[6.8068,50.35943],[6.80904,50.37121],[6.79287,50.3762],[6.77713,50.39358],[6.79082,50.42277],[6.77764,50.42876],[6.77409,50.43947],[6.75288,50.43852],[6.77116,50.44951],[6.76484,50.47243],[6.77138,50.47832],[6.79856,50.48593],[6.80772,50.46865],[6.85357,50.44918],[6.87138,50.45226],[6.90831,50.46764],[6.91285,50.50243],[6.90039,50.51119],[6.90423,50.51985],[6.89182,50.52489],[6.91016,50.52117],[6.93555,50.53028],[6.93403,50.55617],[6.9735,50.55143],[7.00169,50.5612],[7.05272,50.59922],[7.09015,50.58145],[7.10807,50.58721],[7.1194,50.60451],[7.15129,50.59657],[7.15853,50.60905],[7.17597,50.60832],[7.19535,50.62134],[7.20489,50.6445],[7.21162,50.61889],[7.33704,50.63377],[7.3662,50.64956],[7.36341,50.66362],[7.3751,50.66909],[7.37908,50.68113],[7.37041,50.70213],[7.37833,50.71112],[7.43903,50.70563],[7.52305,50.72505],[7.55123,50.74046],[7.58724,50.73461],[7.60106,50.74243],[7.59841,50.7558],[7.61208,50.76402],[7.6595,50.76433],[7.66924,50.77118],[7.66715,50.77874],[7.68468,50.78006],[7.68984,50.7947],[7.67976,50.81555],[7.70452,50.822],[7.73103,50.84414],[7.76935,50.84311],[7.77327,50.85791],[7.75803,50.86907],[7.76723,50.90089],[7.75282,50.91486],[7.79381,50.93757],[7.83903,50.92219],[7.82655,50.90831],[7.82351,50.87907],[7.87772,50.86979],[7.9005,50.84515],[7.91498,50.84023],[7.96035,50.84135],[7.96891,50.82513],[7.95701,50.78459],[7.96187,50.773],[8.03343,50.72498],[8.0332,50.69424],[8.06015,50.69067],[8.0966,50.69903],[8.11675,50.68153],[8.1307,50.68259],[8.14949,50.69416],[8.17387,50.73511],[8.15934,50.76337],[8.13733,50.78278],[8.17089,50.80043],[8.1928,50.82539],[8.2739,50.87767],[8.28468,50.87746],[8.30259,50.85693],[8.36929,50.85851],[8.37601,50.87034],[8.39198,50.87392],[8.39492,50.88929],[8.43473,50.91249],[8.46528,50.91729],[8.45766,50.94018],[8.46937,50.94921],[8.46641,50.9639],[8.48302,50.96571],[8.48118,50.9745],[8.54488,51.01906],[8.52495,51.04678],[8.53391,51.06395],[8.50997,51.07691],[8.51288,51.08207],[8.5532,51.09924],[8.65887,51.0903],[8.72598,51.1082],[8.72622,51.11646],[8.70898,51.12172],[8.70127,51.13437],[8.76422,51.17487],[8.75646,51.19517],[8.77494,51.21059],[8.74766,51.22105],[8.73584,51.2499],[8.74364,51.26262],[8.72384,51.27901],[8.6896,51.28084],[8.59711,51.25127],[8.58524,51.26834],[8.5655,51.27811],[8.59854,51.30125],[8.61081,51.32081],[8.63832,51.33812],[8.65875,51.33651],[8.66609,51.34994],[8.68674,51.35784],[8.68586,51.36983],[8.6926,51.37155],[8.73423,51.36797],[8.8039,51.38579],[8.85501,51.37254],[8.89208,51.38814],[8.94365,51.38526],[8.94911,51.40771],[8.95874,51.41214],[8.95557,51.42579],[8.94718,51.43376],[8.92624,51.43487],[8.9288,51.44655],[8.92002,51.46064],[8.89833,51.4781],[8.91026,51.48654],[9.01641,51.5109],[9.03581,51.49797],[9.08494,51.49266],[9.06999,51.4652],[9.08482,51.44296],[9.14766,51.43727],[9.16687,51.44112],[9.18554,51.46148],[9.2214,51.45683],[9.22478,51.48026],[9.24606,51.49339],[9.26757,51.49376],[9.28615,51.50967],[9.31302,51.50908],[9.32286,51.52219],[9.31819,51.53129],[9.32612,51.5493],[9.38058,51.59055],[9.34638,51.61209],[9.42956,51.6266],[9.45227,51.6425],[9.43956,51.65584],[9.38316,51.65293],[9.38671,51.6648],[9.40377,51.67194],[9.39388,51.68848],[9.40892,51.70347],[9.39434,51.7198],[9.40074,51.7335],[9.38255,51.74303],[9.45485,51.79193],[9.43606,51.81298],[9.45005,51.82818],[9.44131,51.83951],[9.4689,51.8589],[9.45926,51.86753],[9.42273,51.8605],[9.36623,51.86935],[9.34571,51.86517],[9.35344,51.88933],[9.34802,51.90928],[9.33574,51.92088],[9.28016,51.93256],[9.28623,51.93974],[9.27977,51.95136],[9.29352,51.95717],[9.27952,51.97684],[9.23703,51.98117],[9.19528,51.96859],[9.18695,51.98198],[9.20399,51.99532],[9.19249,52.00405],[9.20447,52.01136],[9.18062,52.04846],[9.18793,52.06431],[9.20127,52.07047],[9.1812,52.08951],[9.14529,52.10421],[9.16654,52.11848],[9.14989,52.13802],[9.12932,52.14428],[9.09079,52.14043],[9.06716,52.15419],[9.01901,52.13875],[9.02491,52.14789],[9.02042,52.16212],[9.02944,52.17005],[9.01754,52.1798],[9.05147,52.18041],[9.05599,52.19555],[9.04985,52.21563],[9.07508,52.22355],[9.08402,52.23455],[9.03807,52.25435],[8.98118,52.26594],[8.98302,52.27862],[8.99506,52.28611],[8.99617,52.3113],[9.00497,52.3216],[9.03334,52.33912],[9.06212,52.33511],[9.08895,52.35158],[9.10519,52.37027],[9.10593,52.38446],[9.13113,52.40413],[9.13045,52.42425],[9.10344,52.44453],[9.14596,52.47592],[9.13868,52.48745],[9.11743,52.48978],[9.10318,52.5012],[9.04882,52.50401],[9.03535,52.48562],[9.01767,52.48019],[9.01018,52.46418],[8.97229,52.45309],[8.97883,52.44426],[8.97475,52.43245],[8.93454,52.41865],[8.9368,52.41086],[8.92834,52.40618],[8.89028,52.41003],[8.88214,52.40081],[8.8492,52.39475],[8.78775,52.4033],[8.74732,52.39305],[8.72768,52.405],[8.71652,52.4017],[8.71299,52.41775],[8.72564,52.4289],[8.71081,52.44403],[8.71854,52.46579],[8.70619,52.48776],[8.70891,52.50482],[8.69543,52.52184],[8.67439,52.52229],[8.65325,52.53595],[8.55494,52.50448],[8.5049,52.51865],[8.45306,52.49436],[8.44917,52.46688],[8.43103,52.45443],[8.36263,52.44881],[8.29902,52.46269],[8.28973,52.45644],[8.29653,52.43295],[8.3144,52.42353],[8.30614,52.40418],[8.38519,52.38104],[8.43352,52.35741],[8.46127,52.31262],[8.45078,52.30237],[8.45821,52.26788],[8.45154,52.25728],[8.4582,52.248],[8.43513,52.21266],[8.45031,52.19592],[8.50143,52.18407],[8.47534,52.16294],[8.40537,52.13962],[8.39769,52.13075],[8.39979,52.11525],[8.37595,52.1144],[8.32555,52.13033],[8.30774,52.12415],[8.29037,52.13919],[8.26651,52.1363],[8.25779,52.12536],[8.24307,52.12556],[8.21439,52.10842],[8.18956,52.07685],[8.15043,52.08085],[8.09963,52.06397],[8.0314,52.07269],[7.97848,52.04101],[7.92636,52.05407],[7.89701,52.08444],[7.96111,52.10083],[7.97551,52.11166],[8.01464,52.11391],[8.00904,52.15181],[8.03249,52.16257],[8.0232,52.17453],[7.93996,52.18093],[7.91179,52.1995],[7.91371,52.21043],[7.93524,52.229],[7.93254,52.26081],[7.94958,52.26136],[7.9647,52.2719],[7.93938,52.28935],[7.94017,52.29824],[7.99135,52.29912],[7.99749,52.31147],[7.95569,52.3368],[7.96067,52.34829],[7.94066,52.36893],[7.89202,52.38515],[7.84114,52.37349],[7.80889,52.3758],[7.71955,52.40499],[7.70992,52.43472],[7.68765,52.46131],[7.60197,52.47928],[7.55702,52.43295],[7.59605,52.41794],[7.57597,52.40562],[7.56534,52.38206],[7.43313,52.33689],[7.42036,52.31775],[7.38216,52.31302],[7.35642,52.29168],[7.31321,52.28396],[7.2945,52.26877],[7.15405,52.27075],[7.11794,52.26531],[7.09984,52.24826],[7.06283,52.24535],[7.03647,52.23181],[6.9855,52.23076],[6.947,52.18512],[6.90474,52.17997],[6.87458,52.15869],[6.86581,52.13267],[6.85194,52.12466],[6.75493,52.12164],[6.75045,52.10048],[6.73753,52.09446],[6.74252,52.08526],[6.68857,52.07229],[6.68067,52.03903],[6.74887,52.02464],[6.80316,51.99149],[6.82092,51.98939],[6.82549,51.97201],[6.79312,51.96151],[6.7792,51.92959],[6.72716,51.90223],[6.68193,51.92189],[6.54072,51.88858],[6.46908,51.85885],[6.4537,51.86946],[6.43565,51.86617],[6.38887,51.87834],[6.37965,51.86374],[6.39878,51.85123],[6.39574,51.83608],[6.37128,51.83901],[6.35029,51.85475],[6.3111,51.85484],[6.30482,51.87054],[6.28162,51.87846],[6.21451,51.87272],[6.19255,51.88292],[6.19658,51.89461],[6.1533,51.90965],[6.11437,51.9056],[6.09617,51.89264],[6.13115,51.88223],[6.13864,51.86711],[6.15715,51.85939],[6.15859,51.8477],[6.10351,51.85326],[6.06303,51.86994],[6.03395,51.84849],[5.99385,51.83546],[5.96098,51.84124],[5.93932,51.82666],[5.94112,51.80988],[5.9678,51.79747],[5.96745,51.78408],[5.98301,51.76817],[5.94594,51.75144],[5.9489,51.73584],[5.99074,51.73424],[6.02472,51.72208],[6.02828,51.71699],[6.01882,51.70903],[6.02541,51.67218],[6.10864,51.65396],[6.08709,51.62363],[6.08483,51.60399],[6.15128,51.56352],[6.17093,51.53602],[6.20508,51.51201],[6.20559,51.49079],[6.21624,51.47312],[6.19805,51.39943],[6.21427,51.39629],[6.20722,51.38965],[6.21831,51.36182],[6.18276,51.33885],[6.16272,51.33562],[6.11747,51.27655],[6.06561,51.24345],[6.07581,51.22695],[6.06212,51.22314],[6.06129,51.21316],[6.06632,51.18141],[6.07622,51.16914],[6.10299,51.16578],[6.16451,51.18893],[6.13164,51.17311],[6.16328,51.15796],[6.08827,51.13889],[6.03226,51.10017],[6.00522,51.09444],[5.97412,51.0746],[5.95075,51.04142],[5.94235,51.04107],[5.91415,51.07134],[5.85919,51.05149]],[[8.47632,52.50277],[8.47638,52.50275],[8.47637,52.50275],[8.47632,52.50277]],[[9.0098,52.18531],[9.00987,52.18532],[9.01094,52.18556],[9.01103,52.18527],[9.01114,52.18505],[9.01075,52.18516],[9.01038,52.18524],[9.0098,52.18531]]]} + } + }, + "options": { + "endpoint": "https://db-regio.hafas.de/bin/hci/mgate.exe", + "client": { + "id": "DB-REGIO", + "name": "DB Busradar NRW", + "os": "Android 9", + "type": "AND", + "v": 100021 + }, + "ext": "DB.REGIO.1", + "ver": "1.10", + "auth": { + "type": "AID", + "aid": "OGBAqytjHhCvr0J4" + }, + "products": [ + { + "id": "national-express", + "bitmasks": [1], + "name": "InterCityExpress" + }, + { + "id": "national", + "bitmasks": [2], + "name": "InterCity & EuroCity" + }, + { + "id": "regional-express", + "bitmasks": [4], + "name": "Regionalexpress" + }, + { + "id": "regional", + "bitmasks": [8], + "name": "Regionalzug" + }, + { + "id": "suburban", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "ferry", + "bitmasks": [64], + "name": "Ferry" + }, + { + "id": "taxi", + "bitmasks": [512], + "name": "AnrufSammelTaxi" + } + ] + } +} From 5ce1be4e55fb5fd0e91a1d314638a3bef4f5fbe6 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:12:25 +0100 Subject: [PATCH 17/35] DE: add NVV --- data/de/nvv-hafas-mgate.json | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 data/de/nvv-hafas-mgate.json diff --git a/data/de/nvv-hafas-mgate.json b/data/de/nvv-hafas-mgate.json new file mode 100644 index 0000000..6e0f0b8 --- /dev/null +++ b/data/de/nvv-hafas-mgate.json @@ -0,0 +1,74 @@ +{ + "name": "Nordhessischer Verkehrsverbund (NVV)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Nordhessischer VerkehrsVerbund", + "homepage": "https://www.nvv.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[8.46618,50.97396],[8.51477,50.95018],[8.55949,50.95103],[8.57394,50.94416],[8.60064,50.94518],[8.65153,50.96238],[8.67669,50.99109],[8.69805,50.98655],[8.729,50.96074],[8.76425,50.97081],[8.78515,50.9519],[8.84688,50.95813],[8.90774,50.94759],[8.92448,50.9565],[8.9217,50.96374],[8.93182,50.96202],[8.94288,50.94758],[8.96187,50.94256],[8.96843,50.92858],[9.00237,50.92121],[9.00482,50.90819],[9.02341,50.8987],[9.04371,50.90381],[9.04757,50.91491],[9.07374,50.90582],[9.1065,50.91351],[9.12186,50.89695],[9.10702,50.89454],[9.10194,50.88564],[9.13431,50.86076],[9.1483,50.83072],[9.25493,50.8117],[9.2681,50.79267],[9.30251,50.80126],[9.32781,50.79074],[9.35842,50.79505],[9.37048,50.77636],[9.38968,50.76819],[9.40294,50.77266],[9.40967,50.78557],[9.43469,50.78694],[9.42777,50.77053],[9.45257,50.75728],[9.47339,50.75988],[9.50351,50.73055],[9.57877,50.76033],[9.59698,50.75509],[9.60081,50.73348],[9.62097,50.73427],[9.64874,50.71597],[9.66712,50.71345],[9.68791,50.73082],[9.72755,50.74308],[9.7349,50.75369],[9.71972,50.76786],[9.73909,50.77634],[9.73407,50.78591],[9.76743,50.79917],[9.82821,50.78638],[9.8776,50.79171],[9.88296,50.77344],[9.92625,50.76317],[9.95818,50.7716],[9.9616,50.78681],[9.95059,50.79683],[9.96345,50.80845],[9.96111,50.81921],[9.97684,50.82768],[9.99632,50.82134],[10.00902,50.83007],[10.03025,50.82881],[10.04587,50.85303],[10.02638,50.85932],[10.06217,50.8777],[10.06562,50.89098],[10.01781,50.92438],[9.99008,50.92028],[9.99849,50.9322],[10.05146,50.93414],[10.07126,50.9436],[10.06562,50.95169],[10.05279,50.95102],[10.04356,50.96194],[10.04796,50.96918],[10.02917,50.98146],[10.03528,51.0058],[10.10364,50.9988],[10.11831,51.00781],[10.12591,50.99405],[10.14544,50.98893],[10.1796,50.99165],[10.21104,51.00459],[10.20865,51.01442],[10.22135,51.02693],[10.1895,51.05252],[10.15321,51.05977],[10.16201,51.07028],[10.15473,51.0853],[10.18149,51.10455],[10.18158,51.11609],[10.19785,51.10766],[10.21558,51.11607],[10.21084,51.13271],[10.21769,51.14246],[10.20869,51.14945],[10.24363,51.18684],[10.20455,51.19571],[10.17168,51.21611],[10.15338,51.21168],[10.14268,51.22387],[10.07656,51.22859],[10.08557,51.24435],[10.05543,51.26193],[10.06577,51.26834],[10.06501,51.27915],[10.00578,51.29132],[9.98331,51.28817],[9.97475,51.30318],[9.94739,51.30771],[9.95592,51.31611],[9.95458,51.32721],[9.93828,51.34129],[9.93047,51.36705],[9.9398,51.37897],[9.93858,51.39276],[9.90506,51.42553],[9.87575,51.41542],[9.84743,51.41847],[9.84453,51.40636],[9.79955,51.41428],[9.78612,51.40584],[9.79278,51.39457],[9.69679,51.36748],[9.69573,51.35834],[9.71372,51.34626],[9.73209,51.31643],[9.76423,51.31972],[9.76187,51.31029],[9.734,51.30102],[9.67238,51.32171],[9.65382,51.31937],[9.63315,51.33137],[9.60347,51.33314],[9.56567,51.34983],[9.56247,51.35663],[9.58399,51.37051],[9.56758,51.38311],[9.58363,51.39757],[9.59573,51.39371],[9.61211,51.40299],[9.59512,51.4158],[9.57509,51.41282],[9.55832,51.41985],[9.54126,51.40736],[9.53145,51.41322],[9.52305,51.4062],[9.51166,51.41467],[9.45299,51.41346],[9.41579,51.38325],[9.3926,51.38865],[9.34476,51.36989],[9.34481,51.35623],[9.36393,51.34571],[9.3733,51.32724],[9.35073,51.31923],[9.34289,51.30695],[9.37153,51.27772],[9.46522,51.25731],[9.45332,51.24236],[9.47009,51.23086],[9.41147,51.22682],[9.40199,51.23665],[9.36545,51.23867],[9.36055,51.25353],[9.34971,51.25888],[9.32581,51.26208],[9.29964,51.25294],[9.28271,51.25849],[9.26948,51.2494],[9.2673,51.21945],[9.25728,51.20268],[9.21811,51.20029],[9.21823,51.18465],[9.18677,51.17634],[9.17447,51.19797],[9.1344,51.22242],[9.13531,51.24648],[9.10156,51.25883],[9.10262,51.26516],[9.13332,51.27568],[9.11705,51.29227],[9.11982,51.32194],[9.11135,51.32762],[9.13289,51.3368],[9.13617,51.3454],[9.11366,51.35965],[9.13593,51.36532],[9.15913,51.35211],[9.17445,51.35674],[9.17037,51.36589],[9.18137,51.37003],[9.17619,51.39579],[9.15998,51.40854],[9.16787,51.41382],[9.16186,51.44373],[9.13717,51.4545],[9.0944,51.44977],[9.08633,51.46633],[9.09807,51.49711],[9.07825,51.50769],[9.04254,51.50667],[9.01911,51.52333],[8.89825,51.49302],[8.88386,51.4834],[8.88702,51.46976],[8.91295,51.44491],[8.91221,51.42823],[8.941,51.42279],[8.93198,51.39449],[8.88805,51.39693],[8.85447,51.38212],[8.83979,51.39249],[8.80297,51.39505],[8.73017,51.37665],[8.68039,51.37817],[8.66956,51.37193],[8.67419,51.36375],[8.65481,51.35661],[8.64764,51.34512],[8.61548,51.33941],[8.58751,51.30757],[8.55896,51.289],[8.54994,51.27541],[8.59522,51.2423],[8.61437,51.2427],[8.63543,51.25757],[8.7144,51.27035],[8.72709,51.26042],[8.72022,51.24913],[8.7344,51.21712],[8.75588,51.20719],[8.74256,51.19982],[8.74599,51.17746],[8.74021,51.17063],[8.68788,51.13783],[8.68511,51.12764],[8.6968,51.11315],[8.65495,51.09916],[8.54985,51.10833],[8.50231,51.0887],[8.49593,51.07311],[8.51819,51.06202],[8.49666,51.03996],[8.52754,51.02266],[8.46618,50.97396]],[[9.84682,51.39157],[9.85155,51.39208],[9.84873,51.38671],[9.84682,51.39157]],[[9.84779,51.38466],[9.84856,51.3861],[9.84962,51.38298],[9.84779,51.38466]],[[9.96221,50.93809],[9.96281,50.9379],[9.96227,50.93767],[9.96221,50.93809]],[[9.97227,50.93744],[9.97539,50.9375],[9.97615,50.9367],[9.97421,50.93656],[9.97227,50.93744]],[[9.97633,50.9119],[9.9834,50.91546],[9.97994,50.91259],[9.97884,50.91015],[9.97706,50.91061],[9.97633,50.9119]],[[10.13175,51.13999],[10.13327,51.1409],[10.14645,51.14011],[10.14922,51.14045],[10.15521,51.14374],[10.16137,51.14406],[10.16694,51.14713],[10.16961,51.14547],[10.17011,51.14092],[10.17133,51.13904],[10.17656,51.13686],[10.17688,51.13612],[10.17701,51.13529],[10.17396,51.1338],[10.17277,51.13213],[10.17175,51.12871],[10.17221,51.12627],[10.17525,51.12345],[10.18111,51.12026],[10.18138,51.11803],[10.17713,51.12187],[10.17158,51.12334],[10.1594,51.124],[10.15557,51.12306],[10.15374,51.12468],[10.15322,51.12751],[10.15176,51.12897],[10.14824,51.13027],[10.14535,51.13033],[10.14245,51.1319],[10.13916,51.13622],[10.1357,51.13851],[10.13175,51.13999]]]} + } + }, + "options": { + "endpoint": "https://auskunft.nvv.de/auskunft/bin/app/mgate.exe", + "client": { + "type": "IPH", + "id": "NVV", + "v": "5000300", + "os": "iOS 12.1.4", + "name": "NVVMobilPROD_APPSTORE" + }, + "ver": "1.18", + "ext": "NVV.6.0", + "auth": { + "type": "AID", + "aid": "Kt8eNOH7qjVeSxNA" + }, + "lang": "de", + "products": [ + { + "id": "express", + "bitmasks": [1], + "name": "InterCityExpress" + }, + { + "id": "national", + "bitmasks": [2], + "name": "EuroCity/InterCity" + }, + { + "id": "regional", + "bitmasks": [4], + "name": "Regionalzug" + }, + { + "id": "regiotram", + "bitmasks": [1024, 16, 8], + "name": "RegioTram" + }, + { + "id": "tram", + "bitmasks": [4, 32], + "name": "Tram" + }, + { + "id": "bus", + "bitmasks": [128, 64], + "name": "Bus" + }, + { + "id": "on-call", + "bitmasks": [512], + "name": "AnrufSammelTaxi" + } + ] + } +} From bc97dd0730e3784842b11bb7aa032582a6889ae4 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:12:34 +0100 Subject: [PATCH 18/35] DE: add RSAG --- data/de/rsag-hafas-mgate.json | 88 +++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 data/de/rsag-hafas-mgate.json diff --git a/data/de/rsag-hafas-mgate.json b/data/de/rsag-hafas-mgate.json new file mode 100644 index 0000000..38a5299 --- /dev/null +++ b/data/de/rsag-hafas-mgate.json @@ -0,0 +1,88 @@ +{ + "name": "Rostocker Straßenbahn (RSAG)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en", + "fr" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Rostocker Straßenbahn AG", + "homepage": "https://www.rsag-online.de", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[11.50385,54.0477],[11.50661,54.03602],[11.52016,54.03426],[11.52451,54.04748],[11.54738,54.0516],[11.60869,54.09893],[11.61851,54.08847],[11.61601,54.07881],[11.57596,54.06623],[11.57925,54.04784],[11.55396,54.02866],[11.58053,54.00131],[11.57708,53.98589],[11.64964,53.98114],[11.64401,53.97259],[11.66459,53.96139],[11.65921,53.95466],[11.66656,53.93439],[11.68487,53.92981],[11.70706,53.95043],[11.73295,53.94845],[11.75252,53.95602],[11.75582,53.96868],[11.79141,53.96508],[11.78302,53.9354],[11.79636,53.92147],[11.78082,53.91261],[11.78303,53.88999],[11.75421,53.87489],[11.76889,53.86179],[11.75188,53.85303],[11.75899,53.84409],[11.74892,53.82576],[11.79216,53.81703],[11.80288,53.79488],[11.78435,53.77958],[11.7876,53.76932],[11.83469,53.76003],[11.83382,53.74763],[11.90297,53.72783],[11.91719,53.73541],[11.98034,53.73791],[11.9855,53.73542],[11.96792,53.731],[11.96934,53.72202],[11.99327,53.72279],[12.00234,53.71097],[12.02012,53.70737],[12.02568,53.70048],[12.01958,53.69014],[12.04427,53.66315],[12.07577,53.64476],[12.0936,53.63815],[12.11964,53.64186],[12.14033,53.63126],[12.19096,53.63788],[12.20587,53.61054],[12.2035,53.60016],[12.24964,53.57842],[12.27924,53.57777],[12.28384,53.56792],[12.29913,53.56343],[12.31511,53.5644],[12.34738,53.58353],[12.39499,53.56323],[12.416,53.57173],[12.42379,53.58489],[12.40977,53.59995],[12.4194,53.61075],[12.41738,53.63659],[12.42501,53.64759],[12.4053,53.6633],[12.42941,53.66761],[12.4637,53.65613],[12.47578,53.66312],[12.46199,53.67481],[12.48468,53.68398],[12.49647,53.6561],[12.51041,53.64918],[12.55464,53.65415],[12.62738,53.63632],[12.65953,53.65269],[12.66466,53.66497],[12.63132,53.69073],[12.64658,53.71535],[12.63637,53.72971],[12.63674,53.74894],[12.65303,53.75175],[12.65531,53.76672],[12.70201,53.76797],[12.71136,53.80946],[12.75721,53.82175],[12.76452,53.84394],[12.7604,53.85776],[12.78279,53.86866],[12.80718,53.8697],[12.80987,53.87923],[12.79458,53.88199],[12.79022,53.8958],[12.77515,53.90026],[12.7881,53.917],[12.80632,53.91676],[12.82103,53.9296],[12.79804,53.95641],[12.82339,53.98734],[12.816,54.00607],[12.76275,54.03392],[12.7409,54.03764],[12.71657,54.02406],[12.70375,54.02995],[12.7016,54.03941],[12.66433,54.05008],[12.61165,54.08176],[12.587,54.07614],[12.55943,54.09758],[12.46401,54.09806],[12.4671,54.10898],[12.43818,54.12864],[12.39193,54.11874],[12.39948,54.13484],[12.38332,54.14927],[12.38884,54.15972],[12.37347,54.16472],[12.38264,54.17665],[12.37188,54.18395],[12.38059,54.18963],[12.37903,54.20914],[12.32706,54.23442],[12.3168,54.25444],[12.28951,54.26319],[12.29293,54.27457],[12.28647,54.279],[12.19493,54.24814],[12.11014,54.18377],[12.09117,54.1917],[12.05883,54.18232],[12.00908,54.18254],[11.85147,54.14966],[11.79669,54.15159],[11.76359,54.16148],[11.6789,54.15694],[11.60102,54.10866],[11.54829,54.09658],[11.5157,54.0706],[11.50385,54.0477]],[[11.52294,54.0541],[11.52824,54.06316],[11.5282,54.05863],[11.52294,54.0541]],[[12.17339,54.23476],[12.1734,54.23476],[12.1734,54.23476],[12.17339,54.23476]]]} + } + }, + "options": { + "endpoint": "https://fahrplan.rsag-online.de/bin/mgate.exe", + "client": { + "type": "WEB", + "id": "RSAG", + "name": "webapp" + }, + "ext": "VBN.2", + "ver": "1.24", + "auth": { + "type": "AID", + "aid": "tF5JTs25rzUhGrrl" + }, + "products": [ + { + "id": "ice", + "bitmasks": [1], + "name": "InterCityExpress" + }, + { + "id": "ic-ec", + "bitmasks": [2], + "name": "InterCity & EuroCity" + }, + { + "id": "long-distance-train", + "bitmasks": [4], + "name": "InterRegio/high-speed train" + }, + { + "id": "regional-train", + "bitmasks": [8], + "name": "regional train" + }, + { + "id": "s-bahn", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "ferry", + "bitmasks": [64], + "name": "Schiff" + }, + { + "id": "u-bahn", + "bitmasks": [128], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "Tram" + }, + { + "id": "on-call", + "bitmasks": [512], + "name": "Taxi/on-call vehicle" + } + ] + } +} From 73feb174e2eb71a9448449a74c7ca1ff257cb33a Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:12:19 +0100 Subject: [PATCH 19/35] DE: add NAH.SH --- data/de/nahsh-hafas-mgate.json | 85 ++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 data/de/nahsh-hafas-mgate.json diff --git a/data/de/nahsh-hafas-mgate.json b/data/de/nahsh-hafas-mgate.json new file mode 100644 index 0000000..1caa9c3 --- /dev/null +++ b/data/de/nahsh-hafas-mgate.json @@ -0,0 +1,85 @@ +{ + "name": "Nahverkehrsverbund Schleswig-Holstein (NAH.SH)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Nahverkehrsverbund Schleswig-Holstein GmbH", + "homepage": "https://www.nah.sh/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[7.51348,54.19582],[7.52682,54.13879],[7.56686,54.08601],[7.63597,54.03071],[7.72569,53.98987],[7.8673,54.01829],[8.49748,54.02396],[8.76252,53.96096],[8.80734,53.90242],[8.99377,53.86812],[9.03776,53.87652],[9.19939,53.87556],[9.28603,53.85944],[9.31385,53.84776],[9.35247,53.81532],[9.42724,53.72935],[9.49602,53.69431],[9.54444,53.61338],[9.70223,53.5548],[9.73668,53.5554],[9.74997,53.57716],[9.75131,53.59694],[9.76162,53.60007],[9.7665,53.61225],[9.7836,53.60716],[9.78514,53.59867],[9.81157,53.58276],[9.83953,53.58349],[9.89525,53.62016],[9.91328,53.6483],[9.98963,53.64435],[10.0021,53.67647],[10.07334,53.67573],[10.08636,53.71551],[10.12314,53.70882],[10.16924,53.73408],[10.18396,53.72341],[10.15057,53.70696],[10.15117,53.69269],[10.13244,53.67977],[10.18759,53.65155],[10.18357,53.63568],[10.20904,53.62972],[10.18173,53.61461],[10.1869,53.58999],[10.15885,53.58991],[10.1453,53.57936],[10.14028,53.5635],[10.15255,53.55769],[10.14087,53.54585],[10.14532,53.53323],[10.15562,53.53152],[10.15624,53.51984],[10.1853,53.50727],[10.20692,53.51172],[10.21135,53.49744],[10.22716,53.49127],[10.23213,53.48017],[10.25761,53.47013],[10.30278,53.43804],[10.30206,53.4307],[10.3234,53.42205],[10.37051,53.42124],[10.49355,53.37093],[10.57857,53.35532],[10.60023,53.36046],[10.60573,53.37407],[10.62363,53.38248],[10.62724,53.42209],[10.64071,53.45102],[10.65501,53.45669],[10.69659,53.45093],[10.70768,53.47299],[10.76,53.47956],[10.78349,53.49233],[10.79208,53.50681],[10.82895,53.51035],[10.82606,53.53183],[10.83964,53.54257],[10.83322,53.56987],[10.86271,53.56006],[10.91607,53.56857],[10.93171,53.58436],[10.92659,53.59711],[10.93665,53.62633],[10.95981,53.64622],[10.96219,53.65952],[10.94867,53.66645],[10.94933,53.68581],[10.92723,53.70295],[10.82879,53.71548],[10.81575,53.72519],[10.81274,53.74161],[10.76578,53.75294],[10.78105,53.7931],[10.76945,53.82375],[10.75652,53.83485],[10.77218,53.86503],[10.85232,53.89334],[10.88365,53.91763],[10.89831,53.91238],[10.89443,53.90186],[10.90908,53.89297],[10.97325,53.9044],[10.96859,53.91719],[10.9028,53.92844],[10.91711,53.94493],[10.91206,53.95583],[11.12888,54.09953],[11.68009,54.31527],[11.67207,54.33411],[11.64818,54.33528],[11.54411,54.41056],[11.32803,54.51617],[11.31564,54.53319],[11.14343,54.5814],[10.99863,54.57389],[10.97592,54.56028],[10.81763,54.55164],[10.75159,54.51871],[10.65251,54.51586],[10.59503,54.52489],[10.34354,54.59687],[10.1746,54.74152],[10.08914,54.76825],[10.05473,54.77041],[9.89688,54.84604],[9.74065,54.82801],[9.61564,54.85685],[9.63498,54.88182],[9.59161,54.89149],[9.46445,54.83704],[9.43197,54.83159],[9.40685,54.84703],[9.37732,54.84237],[9.36542,54.82338],[9.33572,54.80827],[9.2555,54.81485],[9.24356,54.83198],[9.25271,54.84374],[9.24559,54.85328],[9.1452,54.87733],[9.04949,54.87664],[8.94938,54.90696],[8.8905,54.90938],[8.85707,54.90139],[8.82381,54.91131],[8.76997,54.89797],[8.72948,54.89732],[8.68284,54.91479],[8.56335,54.92448],[8.56452,54.9945],[8.50732,55.00317],[8.48038,55.02638],[8.48572,55.04673],[8.47485,55.05899],[8.3966,55.07373],[8.3507,55.06947],[8.335,55.08666],[8.32041,55.08939],[8.30032,55.08612],[8.28218,55.0705],[8.04462,55.10366],[7.98107,55.01209],[7.94644,54.94426],[7.93364,54.8856],[7.92356,54.74392],[7.94017,54.64076],[7.95717,54.60022],[8.13895,54.3512],[8.04678,54.38269],[7.95301,54.39584],[7.82886,54.39753],[7.71774,54.38029],[7.63437,54.34918],[7.5694,54.30562],[7.52793,54.25297],[7.51348,54.19582]]]} + } + }, + "options": { + "endpoint": "https://nah.sh.hafas.de/bin/mgate.exe", + "client": { + "id": "NAHSH", + "name": "NAHSHPROD", + "v": "3000700" + }, + "ver": "1.16", + "auth": { + "aid": "r0Ot9FLFNAFxijLW" + }, + "lang": "de", + "products": [ + { + "mode": "train", + "bitmasks": [1], + "name": "High-speed rail" + }, + { + "id": "national", + "bitmasks": [2], + "name": "InterCity & EuroCity" + }, + { + "id": "interregional", + "bitmasks": [4], + "name": "Interregional" + }, + { + "id": "regional", + "bitmasks": [8], + "name": "Regional & RegionalExpress" + }, + { + "id": "suburban", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "ferry", + "bitmasks": [64], + "name": "Ferry" + }, + { + "id": "subway", + "bitmasks": [128], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "Tram" + }, + { + "id": "onCall", + "bitmasks": [512], + "name": "On-call transit" + } + ] + } +} From 94ade57b8d5098cd96ae4f478b7ea5963fd48df3 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:11:59 +0100 Subject: [PATCH 20/35] DE: add NASA/INSA --- data/de/nasa-hafas-mgate.json | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 data/de/nasa-hafas-mgate.json diff --git a/data/de/nasa-hafas-mgate.json b/data/de/nasa-hafas-mgate.json new file mode 100644 index 0000000..a19fbf4 --- /dev/null +++ b/data/de/nasa-hafas-mgate.json @@ -0,0 +1,73 @@ +{ + "name": "Personennahverkehr in Sachsen-Anhalt (NASA/INSA)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Nahverkehrsservice Sachsen-Anhalt GmbH", + "homepage": "https://www.nasa.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[10.55345,52.00362],[10.5821,51.97082],[10.59917,51.97091],[10.61473,51.95452],[10.62991,51.95402],[10.60612,51.94015],[10.60567,51.91959],[10.64284,51.90171],[10.6425,51.89095],[10.62704,51.87603],[10.57156,51.84875],[10.56962,51.84121],[10.57953,51.83617],[10.56658,51.81128],[10.57752,51.79615],[10.57223,51.77981],[10.58657,51.76403],[10.62179,51.75449],[10.63512,51.72338],[10.6601,51.70825],[10.66185,51.66664],[10.69008,51.63854],[10.75417,51.63638],[10.76443,51.64252],[10.8036,51.63669],[10.81474,51.62078],[10.85698,51.62817],[10.894,51.60616],[10.88186,51.59793],[10.87584,51.57784],[10.88579,51.57387],[10.89503,51.54762],[10.93289,51.53837],[10.91961,51.52017],[10.93626,51.50591],[10.93331,51.49847],[10.96209,51.4816],[10.95324,51.4714],[10.96335,51.45121],[10.96144,51.42936],[11.00653,51.41242],[11.06878,51.42426],[11.15277,51.39716],[11.19383,51.39849],[11.22133,51.40843],[11.24849,51.39065],[11.31843,51.40381],[11.32506,51.38781],[11.3446,51.38047],[11.38707,51.38005],[11.38272,51.36762],[11.39334,51.34238],[11.46494,51.29736],[11.45387,51.29635],[11.44633,51.27766],[11.43536,51.27576],[11.41121,51.24741],[11.37543,51.24678],[11.35817,51.22045],[11.38171,51.21489],[11.38901,51.19949],[11.43019,51.20786],[11.43772,51.20554],[11.43249,51.19886],[11.4409,51.19086],[11.46218,51.18902],[11.47072,51.15656],[11.44431,51.14598],[11.45811,51.12336],[11.45749,51.11014],[11.48103,51.09883],[11.54683,51.09798],[11.57438,51.11556],[11.60972,51.1048],[11.60881,51.09589],[11.61679,51.09263],[11.65962,51.10514],[11.68515,51.09479],[11.69606,51.06596],[11.72913,51.06315],[11.75619,51.03869],[11.77639,51.0414],[11.7791,51.04829],[11.80498,51.04132],[11.88344,51.05114],[11.90348,51.03965],[11.90804,51.0244],[11.94172,51.02615],[11.96895,51.01271],[11.96431,50.99169],[12.00899,50.97944],[12.00363,50.97037],[12.01042,50.96433],[12.08833,50.97172],[12.12947,50.95652],[12.16417,50.95423],[12.17992,50.96945],[12.19335,50.9538],[12.20482,50.95226],[12.21302,50.93345],[12.24419,50.94869],[12.2461,50.97304],[12.29096,51.00477],[12.30187,51.02498],[12.29077,51.0419],[12.26237,51.04256],[12.26946,51.04896],[12.26679,51.06447],[12.29476,51.09013],[12.28126,51.1035],[12.23424,51.10872],[12.23172,51.11614],[12.24754,51.13286],[12.20412,51.14458],[12.22037,51.18278],[12.19348,51.18946],[12.19719,51.20274],[12.21176,51.21303],[12.20267,51.22436],[12.20654,51.23938],[12.1952,51.26014],[12.1807,51.26286],[12.17573,51.29458],[12.16343,51.29774],[12.15814,51.31591],[12.20157,51.32971],[12.19752,51.3494],[12.20312,51.36147],[12.18285,51.39747],[12.20108,51.42191],[12.18894,51.43397],[12.16508,51.43775],[12.15886,51.46008],[12.1813,51.46686],[12.18363,51.47863],[12.21006,51.48381],[12.21501,51.5031],[12.2015,51.50967],[12.2017,51.52679],[12.23697,51.54437],[12.24261,51.55897],[12.29449,51.55608],[12.35322,51.58124],[12.42769,51.57784],[12.44575,51.60337],[12.47376,51.60064],[12.47127,51.59334],[12.48353,51.58817],[12.5099,51.60242],[12.54164,51.59781],[12.58243,51.61678],[12.59781,51.61388],[12.61655,51.62243],[12.6007,51.61254],[12.61043,51.60672],[12.65419,51.6176],[12.67187,51.62897],[12.69012,51.6574],[12.77378,51.64296],[12.79559,51.66097],[12.83894,51.67752],[12.8504,51.67473],[12.86238,51.65118],[12.8844,51.65539],[12.89611,51.64301],[12.9256,51.64532],[12.94186,51.63376],[12.95849,51.64601],[12.97782,51.64827],[12.97683,51.65878],[12.99355,51.66438],[13.01059,51.65773],[13.00946,51.64335],[13.02644,51.63325],[13.15939,51.68319],[13.16942,51.69067],[13.16443,51.70463],[13.19414,51.71577],[13.18487,51.73353],[13.1652,51.74643],[13.17067,51.75559],[13.15949,51.76809],[13.17779,51.7873],[13.13192,51.85262],[13.15835,51.86078],[13.15613,51.87423],[13.13687,51.88601],[13.11602,51.88729],[13.07615,51.87339],[13.04289,51.87491],[13.04555,51.88689],[13.05531,51.8907],[13.05127,51.90343],[12.98164,51.90786],[12.98358,51.92104],[12.96561,51.92645],[12.96506,51.93851],[12.91534,51.94371],[12.89859,51.93246],[12.89025,51.93924],[12.85965,51.93924],[12.84797,51.97148],[12.78392,51.96853],[12.78261,51.97864],[12.76,51.99035],[12.73285,51.99309],[12.66963,52.01748],[12.64942,52.01568],[12.63794,51.99853],[12.60956,51.99528],[12.60702,51.98632],[12.54747,51.98897],[12.54174,52.00556],[12.499,52.01499],[12.48418,52.03714],[12.45667,52.03831],[12.43774,52.02128],[12.39296,52.04756],[12.36338,52.05078],[12.33698,52.0708],[12.32171,52.09513],[12.28169,52.10866],[12.27127,52.13294],[12.2496,52.14319],[12.24036,52.16465],[12.22508,52.17044],[12.23151,52.18006],[12.25393,52.18146],[12.24998,52.19352],[12.26014,52.20336],[12.25723,52.20971],[12.28562,52.2127],[12.30434,52.22802],[12.25486,52.25362],[12.27061,52.2945],[12.31528,52.34366],[12.29184,52.36573],[12.31359,52.37638],[12.29994,52.38656],[12.31034,52.39586],[12.3095,52.40617],[12.28437,52.41449],[12.30391,52.42193],[12.31359,52.44746],[12.33207,52.46292],[12.33745,52.48032],[12.31701,52.48514],[12.3327,52.48817],[12.33781,52.49711],[12.29731,52.50063],[12.27767,52.4937],[12.26371,52.52102],[12.2359,52.52839],[12.22462,52.52416],[12.21774,52.50594],[12.18657,52.50301],[12.17538,52.5135],[12.19547,52.53408],[12.17552,52.54309],[12.15637,52.53881],[12.16588,52.55877],[12.18862,52.57396],[12.18099,52.58231],[12.18271,52.61749],[12.20602,52.61437],[12.24397,52.62779],[12.23858,52.63667],[12.24621,52.67268],[12.23904,52.69106],[12.22504,52.69777],[12.23087,52.70466],[12.21232,52.72235],[12.22959,52.73978],[12.22609,52.75248],[12.21401,52.75924],[12.23005,52.77351],[12.23089,52.78399],[12.25055,52.78388],[12.26503,52.804],[12.25106,52.8218],[12.24012,52.86189],[12.20809,52.87164],[12.19727,52.88239],[12.13847,52.86186],[12.12783,52.87713],[12.13605,52.89443],[12.12751,52.89865],[12.10705,52.88134],[12.02242,52.89488],[11.98092,52.88063],[11.94421,52.89364],[11.8984,52.89816],[11.87295,52.91355],[11.83656,52.91455],[11.8331,52.92473],[11.85607,52.94243],[11.85155,52.95443],[11.79139,52.96428],[11.76692,52.98555],[11.74515,52.99218],[11.69573,52.98311],[11.68116,53.01164],[11.63354,53.01419],[11.64948,53.03433],[11.63207,53.0459],[11.59332,53.03942],[11.54478,53.00443],[11.52703,53.01283],[11.50733,53.0103],[11.48505,52.95996],[11.49366,52.94608],[11.4498,52.93688],[11.4038,52.90827],[11.38219,52.90797],[11.31123,52.8826],[11.30222,52.88135],[11.2914,52.89351],[11.24537,52.88342],[11.22441,52.90148],[11.15633,52.91082],[11.13556,52.90218],[11.10148,52.90176],[11.10612,52.9133],[11.09952,52.91716],[10.9999,52.91594],[10.9853,52.90794],[10.97951,52.88499],[10.96187,52.88214],[10.93721,52.8577],[10.89641,52.86063],[10.88665,52.85109],[10.86443,52.86014],[10.75869,52.84465],[10.7482,52.7831],[10.76974,52.75227],[10.78409,52.74714],[10.78075,52.73316],[10.79014,52.7121],[10.82377,52.71269],[10.82743,52.69752],[10.87024,52.66202],[10.9152,52.60683],[10.93021,52.60507],[10.96955,52.62057],[10.9672,52.60724],[10.93316,52.59159],[10.93725,52.58352],[10.92989,52.56732],[10.95202,52.53208],[10.99242,52.50149],[10.97402,52.50574],[10.93767,52.49516],[10.92645,52.4595],[10.99933,52.4061],[11.00979,52.39658],[11.00934,52.38503],[11.05654,52.37631],[11.0611,52.36203],[11.05191,52.35373],[10.97612,52.3416],[11.02887,52.30604],[11.00601,52.29344],[11.00511,52.28616],[11.02357,52.26701],[11.04356,52.26562],[11.05316,52.23759],[11.07106,52.23722],[11.07669,52.22934],[11.023,52.21427],[11.00642,52.20074],[11.00475,52.18654],[11.01343,52.17538],[11.05343,52.16811],[11.0391,52.13861],[10.97409,52.11057],[10.93497,52.10484],[10.93416,52.09256],[10.96328,52.08353],[10.95902,52.06213],[10.8796,52.06323],[10.82855,52.05201],[10.68376,52.0522],[10.64291,52.04495],[10.649,52.02833],[10.6306,52.01728],[10.58849,52.01839],[10.55345,52.00362]],[[10.89569,51.60626],[10.92942,51.60168],[10.91315,51.59721],[10.89569,51.60626]]]} + } + }, + "options": { + "endpoint": "https://reiseauskunft.insa.de/bin/mgate.exe", + "client": { + "type": "IPH", + "id": "NASA", + "v": "4000200", + "name": "nasaPROD", + "os": "iPhone OS 11.2.5" + }, + "ver": "1.18", + "auth": { + "type": "AID", + "aid": "nasa-apps" + }, + "lang": "en", + "products": [ + { + "mode": "train", + "bitmasks": [1], + "name": "InterCityExpress" + }, + { + "id": "national", + "bitmasks": [2], + "name": "InterCity & EuroCity" + }, + { + "id": "regional", + "bitmasks": [8], + "name": "RegionalExpress & RegionalBahn" + }, + { + "id": "suburban", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "tram", + "bitmasks": [32], + "name": "Tram" + }, + { + "id": "bus", + "bitmasks": [64, 128], + "name": "Bus" + }, + { + "id": "tourismTrain", + "bitmasks": [256], + "name": "Tourism Train" + } + ] + } +} From 137912cdccca0c60a3a3ae74ba57f49f3f3a4133 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:10:54 +0100 Subject: [PATCH 21/35] AT: add VVT --- data/at/vvt-hafas-mgate.json | 87 ++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 data/at/vvt-hafas-mgate.json diff --git a/data/at/vvt-hafas-mgate.json b/data/at/vvt-hafas-mgate.json new file mode 100644 index 0000000..0021e8e --- /dev/null +++ b/data/at/vvt-hafas-mgate.json @@ -0,0 +1,87 @@ +{ + "name": "Verkehrsverbund Tirol (VVT)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "en", + "de", + "it" + ], + "timezone": "Europe/Vienna", + "attribution": { + "name": "Verkehrsverbund Tirol", + "homepage": "https://www.vvt.at/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"MultiPolygon","coordinates":[[[[10.09127,46.92452],[10.10311,46.8928],[10.13401,46.87181],[10.13906,46.8488],[10.15967,46.84364],[10.19784,46.86184],[10.23692,46.86286],[10.24133,46.88539],[10.2338,46.89443],[10.24787,46.92658],[10.29596,46.9155],[10.31973,46.92145],[10.32385,46.9311],[10.3146,46.94666],[10.33331,46.95149],[10.35351,46.98697],[10.37476,46.98657],[10.38854,46.9957],[10.42043,46.9736],[10.41915,46.95578],[10.48012,46.93512],[10.4792,46.91656],[10.45813,46.8847],[10.46597,46.85119],[10.52077,46.84092],[10.54687,46.84499],[10.53944,46.83804],[10.54722,46.83283],[10.66512,46.86912],[10.687,46.86288],[10.68685,46.85138],[10.70003,46.84342],[10.75607,46.82252],[10.72031,46.79999],[10.72789,46.78416],[10.75888,46.78078],[10.78629,46.78985],[10.81147,46.77101],[10.82665,46.76868],[10.83671,46.77587],[10.88212,46.75838],[10.91932,46.77028],[11.02408,46.76113],[11.05041,46.80323],[11.08952,46.82084],[11.07814,46.85318],[11.10801,46.88861],[11.10229,46.91016],[11.11453,46.91329],[11.11778,46.92643],[11.13983,46.92305],[11.15951,46.93072],[11.17433,46.94342],[11.17053,46.95895],[11.18968,46.96471],[11.20848,46.9581],[11.32079,46.98718],[11.33659,46.98038],[11.35588,46.98561],[11.37867,46.96681],[11.40616,46.9605],[11.44617,46.97295],[11.45699,46.9877],[11.47513,46.99245],[11.48229,47.00643],[11.5083,47.00027],[11.5383,46.97959],[11.61676,47.00776],[11.66303,46.98761],[11.70804,46.98801],[11.72389,46.96869],[11.74865,46.96451],[11.76889,46.96951],[11.78605,46.98624],[11.83898,46.98889],[11.93415,47.03291],[11.9491,47.02916],[11.97933,47.04453],[12.0233,47.04299],[12.04528,47.05675],[12.07995,47.05473],[12.09961,47.07357],[12.137,47.07353],[12.1426,47.08099],[12.13229,47.09378],[12.13428,47.1107],[12.12056,47.12418],[12.11727,47.14104],[12.10028,47.14843],[12.08867,47.19307],[12.09392,47.21336],[12.11774,47.24183],[12.10799,47.25948],[12.08545,47.27457],[12.1126,47.29853],[12.14462,47.28365],[12.17144,47.29793],[12.19874,47.29412],[12.22535,47.30815],[12.23481,47.29728],[12.2667,47.29807],[12.30251,47.32614],[12.37432,47.30682],[12.41286,47.30947],[12.44207,47.32379],[12.47285,47.31978],[12.50496,47.34406],[12.4862,47.36567],[12.48817,47.37406],[12.51016,47.38892],[12.55446,47.39468],[12.58197,47.38862],[12.6062,47.40929],[12.62719,47.41531],[12.64333,47.43438],[12.63846,47.46179],[12.66698,47.46047],[12.70624,47.47808],[12.70286,47.49045],[12.66712,47.51246],[12.66004,47.53883],[12.64013,47.54825],[12.67302,47.57738],[12.65677,47.59263],[12.57992,47.60866],[12.5774,47.63652],[12.53597,47.64096],[12.50298,47.62966],[12.4475,47.67791],[12.44956,47.69268],[12.44159,47.69961],[12.36686,47.68865],[12.33737,47.70153],[12.28257,47.6944],[12.26039,47.68319],[12.24829,47.69488],[12.27166,47.7327],[12.25789,47.74749],[12.20852,47.71506],[12.15594,47.70225],[12.16138,47.68024],[12.19264,47.63962],[12.20055,47.61064],[12.18792,47.60934],[12.17698,47.61906],[12.13915,47.61029],[12.08518,47.61421],[12.06126,47.62331],[12.02472,47.61589],[12.0082,47.62967],[11.85315,47.60669],[11.84198,47.58637],[11.78087,47.59569],[11.66405,47.58831],[11.63404,47.59881],[11.625,47.58852],[11.59975,47.58302],[11.58032,47.55551],[11.58137,47.52733],[11.56842,47.51831],[11.50649,47.51024],[11.45314,47.51313],[11.43915,47.52195],[11.37855,47.47697],[11.38097,47.46718],[11.40215,47.46269],[11.40835,47.45147],[11.33566,47.45395],[11.31275,47.43585],[11.28569,47.42975],[11.28351,47.40978],[11.27062,47.40239],[11.23558,47.40251],[11.25986,47.42618],[11.25454,47.43561],[11.20669,47.43843],[11.12517,47.41624],[11.11361,47.40024],[10.98151,47.40155],[10.97617,47.41159],[10.99091,47.4195],[10.98996,47.43135],[10.93646,47.47175],[10.94237,47.48395],[10.91026,47.49004],[10.87623,47.48558],[10.88025,47.49904],[10.92455,47.51279],[10.89297,47.54144],[10.77463,47.52033],[10.76306,47.53778],[10.7005,47.54819],[10.69377,47.56286],[10.63624,47.56355],[10.59853,47.57422],[10.57458,47.55794],[10.56907,47.53835],[10.52465,47.53975],[10.46345,47.55682],[10.47932,47.56838],[10.48571,47.58822],[10.43492,47.58847],[10.42246,47.57673],[10.44566,47.55207],[10.42471,47.50313],[10.43758,47.48168],[10.46022,47.47616],[10.46682,47.43551],[10.4317,47.41498],[10.42341,47.38887],[10.38809,47.37734],[10.38013,47.35923],[10.3516,47.33974],[10.32748,47.30934],[10.2929,47.30399],[10.23304,47.27595],[10.20106,47.28139],[10.17134,47.27125],[10.17,47.26041],[10.20777,47.25195],[10.19109,47.23768],[10.20226,47.22805],[10.2067,47.2073],[10.19007,47.19169],[10.20157,47.15772],[10.21374,47.1504],[10.19838,47.14537],[10.19724,47.13572],[10.18213,47.13245],[10.18001,47.12457],[10.15337,47.11774],[10.12666,47.08323],[10.12855,47.06212],[10.15011,47.04862],[10.1167,47.02158],[10.14963,47.00134],[10.15026,46.98731],[10.13782,46.98405],[10.12041,46.94504],[10.09127,46.92452]]],[[[12.11459,47.00628],[12.12122,46.98416],[12.1306,46.97882],[12.12617,46.96012],[12.16134,46.93687],[12.13843,46.9112],[12.18462,46.90204],[12.21306,46.86981],[12.24736,46.88435],[12.26825,46.88119],[12.26998,46.87068],[12.28346,46.8634],[12.28605,46.84792],[12.29881,46.83523],[12.27658,46.81604],[12.28326,46.80394],[12.27386,46.79298],[12.27864,46.78026],[12.35188,46.77092],[12.37996,46.71283],[12.43968,46.68443],[12.4705,46.68223],[12.47698,46.67323],[12.51839,46.6723],[12.55897,46.6483],[12.62089,46.65686],[12.64072,46.64755],[12.69394,46.65309],[12.69962,46.69945],[12.72788,46.70184],[12.71663,46.71596],[12.72295,46.73737],[12.80396,46.75218],[12.81202,46.74462],[12.8429,46.74499],[12.90058,46.77114],[12.93304,46.75969],[12.97213,46.78654],[12.96768,46.80212],[12.90125,46.82844],[12.89115,46.84568],[12.84862,46.86356],[12.84829,46.89411],[12.83852,46.9015],[12.84172,46.91567],[12.79689,46.92992],[12.79072,46.94297],[12.751,46.96256],[12.73317,46.99385],[12.77692,47.04335],[12.75815,47.05032],[12.71877,47.04836],[12.70436,47.07617],[12.62616,47.12286],[12.56792,47.14073],[12.54572,47.13435],[12.52561,47.15418],[12.49957,47.16204],[12.41739,47.14694],[12.39801,47.15681],[12.3612,47.14485],[12.34992,47.13217],[12.35093,47.11568],[12.31389,47.10882],[12.30368,47.09705],[12.28572,47.09861],[12.26252,47.07859],[12.21247,47.06221],[12.20058,47.03178],[12.16397,47.02464],[12.14432,47.02887],[12.11459,47.00628]]]]} + } + }, + "options": { + "auth": { + "type": "AID", + "aid": "wf7mcf9bv3nv8g5f" + }, + "client": { + "id": "VAO", + "type": "WEB", + "name": "webapp", + "l": "vs_vvt" + }, + "endpoint": "https://smartride.vvt.at/bin/mgate.exe", + "products": [ + { + "id": "trains", + "bitmasks": [1, 2], + "name": "Bahn & S-Bahn" + }, + { + "id": "subway", + "bitmasks": [4], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [16], + "name": "Straßenbahn" + }, + { + "id": "city-bus", + "bitmasks": [128], + "name": "Stadtbus" + }, + { + "id": "regional-bus", + "bitmasks": [64], + "name": "Regionalbus" + }, + { + "id": "long-distance-bus", + "bitmasks": [32], + "name": "Fernbus" + }, + { + "id": "other-bus", + "bitmasks": [2048], + "name": "sonstige Busse" + }, + { + "id": "aerial-lift", + "bitmasks": [256], + "name": "Seil-/Zahnradbahn" + }, + { + "id": "ferry", + "bitmasks": [512], + "name": "Schiff" + }, + { + "id": "on-call", + "bitmasks": [1024], + "name": "Anrufsammeltaxi" + } + ] + } +} From 0da2dcca037fee7bef383a1fa863fd2e8ec147d8 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 20:12:29 +0100 Subject: [PATCH 22/35] DE: add RMV --- data/de/rmv-hafas-mgate.json | 87 ++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 data/de/rmv-hafas-mgate.json diff --git a/data/de/rmv-hafas-mgate.json b/data/de/rmv-hafas-mgate.json new file mode 100644 index 0000000..02b5384 --- /dev/null +++ b/data/de/rmv-hafas-mgate.json @@ -0,0 +1,87 @@ +{ + "name": "Rhein-Main-Verkehrsverbund (RMV)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Rhein-Main-Verkehrsverbund", + "homepage": "https://www.rmv.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[7.65789,50.03203],[7.75207,49.99162],[7.77468,49.96634],[7.81007,49.95349],[7.79515,49.9383],[7.80748,49.92965],[7.8462,49.93787],[7.89107,49.92636],[7.91341,49.8796],[7.94241,49.8753],[7.96166,49.85638],[7.94562,49.84232],[7.95556,49.83424],[7.91753,49.80645],[7.92363,49.76883],[7.89815,49.75096],[7.91905,49.73754],[7.94238,49.75006],[7.92836,49.73598],[7.9621,49.72174],[7.95502,49.69857],[7.98611,49.69196],[8.02097,49.70383],[8.05724,49.69083],[8.09705,49.69224],[8.11607,49.66751],[8.14929,49.65355],[8.1477,49.62211],[8.19959,49.61666],[8.23066,49.58377],[8.34484,49.59056],[8.35508,49.60232],[8.41844,49.59119],[8.36301,49.6779],[8.36715,49.69472],[8.44913,49.72448],[8.54156,49.71262],[8.61098,49.72605],[8.64289,49.63966],[8.63467,49.62669],[8.66978,49.55592],[8.65923,49.47952],[8.66999,49.44249],[8.69342,49.41188],[8.68396,49.39539],[8.68892,49.3762],[8.70094,49.37415],[8.69369,49.31227],[8.72193,49.31027],[8.73862,49.33936],[8.7681,49.34144],[8.77941,49.35689],[8.8041,49.36199],[8.81474,49.3311],[8.87837,49.3553],[8.9211,49.34124],[8.97209,49.37945],[9.02288,49.40108],[9.03982,49.37081],[9.08641,49.37364],[9.09252,49.36239],[9.135,49.34777],[9.14892,49.35322],[9.15297,49.37144],[9.20536,49.39497],[9.24104,49.42726],[9.26448,49.49009],[9.31087,49.50498],[9.3067,49.51779],[9.32225,49.54014],[9.36664,49.56457],[9.35165,49.58587],[9.41755,49.59344],[9.45688,49.61369],[9.42877,49.66494],[9.3801,49.67399],[9.31609,49.71144],[9.22202,49.70235],[9.20265,49.72719],[9.16808,49.74191],[9.18023,49.75523],[9.16422,49.76201],[9.12839,49.81936],[9.10683,49.82721],[9.15047,49.86308],[9.11492,49.89928],[9.11401,49.92951],[9.1441,49.91557],[9.22021,49.93097],[9.26143,49.92173],[9.2746,49.9028],[9.2392,49.86793],[9.24018,49.85625],[9.26039,49.84816],[9.28231,49.861],[9.3162,49.82827],[9.37581,49.83107],[9.3736,49.85176],[9.44097,49.88189],[9.43668,49.91438],[9.46958,49.91316],[9.47579,49.93425],[9.49288,49.94302],[9.48855,49.95338],[9.45464,49.95383],[9.43698,49.99306],[9.41572,49.99723],[9.44225,50.01999],[9.41204,50.03893],[9.42945,50.04676],[9.41037,50.0752],[9.51212,50.08281],[9.5331,50.10405],[9.53486,50.1464],[9.55139,50.16275],[9.51725,50.17981],[9.53215,50.19417],[9.51757,50.22537],[9.59087,50.21554],[9.65667,50.22278],[9.68317,50.23745],[9.65507,50.25241],[9.76003,50.3034],[9.76005,50.341],[9.74908,50.35987],[9.76512,50.42052],[9.80087,50.41942],[9.80409,50.4085],[9.86033,50.393],[9.96585,50.42187],[10.03995,50.4793],[10.04583,50.52887],[10.06854,50.55664],[10.05291,50.57363],[10.05584,50.59947],[10.04432,50.61114],[10.06054,50.62086],[10.08574,50.61621],[10.08993,50.63417],[10.05534,50.67684],[10.00267,50.68095],[9.94324,50.66674],[9.95994,50.64174],[9.95386,50.63352],[9.90626,50.64469],[9.88569,50.6385],[9.88913,50.67116],[9.93067,50.69412],[9.91656,50.70453],[9.94228,50.72289],[9.9458,50.75751],[9.89488,50.78387],[9.88444,50.79998],[9.82775,50.79667],[9.77237,50.81407],[9.71959,50.79355],[9.70166,50.76822],[9.71855,50.75474],[9.71405,50.74806],[9.67835,50.74484],[9.66454,50.72251],[9.62238,50.74484],[9.60441,50.73666],[9.60474,50.70727],[9.63367,50.67646],[9.61299,50.6507],[9.63224,50.62798],[9.60399,50.61214],[9.56091,50.62512],[9.54296,50.64471],[9.50684,50.64179],[9.48452,50.68591],[9.33032,50.74048],[8.99455,50.72624],[8.85712,50.76303],[8.79662,50.6983],[8.76313,50.70044],[8.73318,50.68559],[8.64908,50.70813],[8.61844,50.68069],[8.60028,50.68102],[8.58353,50.7096],[8.5573,50.712],[8.54946,50.74215],[8.49732,50.74232],[8.45674,50.72821],[8.44266,50.76178],[8.46543,50.78906],[8.44688,50.80167],[8.40766,50.79793],[8.40434,50.8508],[8.35394,50.86981],[8.3118,50.86632],[8.29585,50.88576],[8.26837,50.88658],[8.16053,50.80675],[8.11876,50.78958],[8.15961,50.73536],[8.13806,50.69995],[8.12032,50.69544],[8.10338,50.67157],[8.10385,50.65517],[8.13231,50.63039],[8.11925,50.60867],[8.14499,50.59591],[8.12573,50.55411],[8.1037,50.5389],[8.03864,50.56116],[7.97598,50.51179],[7.9726,50.48295],[8.00329,50.45467],[7.96945,50.4397],[7.97901,50.42874],[7.95776,50.4082],[7.98284,50.39362],[8.01393,50.39478],[8.00946,50.38095],[8.05631,50.36884],[8.06875,50.34795],[8.06453,50.32977],[8.09884,50.31965],[8.11416,50.27831],[8.10209,50.26559],[8.07394,50.27765],[8.03111,50.2742],[8.01476,50.25705],[8.04767,50.23429],[8.02781,50.22088],[7.98747,50.24309],[7.98053,50.23074],[7.90072,50.20415],[7.90327,50.19605],[7.87655,50.1833],[7.8775,50.1677],[7.9202,50.14223],[7.91882,50.11812],[7.85078,50.13244],[7.82862,50.11103],[7.82863,50.08642],[7.80073,50.08906],[7.78137,50.07461],[7.76756,50.08718],[7.74306,50.08338],[7.69088,50.06035],[7.65789,50.03203]],[[9.39247,50.05606],[9.39944,50.0665],[9.40233,50.05624],[9.39247,50.05606]],[[9.41134,50.02647],[9.41547,50.02615],[9.41406,50.02549],[9.41134,50.02647]]]} + } + }, + "options": { + "endpoint": "https://www.rmv.de/auskunft/bin/jp/mgate.exe", + "client": { + "type": "WEB", + "id": "RMV", + "name": "webapp" + }, + "ext": "RMV.1", + "ver": "1.18", + "auth": { + "type": "AID", + "aid": "x0k4ZR33ICN9CWmj" + }, + "products": [ + { + "id": "express-train", + "bitmasks": [1], + "name": "InterCityExpress/Fernzug" + }, + { + "id": "long-distance-train", + "bitmasks": [2], + "name": "EuroCity/InterCity/EuroNight/InterRegio" + }, + { + "id": "regional-train", + "bitmasks": [4], + "name": "RegionalExpress/Regionalbahn" + }, + { + "id": "s-bahn", + "bitmasks": [8], + "name": "S-Bahn" + }, + { + "id": "u-bahn", + "bitmasks": [16], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [32], + "name": "Straßenbahn" + }, + { + "id": "bus", + "bitmasks": [64, 128], + "name": "Bus" + }, + { + "id": "watercraft", + "bitmasks": [256], + "name": "Schiff" + }, + { + "id": "ast", + "bitmasks": [512], + "name": "Anruf-Sammel-Taxi" + }, + { + "id": "cable-car", + "bitmasks": [1024], + "name": "Seilbahn" + } + ] + } +} From 0c7e1f26c7dd16c02e9a5b8694f106faad693b1a Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 23:36:23 +0100 Subject: [PATCH 23/35] AT: add SVV --- data/at/svv-hafas-mgate.json | 81 ++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 data/at/svv-hafas-mgate.json diff --git a/data/at/svv-hafas-mgate.json b/data/at/svv-hafas-mgate.json new file mode 100644 index 0000000..5bac207 --- /dev/null +++ b/data/at/svv-hafas-mgate.json @@ -0,0 +1,81 @@ +{ + "name": "Salzburg Verkehr (SVV)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en", + "it" + ], + "timezone": "Europe/Vienna", + "attribution": { + "name": "Salzburger Verkehrsverbund GmbH", + "homepage": "https://salzburg-verkehr.at/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[12.98591,47.79002],[12.99712,47.77546],[12.99355,47.7617],[13.00958,47.74858],[13.05717,47.75663],[13.07163,47.74685],[13.08558,47.75398],[13.08177,47.76638],[13.11506,47.77757],[13.13398,47.80134],[13.09322,47.81719],[13.08437,47.83963],[13.05702,47.84725],[13.03702,47.83438],[13.00033,47.85883],[12.98249,47.83278],[12.9977,47.81946],[12.97921,47.79684],[12.98591,47.79002]]]} + }, + "regularCoverage": { + "area": {"type":"Polygon","coordinates":[[[12.68913,47.68247],[12.74124,47.67158],[12.76648,47.6363],[12.80969,47.61577],[12.77266,47.58016],[12.78921,47.55411],[12.84184,47.54135],[12.85265,47.52368],[12.96173,47.47103],[12.97983,47.47812],[13.00956,47.46035],[13.05347,47.48999],[13.05328,47.51404],[13.13253,47.51555],[13.15577,47.54452],[13.18313,47.5493],[13.23231,47.52576],[13.26953,47.52908],[13.307,47.50546],[13.36151,47.51611],[13.40464,47.46587],[13.43566,47.45391],[13.5225,47.49511],[13.48799,47.52458],[13.48342,47.54085],[13.48601,47.5672],[13.51074,47.57942],[13.52982,47.61928],[13.51694,47.63635],[13.49132,47.6382],[13.50706,47.66712],[13.53884,47.68096],[13.55755,47.71428],[13.4443,47.74078],[13.45207,47.76923],[13.46915,47.7812],[13.51474,47.76753],[13.54051,47.77325],[13.54525,47.78326],[13.53371,47.80051],[13.50175,47.79395],[13.45174,47.80869],[13.39186,47.80012],[13.29358,47.83241],[13.30231,47.85744],[13.27795,47.88923],[13.29199,47.9278],[13.2846,47.94738],[13.30413,47.95927],[13.36163,47.93577],[13.37994,47.96471],[13.37601,47.9802],[13.31425,47.99713],[13.29704,48.01514],[13.19294,47.97874],[13.15355,47.97759],[13.15405,47.99825],[13.09779,48.00228],[13.04111,48.04591],[12.97536,48.02806],[12.93798,48.04088],[12.90519,48.0249],[12.88712,47.99826],[12.85498,47.99948],[12.86942,47.95099],[12.8423,47.9384],[12.84272,47.91071],[12.86844,47.88553],[12.74213,47.89186],[12.72167,47.84034],[12.73777,47.80469],[12.75865,47.79969],[12.77026,47.78399],[12.82511,47.77916],[12.832,47.76012],[12.79261,47.76048],[12.76543,47.74409],[12.71574,47.73824],[12.70397,47.71028],[12.71008,47.69935],[12.68913,47.68247]],[[12.76331,47.66023],[12.76578,47.66253],[12.76872,47.66145],[12.76331,47.66023]]]} + } + }, + "options": { + "endpoint": "https://fahrplan.salzburg-verkehr.at/bin/mgate.exe", + "client": { + "type": "WEB", + "id": "VAO", + "name": "webapp" + }, + "ext": "VAO.11", + "ver": "1.20", + "auth": { + "type": "AID", + "aid": "wf7mcf9bv3nv8g5f" + }, + "products": [ + { + "id": "bahn-s-bahn", + "bitmasks": [1, 2], + "name": "Bahn & S-Bahn" + }, + { + "id": "u-bahn", + "bitmasks": [4], + "name": "U-Bahn" + }, + { + "id": "strassenbahn", + "bitmasks": [16], + "name": "Strassenbahn" + }, + { + "id": "fernbus", + "bitmasks": [32], + "name": "Fernbus" + }, + { + "id": "regionalbus", + "bitmasks": [64], + "name": "Regionalbus" + }, + { + "id": "stadtbus", + "bitmasks": [128], + "name": "Stadtbus" + }, + { + "id": "seilbahn-zahnradbahn", + "bitmasks": [256], + "name": "Seil-/Zahnradbahn" + }, + { + "id": "schiff", + "bitmasks": [512], + "name": "Schiff" + } + ] + } +} From 60ad06826a9e7f1831cd52660122a9dd8f01e2e2 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 23:36:11 +0100 Subject: [PATCH 24/35] =?UTF-8?q?DE:=20add=20S-Bahn=20M=C3=BCnchen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/de/db-sbahn-muenchen-hafas-mgate.json | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 data/de/db-sbahn-muenchen-hafas-mgate.json diff --git a/data/de/db-sbahn-muenchen-hafas-mgate.json b/data/de/db-sbahn-muenchen-hafas-mgate.json new file mode 100644 index 0000000..1b9e559 --- /dev/null +++ b/data/de/db-sbahn-muenchen-hafas-mgate.json @@ -0,0 +1,100 @@ +{ + "name": "S-Bahn München", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "en", + "de", + "fr", + "es" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "DB Regio AG (S-Bahn München)", + "homepage": "https://www.s-bahn-muenchen.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["DE", "LU", "CH", "AT"] + }, + "regularCoverage": { + "region": ["PL", "CZ", "SK", "HU", "SI", "RO", "BE"] + }, + "anyCoverage": { + "region": ["UA", "HR", "BG", "IT", "FR", "ES", "PT", "GB", "DK", "SE"] + } + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[11.354,48.158],[11.3834,48.1436],[11.3916,48.1214],[11.4303,48.1328],[11.4582,48.1263],[11.4647,48.0815],[11.5077,48.0572],[11.5364,48.0719],[11.5491,48.0644],[11.5844,48.088],[11.6887,48.0735],[11.6891,48.0877],[11.7191,48.1034],[11.715,48.119],[11.7296,48.1368],[11.7119,48.1524],[11.6859,48.1497],[11.7028,48.1739],[11.6963,48.186],[11.6376,48.1811],[11.6574,48.2141],[11.643,48.2296],[11.6044,48.2323],[11.5942,48.218],[11.5852,48.2326],[11.5502,48.2314],[11.5012,48.2526],[11.4848,48.2476],[11.4814,48.2257],[11.4525,48.2127],[11.3858,48.2034],[11.3849,48.184],[11.3657,48.181],[11.354,48.158]]]} + }, + "regularCoverage": { + "area": {"type":"Polygon","coordinates":[[[10.9863,48.176],[10.9998,48.1522],[11.0371,48.144],[11.0523,48.1227],[11.0507,48.1001],[11.0876,48.0834],[11.1278,48.0903],[11.1294,48.0152],[11.1629,47.9922],[11.1436,47.9752],[11.1442,47.9522],[11.2206,47.9214],[11.184,47.9022],[11.1787,47.8811],[11.2593,47.8705],[11.2805,47.879],[11.2948,47.8587],[11.2847,47.8296],[11.331,47.8156],[11.3445,47.8271],[11.3389,47.9227],[11.3995,47.9157],[11.4312,47.972],[11.4478,47.9687],[11.452,47.9524],[11.4911,47.9679],[11.515,47.9453],[11.5637,47.9522],[11.6129,47.9156],[11.6615,47.9186],[11.6986,47.9339],[11.7152,47.9114],[11.7598,47.9183],[11.7738,47.938],[11.7853,47.925],[11.8269,47.9191],[11.8681,47.9511],[11.9315,47.9273],[11.9531,47.9426],[11.9368,47.9882],[12.0002,47.9496],[12.031,47.9664],[12.0769,47.9721],[12.0766,47.984],[12.1068,47.9948],[12.1046,48.013],[12.0861,48.029],[12.0853,48.0864],[12.074,48.0945],[12.0868,48.0971],[12.0811,48.1087],[12.0946,48.1177],[12.0894,48.13],[12.0554,48.1326],[12.046,48.1495],[12.1839,48.1968],[12.1904,48.2126],[12.2069,48.1984],[12.2372,48.1991],[12.226,48.2362],[12.2413,48.2518],[12.2299,48.2666],[12.26,48.2862],[12.2619,48.3072],[12.2386,48.3513],[12.2022,48.3681],[12.2024,48.3827],[12.177,48.402],[12.1679,48.4255],[12.0806,48.4332],[12.0291,48.4226],[12.0217,48.446],[12.0029,48.4574],[12.0163,48.4977],[11.9699,48.5012],[11.9826,48.5116],[11.971,48.5262],[11.9795,48.5513],[11.9645,48.5822],[11.8867,48.5931],[11.8703,48.5855],[11.8009,48.6176],[11.7789,48.6183],[11.7661,48.6046],[11.7056,48.6208],[11.6899,48.6122],[11.6956,48.5875],[11.6518,48.5645],[11.6534,48.5034],[11.6353,48.4989],[11.6164,48.4683],[11.5585,48.4952],[11.5032,48.4464],[11.4417,48.4357],[11.416,48.4144],[11.3901,48.441],[11.3411,48.4599],[11.2622,48.4516],[11.1739,48.4209],[11.1905,48.3888],[11.1593,48.37],[11.1619,48.334],[11.1167,48.3191],[11.1033,48.2982],[11.1126,48.2745],[11.104,48.2663],[11.0733,48.2858],[11.0545,48.2756],[11.0578,48.2616],[11.0386,48.258],[11.0305,48.229],[11.0528,48.2049],[10.9863,48.176]]]} + } + }, + "options": { + "auth": { + "type": "AID", + "aid": "d491MVVhz9ZZts23" + }, + "checksumSalt": "ggnvMVV8RTt67gh1", + "endpoint": "https://s-bahn-muenchen.hafas.de/bin/540/mgate.exe", + "client": { + "type": "IPH", + "id": "DB-REGIO-MVV", + "name": "MuenchenNavigator", + "v": "5010100" + }, + "ext": "DB.R15.12.a", + "ver": "1.21", + "products": [ + { + "id": "ice", + "bitmasks": [1], + "name": "InterCityExpress" + }, + { + "id": "ic-ec", + "bitmasks": [2], + "name": "InterCity/EuroCity" + }, + { + "id": "ir-d", + "bitmasks": [4], + "name": "Interregio/Schnellzug" + }, + { + "id": "region", + "bitmasks": [8], + "name": "Regio- und Nahverkehr" + }, + { + "id": "sbahn", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "ubahn", + "bitmasks": [128], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "Straßenbahn" + }, + { + "id": "on-call", + "bitmasks": [512], + "name": "Anrufsammeltaxi" + } + ] + } +} From 60f550c1edd0e0ce465c15ab019b485a036acefd Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 23:36:16 +0100 Subject: [PATCH 25/35] DE: add HVV --- data/de/hvv-hafas-mgate.json | 94 ++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 data/de/hvv-hafas-mgate.json diff --git a/data/de/hvv-hafas-mgate.json b/data/de/hvv-hafas-mgate.json new file mode 100644 index 0000000..39234c6 --- /dev/null +++ b/data/de/hvv-hafas-mgate.json @@ -0,0 +1,94 @@ +{ + "name": "Hamburger Verkehrsverbund (HVV)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Hamburger Verkehrsverbund GmbH", + "homepage": "https://www.hvv.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[9.47831,53.70767],[9.52053,53.6617],[9.54444,53.61338],[9.67259,53.56058],[9.76598,53.55012],[9.75633,53.50697],[9.77722,53.48883],[9.79374,53.48964],[9.79334,53.46711],[9.85938,53.42536],[9.90303,53.44989],[9.91344,53.43697],[9.89919,53.41637],[9.90714,53.41013],[9.95255,53.42348],[9.98756,53.41089],[10.05104,53.44342],[10.05237,53.45739],[10.16162,53.39549],[10.2344,53.3908],[10.26423,53.41478],[10.32359,53.43239],[10.33268,53.44894],[10.24548,53.48572],[10.21455,53.52369],[10.1698,53.5245],[10.17592,53.53887],[10.15998,53.5427],[10.16806,53.56099],[10.15925,53.57512],[10.2076,53.58152],[10.19933,53.61274],[10.22952,53.63341],[10.20293,53.64133],[10.2025,53.65697],[10.15805,53.67991],[10.16709,53.7029],[10.18855,53.70715],[10.19992,53.73358],[10.16328,53.74384],[10.11818,53.72033],[10.07848,53.72443],[10.06194,53.71219],[10.06766,53.70171],[10.05658,53.6828],[9.99709,53.68576],[9.97953,53.65379],[9.95119,53.65593],[9.94428,53.67891],[9.98994,53.76172],[9.96947,53.77415],[9.90502,53.75505],[9.90598,53.77564],[9.87824,53.78455],[9.89114,53.80159],[9.88638,53.81509],[9.85402,53.8344],[9.83137,53.82991],[9.83105,53.84792],[9.76999,53.87557],[9.75532,53.89673],[9.64906,53.88866],[9.63816,53.87953],[9.64287,53.86735],[9.66976,53.84684],[9.63861,53.77844],[9.5579,53.75395],[9.56894,53.72233],[9.47831,53.70767]]]} + } + }, + "options": { + "auth": { + "type": "AID", + "aid": "andcXUmC9Mq6hjrwDIGd2l3oiaMrTUzyH" + }, + "checksumSalt": "pqjM3iKEGOAhYbX76k9R5zutv", + "endpoint": "https://hvv-app.hafas.de/bin/mgate.exe", + "client": { + "type": "AND", + "id": "HVV", + "name": "HVVPROD_ADHOC", + "v": "4020100" + }, + "ext": "HVV.1", + "ver": "1.16", + "products": [ + { + "id": "subway", + "bitmasks": [1], + "name": "U-Bahn" + }, + { + "id": "suburban", + "bitmasks": [2], + "name": "S-Bahn" + }, + { + "id": "akn", + "bitmasks": [4], + "name": "AKN" + }, + { + "id": "regional-express-train", + "bitmasks": [8], + "name": "RegionalExpress" + }, + { + "id": "regional-train", + "bitmasks": [16], + "name": "Regionalbahn" + }, + { + "id": "ferry", + "bitmasks": [32], + "name": "Fähre" + }, + { + "id": "bus", + "bitmasks": [128], + "name": "Bus" + }, + { + "id": "express-bus", + "bitmasks": [256], + "name": "Schnellbus" + }, + { + "id": "anruf-sammel-taxi", + "bitmasks": [1024], + "name": "Anruf-Sammel-Taxi" + }, + { + "id": "long-distance-train", + "bitmasks": [4096, 64], + "name": "Fernzug" + }, + { + "id": "long-distance-bus", + "bitmasks": [2048], + "name": "Fernbus" + } + ] + } +} From c098555ba5569b101c5f243e4d7e05da5f67f8e4 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 23:36:30 +0100 Subject: [PATCH 26/35] DE: add VBN --- data/de/vbn-hafas-mgate.json | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 data/de/vbn-hafas-mgate.json diff --git a/data/de/vbn-hafas-mgate.json b/data/de/vbn-hafas-mgate.json new file mode 100644 index 0000000..6e962c9 --- /dev/null +++ b/data/de/vbn-hafas-mgate.json @@ -0,0 +1,82 @@ +{ + "name": "Verkehrsverbund Bremen/Niedersachsen (VBN)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Verkehrsverbund Bremen/Niedersachsen", + "homepage": "https://www.vbn.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[7.60466,53.05803],[7.70495,53.01354],[7.71499,52.97489],[7.7078,52.96804],[7.73606,52.9418],[7.8231,52.9189],[7.77936,52.87676],[7.70596,52.85224],[7.67428,52.79729],[7.70472,52.76856],[7.64297,52.74192],[7.62865,52.72366],[7.68749,52.67481],[7.76567,52.67306],[7.80689,52.69629],[7.85379,52.7046],[7.91636,52.67539],[7.97584,52.69126],[8.02005,52.67705],[8.07705,52.62125],[8.06577,52.60061],[8.03418,52.58978],[8.02867,52.53684],[8.00627,52.53282],[8.05067,52.50236],[8.05363,52.44222],[8.12888,52.43967],[8.15851,52.4286],[8.20709,52.47444],[8.24771,52.47555],[8.3005,52.49429],[8.29327,52.45261],[8.36274,52.43836],[8.41803,52.44002],[8.46024,52.45832],[8.46743,52.49024],[8.50819,52.50828],[8.55867,52.49465],[8.65084,52.52588],[8.70422,52.49586],[8.78022,52.52822],[8.81556,52.52623],[8.83645,52.54032],[8.85547,52.52938],[8.90767,52.55849],[8.90803,52.59828],[8.88216,52.6083],[8.88815,52.62568],[8.93598,52.62691],[9.00789,52.64773],[9.02695,52.66331],[9.03675,52.69593],[9.01616,52.71109],[9.05823,52.72657],[9.06246,52.75796],[9.07157,52.76221],[9.05755,52.78682],[9.07502,52.80574],[9.05825,52.81224],[9.06758,52.82778],[9.05285,52.8373],[9.11593,52.86066],[9.11166,52.87742],[9.12277,52.89199],[9.16829,52.89206],[9.20344,52.87266],[9.17276,52.86046],[9.20945,52.84709],[9.19325,52.84074],[9.18834,52.81226],[9.22895,52.81422],[9.25625,52.79537],[9.28147,52.81153],[9.29504,52.80878],[9.29771,52.77272],[9.33282,52.76127],[9.35588,52.77627],[9.36781,52.80139],[9.34941,52.82174],[9.36959,52.81705],[9.39665,52.8305],[9.40039,52.83824],[9.3846,52.85126],[9.42018,52.87725],[9.42227,52.89721],[9.45819,52.90946],[9.46448,52.92914],[9.45331,52.9457],[9.4714,52.95877],[9.46475,52.99058],[9.44049,53.00702],[9.37354,52.98856],[9.34365,52.99219],[9.35768,53.00385],[9.3443,53.0186],[9.19467,53.04974],[9.19297,53.065],[9.17165,53.07736],[9.1635,53.09657],[9.18985,53.11624],[9.18248,53.12776],[9.20099,53.14666],[9.19296,53.16311],[9.20104,53.17451],[9.17428,53.18891],[9.12704,53.17056],[9.10453,53.14965],[9.07745,53.15473],[9.03686,53.19807],[9.03216,53.24928],[9.00057,53.2729],[9.01995,53.29993],[8.99966,53.30832],[9.00381,53.32523],[8.94978,53.34363],[8.94651,53.36855],[8.91652,53.37677],[8.96199,53.41092],[8.92186,53.44099],[8.97099,53.4518],[8.98073,53.46886],[8.96364,53.47789],[8.96768,53.50963],[8.91233,53.52232],[8.97035,53.52664],[8.99302,53.53752],[8.98664,53.55224],[9.02748,53.55047],[9.06628,53.56832],[9.11193,53.54888],[9.16325,53.60224],[9.26332,53.62602],[9.26264,53.63704],[9.28708,53.64424],[9.27926,53.65404],[9.28637,53.67023],[9.21928,53.68034],[9.30538,53.73137],[9.26645,53.77204],[9.22483,53.76139],[9.17994,53.78989],[9.13081,53.80277],[9.12249,53.81567],[9.11006,53.80893],[9.04285,53.81914],[9.02661,53.83696],[8.98801,53.84555],[8.90553,53.83417],[8.7889,53.84027],[8.69485,53.88191],[8.68666,53.89674],[8.60252,53.8814],[8.55954,53.8483],[8.53409,53.80808],[8.51228,53.74823],[8.47476,53.68933],[8.47564,53.6548],[8.51038,53.60941],[8.47544,53.60027],[8.49052,53.58052],[8.48517,53.57427],[8.50785,53.55796],[8.46554,53.55698],[8.40216,53.57368],[8.32578,53.62216],[8.26754,53.61337],[8.24281,53.59282],[8.21866,53.51862],[8.3,53.52053],[8.30938,53.48964],[8.30647,53.45926],[8.28953,53.43137],[8.24851,53.40397],[8.20711,53.40974],[8.15299,53.45532],[8.10061,53.45172],[8.074,53.47435],[8.06839,53.49974],[8.1572,53.50958],[8.17852,53.54129],[8.15003,53.57776],[8.16315,53.58503],[8.1558,53.60451],[8.12787,53.60361],[8.09047,53.64769],[8.04873,53.64523],[8.0361,53.66355],[8.03365,53.70693],[7.94757,53.71988],[7.80434,53.71307],[7.82973,53.64377],[7.81314,53.63069],[7.8513,53.61364],[7.83692,53.59267],[7.84239,53.58077],[7.81743,53.5522],[7.82331,53.54045],[7.80769,53.52029],[7.81431,53.4996],[7.92907,53.50801],[7.92212,53.47935],[7.96224,53.46238],[7.95631,53.44672],[7.85151,53.40027],[7.87754,53.35212],[7.84383,53.2965],[7.75641,53.24561],[7.69595,53.22559],[7.69175,53.20763],[7.70759,53.18432],[7.63953,53.18519],[7.63045,53.11894],[7.62002,53.116],[7.60466,53.05803]],[[9.19526,53.61824],[9.19545,53.61824],[9.19555,53.61804],[9.19526,53.61824]]]} + } + }, + "options": { + "endpoint": "https://fahrplaner.vbn.de/bin/mgate.exe", + "client": { + "type": "IPH", + "id": "VBN", + "name": "vbn", + "v": "6000000" + }, + "ver": "1.27", + "auth": { + "type": "AID", + "aid": "kaoxIXLn03zCr2KR" + }, + "products": [ + { + "id": "express-train", + "bitmasks": [1], + "name": "InterCityExpress" + }, + { + "id": "national-train", + "bitmasks": [2, 4], + "name": "InterCity, EuroCity, CityNightLine, InterRegio" + }, + { + "id": "local-train", + "bitmasks": [8], + "name": "Nahverkehr" + }, + { + "id": "suburban", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "watercraft", + "bitmasks": [64], + "name": "Schiff" + }, + { + "id": "subway", + "bitmasks": [128], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "Tram" + }, + { + "id": "dial-a-ride", + "bitmasks": [256], + "name": "Anrufverkehr" + } + ] + } +} From 08becb0fc701e7622d730f3f13011c9d75cdb254 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 16 Feb 2021 23:36:35 +0100 Subject: [PATCH 27/35] DE: add VMT --- data/de/vmt-hafas-mgate.json | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 data/de/vmt-hafas-mgate.json diff --git a/data/de/vmt-hafas-mgate.json b/data/de/vmt-hafas-mgate.json new file mode 100644 index 0000000..9d3d939 --- /dev/null +++ b/data/de/vmt-hafas-mgate.json @@ -0,0 +1,56 @@ +{ + "name": "Verkehrsverbund Mittelthüringen (VMT)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "VMT GmbH", + "homepage": "https://www.vmt-thueringen.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"MultiPolygon","coordinates":[[[[10.1686,50.9896],[10.1825,50.9653],[10.2426,50.962],[10.2443,50.9509],[10.3183,50.9263],[10.341,50.9446],[10.3835,50.9563],[10.3986,51],[10.3843,51.0063],[10.3908,51.0164],[10.3814,51.0407],[10.3196,51.0569],[10.3035,51.0464],[10.3096,51.0338],[10.2725,51.0242],[10.273,51.0029],[10.2028,51.016],[10.1686,50.9896]]],[[[10.3945,50.8634],[10.4218,50.8392],[10.4653,50.8459],[10.5332,50.823],[10.5318,50.7806],[10.5562,50.7792],[10.5583,50.7545],[10.581,50.7325],[10.6127,50.7331],[10.6498,50.7112],[10.6659,50.7189],[10.707,50.7118],[10.7213,50.7306],[10.7508,50.7134],[10.7739,50.762],[10.8087,50.7629],[10.8311,50.7781],[10.845,50.8048],[10.8401,50.8162],[10.867,50.835],[10.8434,50.8437],[10.8466,50.8507],[10.8715,50.8535],[10.8777,50.8729],[10.9056,50.8932],[10.9765,50.886],[10.9949,50.9023],[11.1042,50.9088],[11.1077,50.8948],[11.1243,50.8953],[11.1177,50.887],[11.1258,50.8721],[11.154,50.8692],[11.1646,50.853],[11.1491,50.8462],[11.1502,50.8266],[11.1926,50.8062],[11.1681,50.7719],[11.1829,50.7389],[11.1367,50.7304],[11.1081,50.7371],[11.0906,50.7299],[11.0854,50.7013],[11.0701,50.7239],[11.0462,50.7098],[11.0498,50.692],[11.0066,50.6935],[11.0023,50.686],[11.0202,50.665],[11.0493,50.6724],[11.0572,50.6576],[11.0512,50.6254],[11.0815,50.6083],[11.0618,50.5676],[11.0392,50.5568],[10.966,50.5571],[10.9615,50.5369],[10.9892,50.5228],[11.0603,50.5192],[11.0856,50.5057],[11.0999,50.5132],[11.0996,50.5273],[11.138,50.5268],[11.172,50.5603],[11.1874,50.5576],[11.197,50.5515],[11.1906,50.5408],[11.1988,50.5246],[11.2619,50.4964],[11.2607,50.4758],[11.2905,50.4707],[11.3261,50.4859],[11.329,50.5052],[11.3534,50.5158],[11.4211,50.5115],[11.4332,50.4991],[11.4117,50.4939],[11.4139,50.4419],[11.4428,50.43],[11.4407,50.4166],[11.4737,50.4272],[11.4809,50.4158],[11.4722,50.3986],[11.5112,50.3915],[11.5127,50.3727],[11.5222,50.3695],[11.5637,50.3802],[11.5752,50.3952],[11.6257,50.3823],[11.7633,50.4008],[11.7809,50.4117],[11.8254,50.3853],[11.93,50.4238],[11.9331,50.4361],[11.9017,50.4467],[11.9554,50.4505],[11.9505,50.4746],[11.9712,50.4874],[11.9399,50.509],[11.9301,50.5297],[11.8903,50.5226],[11.8802,50.5392],[11.9316,50.5544],[11.9406,50.5685],[11.9337,50.5828],[11.951,50.5944],[11.8957,50.6236],[11.8941,50.6653],[11.8738,50.6675],[11.8826,50.6793],[11.8756,50.7025],[11.8842,50.72],[11.9096,50.726],[11.905,50.7407],[11.9256,50.744],[11.951,50.7668],[11.9009,50.7924],[11.8684,50.7954],[11.9063,50.8059],[11.9168,50.8273],[11.8996,50.8447],[11.928,50.8588],[11.8834,50.8838],[11.9233,50.8889],[11.932,50.9099],[11.9584,50.9131],[11.9742,50.9338],[11.9663,50.9423],[11.9863,50.9493],[12.0254,50.9413],[12.0374,50.9335],[12.011,50.9155],[12.0174,50.9023],[11.9911,50.8743],[12.0056,50.8626],[11.9913,50.8491],[12.0092,50.8274],[12.042,50.8146],[12.093,50.8188],[12.123,50.7949],[12.148,50.7972],[12.1608,50.8108],[12.1413,50.8229],[12.1447,50.8383],[12.1348,50.8476],[12.1632,50.8734],[12.1401,50.9078],[12.1441,50.9234],[12.1745,50.932],[12.1766,50.944],[12.1627,50.9666],[12.107,50.9782],[12.0237,50.9746],[12.011,50.9946],[11.9803,50.9961],[11.9823,51.0193],[11.9451,51.037],[11.9215,51.031],[11.9172,51.0469],[11.8925,51.0594],[11.758,51.0527],[11.7362,51.072],[11.7091,51.0738],[11.6988,51.1019],[11.6691,51.1149],[11.6234,51.109],[11.5708,51.125],[11.5395,51.1074],[11.4782,51.1092],[11.4362,51.0949],[11.4349,51.1058],[11.4144,51.1138],[11.3957,51.102],[11.1947,51.1086],[11.1849,51.0794],[11.1992,51.0341],[11.1328,51.0144],[11.1076,51.0384],[11.0979,51.0674],[11.0695,51.0837],[11.04,51.0839],[11.0342,51.0698],[11.0149,51.0642],[10.9712,51.0685],[10.9785,51.0469],[10.9277,51.0341],[10.9184,51.0198],[10.8774,51.0324],[10.8779,51.0601],[10.8983,51.0716],[10.8848,51.1015],[10.7763,51.0986],[10.7681,51.1092],[10.7308,51.1158],[10.696,51.0997],[10.6877,51.0798],[10.7029,51.0557],[10.6904,51.0492],[10.6112,51.0434],[10.5884,51.028],[10.4756,50.9969],[10.4801,50.9694],[10.506,50.9617],[10.4923,50.9503],[10.4939,50.9372],[10.4718,50.9164],[10.4328,50.9096],[10.3945,50.8634]],[[10.4869,50.9007],[10.4889,50.9033],[10.49,50.9014],[10.4869,50.9007]],[[11.912,50.4178],[11.912,50.4178],[11.912,50.4178],[11.912,50.4178]]]]} + } + }, + "options": { + "endpoint": "https://vmt.hafas.de/bin/ticketing/mgate.exe", + "client": { + "type": "IPH", + "id": "HAFAS", + "name": "VMT", + "v": "2040100" + }, + "ver": "1.18", + "auth": { + "type": "AID", + "aid": "t2h7u1e6r4i8n3g7e0n" + }, + "products": [ + { + "id": "long-distance-train", + "bitmasks": [1, 2, 4], + "name": "long-distance train" + }, + { + "id": "regional-train", + "bitmasks": [8, 16], + "name": "regional train" + }, + { + "id": "tram", + "bitmasks": [32], + "name": "tram" + }, + { + "id": "bus", + "bitmasks": [256], + "name": "bus" + } + ] + } +} From 829e635107ebf50c99f2e92810fb139b4ec3bc0c Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:15:55 +0100 Subject: [PATCH 28/35] DE: add VSN --- data/de/vsn-hafas-mgate.json | 91 ++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 data/de/vsn-hafas-mgate.json diff --git a/data/de/vsn-hafas-mgate.json b/data/de/vsn-hafas-mgate.json new file mode 100644 index 0000000..7081f95 --- /dev/null +++ b/data/de/vsn-hafas-mgate.json @@ -0,0 +1,91 @@ +{ + "name": "Verkehrsverbund Süd-Niedersachsen (VSN)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Verkehrsverbund Süd-Niedersachsen GmbH", + "homepage": "https://vsninfo.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"MultiPolygon","coordinates":[[[[7.922,52.292],[7.959,52.268],[7.957,52.245],[8.034,52.22],[8.082,52.235],[8.107,52.213],[8.141,52.232],[8.135,52.258],[8.162,52.262],[8.188,52.285],[8.168,52.302],[8.122,52.297],[8.101,52.325],[8.028,52.323],[8.011,52.342],[7.961,52.327],[7.972,52.309],[7.929,52.306],[7.922,52.292]]],[[[8.474,53.226],[8.529,53.183],[8.614,53.164],[8.66,53.09],[8.698,53.077],[8.703,53.044],[8.727,53.03],[8.767,53.042],[8.82,53.017],[8.853,53.012],[8.875,53.022],[8.917,53.007],[8.94,53.01],[8.988,53.046],[8.973,53.061],[8.971,53.086],[8.998,53.097],[8.962,53.115],[8.991,53.127],[8.948,53.156],[8.869,53.137],[8.832,53.168],[8.771,53.165],[8.7,53.19],[8.666,53.182],[8.629,53.203],[8.598,53.191],[8.592,53.198],[8.603,53.217],[8.555,53.214],[8.519,53.233],[8.474,53.226]]],[[[8.475,53.6],[8.497,53.57],[8.551,53.532],[8.498,53.496],[8.487,53.469],[8.606,53.48],[8.658,53.51],[8.646,53.533],[8.654,53.557],[8.637,53.559],[8.627,53.575],[8.664,53.601],[8.663,53.612],[8.594,53.598],[8.536,53.612],[8.475,53.6]]],[[[9.086,51.266],[9.095,51.247],[9.122,51.239],[9.124,51.216],[9.186,51.166],[9.234,51.176],[9.236,51.195],[9.272,51.196],[9.291,51.234],[9.285,51.247],[9.335,51.251],[9.348,51.249],[9.356,51.231],[9.409,51.216],[9.443,51.223],[9.481,51.208],[9.544,51.211],[9.556,51.205],[9.556,51.184],[9.607,51.167],[9.641,51.18],[9.641,51.205],[9.679,51.213],[9.689,51.236],[9.727,51.234],[9.76,51.248],[9.769,51.26],[9.761,51.271],[9.735,51.267],[9.713,51.278],[9.697,51.267],[9.698,51.278],[9.658,51.28],[9.659,51.3],[9.732,51.291],[9.774,51.304],[9.777,51.34],[9.759,51.341],[9.743,51.325],[9.709,51.362],[9.805,51.383],[9.802,51.405],[9.833,51.398],[9.844,51.372],[9.865,51.367],[9.876,51.374],[9.861,51.409],[9.879,51.399],[9.901,51.412],[9.929,51.371],[10.05,51.425],[10.072,51.414],[10.086,51.43],[10.156,51.426],[10.162,51.432],[10.149,51.441],[10.18,51.444],[10.203,51.481],[10.212,51.466],[10.236,51.467],[10.305,51.491],[10.314,51.51],[10.348,51.516],[10.375,51.542],[10.384,51.582],[10.43,51.588],[10.49,51.569],[10.518,51.549],[10.562,51.553],[10.605,51.575],[10.659,51.554],[10.673,51.579],[10.646,51.589],[10.641,51.603],[10.656,51.606],[10.647,51.618],[10.689,51.63],[10.675,51.649],[10.657,51.648],[10.632,51.673],[10.614,51.668],[10.596,51.684],[10.513,51.672],[10.501,51.695],[10.487,51.698],[10.502,51.729],[10.49,51.744],[10.507,51.764],[10.498,51.771],[10.43,51.777],[10.393,51.795],[10.375,51.793],[10.353,51.773],[10.313,51.772],[10.283,51.786],[10.272,51.799],[10.277,51.815],[10.241,51.837],[10.149,51.808],[10.149,51.833],[10.117,51.84],[10.125,51.872],[10.106,51.884],[10.112,51.905],[10.037,51.951],[9.989,51.942],[9.986,51.932],[10.005,51.914],[9.978,51.905],[9.946,51.918],[9.897,51.912],[9.832,51.936],[9.762,51.987],[9.712,51.987],[9.684,51.962],[9.648,51.97],[9.579,52.043],[9.531,52.042],[9.531,52.025],[9.49,52.022],[9.438,51.987],[9.344,51.979],[9.335,51.961],[9.355,51.944],[9.301,51.933],[9.303,51.92],[9.326,51.912],[9.338,51.894],[9.33,51.861],[9.318,51.852],[9.365,51.86],[9.451,51.855],[9.426,51.842],[9.431,51.825],[9.42,51.81],[9.434,51.792],[9.397,51.763],[9.378,51.761],[9.368,51.744],[9.387,51.73],[9.38,51.718],[9.394,51.703],[9.38,51.692],[9.39,51.676],[9.373,51.668],[9.368,51.648],[9.435,51.644],[9.332,51.618],[9.36,51.59],[9.31,51.555],[9.303,51.519],[9.221,51.493],[9.21,51.466],[9.172,51.467],[9.149,51.445],[9.151,51.426],[9.132,51.413],[9.161,51.393],[9.163,51.377],[9.151,51.367],[9.141,51.376],[9.095,51.366],[9.102,51.348],[9.117,51.343],[9.092,51.33],[9.112,51.277],[9.086,51.266]]],[[[9.723,53.557],[9.766,53.55],[9.757,53.506],[9.777,53.489],[9.794,53.49],[9.793,53.467],[9.857,53.426],[9.896,53.449],[9.91,53.445],[9.899,53.416],[9.909,53.41],[9.953,53.423],[9.988,53.411],[10.051,53.443],[10.052,53.457],[10.162,53.395],[10.234,53.391],[10.264,53.415],[10.324,53.432],[10.333,53.45],[10.305,53.453],[10.245,53.486],[10.215,53.524],[10.17,53.525],[10.176,53.538],[10.16,53.543],[10.168,53.561],[10.159,53.575],[10.208,53.582],[10.199,53.613],[10.23,53.633],[10.203,53.641],[10.202,53.657],[10.158,53.68],[10.167,53.703],[10.188,53.706],[10.201,53.73],[10.17,53.744],[10.118,53.72],[10.077,53.724],[10.062,53.712],[10.068,53.702],[10.057,53.683],[9.996,53.685],[9.98,53.654],[9.903,53.656],[9.878,53.625],[9.827,53.59],[9.767,53.635],[9.727,53.584],[9.723,53.557]]],[[[10.405,52.318],[10.417,52.305],[10.411,52.285],[10.426,52.281],[10.414,52.266],[10.439,52.254],[10.421,52.246],[10.433,52.202],[10.483,52.2],[10.505,52.182],[10.583,52.202],[10.582,52.216],[10.607,52.225],[10.605,52.247],[10.626,52.262],[10.622,52.273],[10.651,52.295],[10.623,52.311],[10.636,52.322],[10.63,52.34],[10.591,52.356],[10.554,52.348],[10.522,52.362],[10.475,52.356],[10.469,52.339],[10.477,52.329],[10.422,52.335],[10.405,52.318]],[[10.429,52.281],[10.434,52.282],[10.432,52.281],[10.429,52.281]],[[10.534,52.335],[10.537,52.338],[10.538,52.34],[10.544,52.343],[10.545,52.341],[10.537,52.335],[10.536,52.333],[10.534,52.335]]]]} + }, + "anyCoverage": { + "area": {"type":"Polygon","coordinates":[[[6.323,53.723],[6.399,53.594],[6.539,53.571],[6.645,53.514],[6.67,53.486],[6.867,53.437],[6.86,53.417],[6.876,53.358],[6.903,53.333],[7.046,53.294],[7.172,53.3],[7.195,53.202],[7.157,53.137],[7.18,53.107],[7.191,53.008],[7.161,52.947],[7.066,52.853],[7.049,52.811],[7.033,52.648],[6.875,52.667],[6.743,52.66],[6.688,52.631],[6.703,52.612],[6.697,52.585],[6.713,52.574],[6.659,52.553],[6.682,52.519],[6.677,52.481],[6.743,52.452],[6.94,52.422],[6.984,52.441],[7.05,52.371],[7.004,52.288],[7.022,52.251],[7.05,52.232],[7.105,52.23],[7.158,52.253],[7.305,52.251],[7.514,52.348],[7.593,52.365],[7.626,52.419],[7.597,52.438],[7.611,52.458],[7.672,52.444],[7.703,52.389],[7.802,52.358],[7.889,52.365],[7.919,52.352],[7.942,52.318],[7.911,52.305],[7.904,52.235],[7.878,52.205],[7.899,52.175],[7.976,52.158],[7.984,52.13],[7.889,52.103],[7.863,52.082],[7.904,52.041],[7.968,52.024],[8.036,52.05],[8.097,52.044],[8.201,52.06],[8.229,52.09],[8.28,52.112],[8.376,52.095],[8.419,52.101],[8.429,52.128],[8.494,52.149],[8.539,52.182],[8.529,52.197],[8.471,52.213],[8.493,52.251],[8.628,52.244],[8.68,52.219],[8.72,52.229],[8.762,52.196],[8.748,52.168],[8.77,52.151],[8.893,52.18],[8.875,52.155],[8.874,52.122],[8.847,52.117],[8.813,52.14],[8.744,52.135],[8.652,52.097],[8.642,52.081],[8.567,52.122],[8.477,52.121],[8.4,52.048],[8.434,52.012],[8.427,51.998],[8.357,51.977],[8.376,51.951],[8.421,51.932],[8.474,51.93],[8.496,51.903],[8.617,51.915],[8.669,51.906],[8.713,51.868],[8.675,51.869],[8.629,51.89],[8.611,51.873],[8.52,51.842],[8.503,51.818],[8.452,51.801],[8.389,51.754],[8.388,51.71],[8.448,51.705],[8.465,51.673],[8.554,51.649],[8.559,51.627],[8.476,51.598],[8.453,51.575],[8.457,51.544],[8.49,51.517],[8.503,51.482],[8.542,51.455],[8.646,51.466],[8.768,51.434],[8.855,51.488],[8.859,51.502],[8.84,51.525],[8.869,51.533],[8.914,51.506],[8.869,51.482],[8.919,51.406],[8.673,51.386],[8.538,51.285],[8.539,51.269],[8.592,51.234],[8.703,51.261],[8.732,51.206],[8.729,51.179],[8.677,51.144],[8.675,51.119],[8.651,51.108],[8.548,51.117],[8.491,51.094],[8.48,51.077],[8.497,51.06],[8.483,51.039],[8.507,51.023],[8.452,50.971],[8.487,50.948],[8.572,50.935],[8.646,50.949],[8.682,50.977],[8.723,50.953],[8.755,50.958],[8.779,50.944],[8.928,50.946],[9.017,50.891],[9.092,50.897],[9.089,50.882],[9.133,50.827],[9.241,50.803],[9.263,50.784],[9.302,50.791],[9.346,50.784],[9.383,50.76],[9.414,50.767],[9.503,50.721],[9.583,50.748],[9.59,50.706],[9.615,50.673],[9.599,50.651],[9.61,50.63],[9.594,50.621],[9.549,50.653],[9.515,50.651],[9.489,50.676],[9.45,50.669],[9.454,50.624],[9.475,50.61],[9.461,50.593],[9.463,50.564],[9.445,50.556],[9.406,50.477],[9.462,50.433],[9.471,50.405],[9.53,50.376],[9.561,50.368],[9.608,50.377],[9.694,50.346],[9.758,50.353],[9.78,50.405],[9.861,50.384],[9.969,50.412],[10.053,50.476],[10.062,50.528],[10.083,50.557],[10.067,50.575],[10.067,50.607],[10.103,50.618],[10.089,50.662],[10.061,50.685],[10.003,50.69],[9.932,50.672],[9.941,50.642],[9.906,50.654],[9.903,50.667],[9.944,50.692],[9.937,50.706],[9.962,50.736],[9.979,50.815],[10.039,50.822],[10.059,50.843],[10.054,50.863],[10.079,50.878],[10.069,50.907],[10.038,50.925],[10.086,50.945],[10.046,50.985],[10.049,50.999],[10.183,50.983],[10.223,50.999],[10.236,51.023],[10.214,51.05],[10.174,51.064],[10.17,51.083],[10.229,51.112],[10.229,51.158],[10.252,51.172],[10.255,51.194],[10.099,51.239],[10.074,51.286],[9.996,51.299],[9.971,51.316],[9.946,51.365],[10.028,51.406],[10.162,51.418],[10.206,51.458],[10.314,51.484],[10.322,51.501],[10.355,51.509],[10.386,51.536],[10.401,51.573],[10.465,51.569],[10.515,51.54],[10.608,51.561],[10.638,51.546],[10.674,51.55],[10.688,51.579],[10.659,51.595],[10.668,51.613],[10.723,51.644],[10.689,51.675],[10.689,51.715],[10.646,51.765],[10.605,51.781],[10.599,51.811],[10.609,51.841],[10.671,51.886],[10.668,51.914],[10.639,51.936],[10.673,51.957],[10.6,51.994],[10.64,51.997],[10.69,52.035],[10.974,52.044],[10.995,52.071],[10.988,52.094],[11.058,52.123],[11.082,52.15],[11.078,52.18],[11.034,52.188],[11.108,52.23],[11.071,52.275],[11.042,52.287],[11.059,52.308],[11.036,52.331],[11.087,52.348],[11.096,52.376],[10.957,52.467],[10.966,52.484],[11.031,52.495],[10.965,52.556],[10.999,52.627],[10.972,52.64],[10.925,52.636],[10.848,52.724],[10.816,52.73],[10.812,52.753],[10.778,52.787],[10.781,52.814],[10.813,52.835],[10.952,52.841],[11.003,52.873],[11.012,52.896],[11.03,52.898],[11.11,52.882],[11.2,52.886],[11.24,52.865],[11.324,52.866],[11.52,52.931],[11.526,52.99],[11.572,52.989],[11.62,53.033],[11.61,53.047],[11.555,53.065],[11.517,53.06],[11.456,53.091],[11.348,53.068],[11.291,53.106],[11.288,53.126],[11.263,53.146],[11.207,53.157],[11.218,53.175],[11.209,53.192],[11.082,53.241],[10.999,53.345],[10.918,53.362],[10.814,53.327],[10.71,53.383],[10.58,53.374],[10.508,53.387],[10.383,53.438],[10.342,53.439],[10.344,53.457],[10.294,53.471],[10.226,53.53],[10.189,53.528],[10.178,53.57],[10.22,53.577],[10.218,53.61],[10.245,53.633],[10.177,53.682],[10.216,53.731],[10.183,53.75],[10.067,53.731],[10.046,53.699],[9.988,53.693],[9.968,53.664],[9.894,53.664],[9.821,53.603],[9.787,53.641],[9.758,53.642],[9.709,53.572],[9.567,53.626],[9.522,53.703],[9.45,53.741],[9.379,53.824],[9.303,53.874],[9.202,53.893],[8.993,53.887],[8.827,53.918],[8.781,53.976],[8.503,54.042],[7.861,54.036],[7.528,53.974],[6.767,53.884],[6.446,53.801],[6.368,53.764],[6.323,53.723]]]} + } + }, + "options": { + "endpoint": "https://fahrplaner.vsninfo.de/hafas/mgate.exe", + "client": { + "type": "IPA", + "id": "VSN", + "name": "vsn", + "v": "5030100", + "os": "iOS 13.3" + }, + "ver": "1.24", + "auth": { + "type": "AID", + "aid": "Mpf5UPC0DmzV8jkg" + }, + "lang": "de", + "products": [ + { + "id": "nationalExpress", + "bitmasks": [1], + "name": "InterCityExpress" + }, + { + "id": "national", + "bitmasks": [2], + "name": "Fernzug" + }, + { + "id": "regionalExpress", + "bitmasks": [4], + "name": "RegionalExpress & InterRegio" + }, + { + "id": "regional", + "bitmasks": [8], + "name": "Nahverhehr" + }, + { + "id": "suburban", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "ferry", + "bitmasks": [64], + "name": "Schiff" + }, + { + "id": "subway", + "bitmasks": [128], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "Straßen-/Stadtbahn" + }, + { + "id": "anrufSammelTaxi", + "bitmasks": [512], + "name": "Anruf-Sammel-Taxi" + } + ] + } +} From c09df28a087583e7a23c053a8d78a0438305b141 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:20:00 +0100 Subject: [PATCH 29/35] DE: add VOS --- data/de/vos-hafas-mgate.json | 85 ++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 data/de/vos-hafas-mgate.json diff --git a/data/de/vos-hafas-mgate.json b/data/de/vos-hafas-mgate.json new file mode 100644 index 0000000..0148e7c --- /dev/null +++ b/data/de/vos-hafas-mgate.json @@ -0,0 +1,85 @@ +{ + "name": "Verkehrsgemeinschaft Osnabrück (VOS)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Verkehrsgemeinschaft Osnabrück (VOS)", + "homepage": "https://vos.info/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[7.5971,52.4971],[7.6054,52.4692],[7.6819,52.4514],[7.7092,52.3974],[7.8054,52.367],[7.8928,52.3745],[7.9338,52.3576],[7.942,52.3332],[7.9722,52.3091],[7.9255,52.3036],[7.9244,52.2845],[7.9476,52.2724],[7.9176,52.2643],[7.9192,52.2282],[7.8926,52.2062],[7.9071,52.1824],[7.9299,52.1729],[8.0083,52.1702],[7.99,52.1545],[7.9998,52.1199],[7.9685,52.1201],[7.8795,52.0873],[7.9136,52.0478],[7.9822,52.0314],[8.0304,52.0609],[8.0967,52.0526],[8.1384,52.0686],[8.1959,52.0683],[8.2175,52.0956],[8.2772,52.1267],[8.3966,52.1043],[8.4175,52.1133],[8.4202,52.136],[8.4855,52.1561],[8.5244,52.1841],[8.4535,52.2134],[8.4758,52.2473],[8.4663,52.2931],[8.4781,52.3156],[8.4482,52.3638],[8.3263,52.405],[8.3289,52.4275],[8.3045,52.4558],[8.319,52.4936],[8.3129,52.5027],[8.1988,52.484],[8.1563,52.4388],[8.1328,52.449],[8.0658,52.4498],[8.0691,52.5038],[8.0238,52.528],[8.0433,52.5302],[8.0485,52.5851],[8.0777,52.5945],[8.0948,52.6238],[8.0782,52.6478],[8.0216,52.6879],[7.9743,52.7011],[7.9188,52.6852],[7.8545,52.714],[7.7993,52.7042],[7.7618,52.6818],[7.6829,52.6825],[7.6857,52.6661],[7.6003,52.6186],[7.6128,52.5879],[7.612,52.5369],[7.5971,52.4971]]]} + } + }, + "options": { + "auth": { + "type": "AID", + "aid": "PnYowCQP7Tp1V" + }, + "client": { + "id": "SWO", + "type": "WEB", + "name": "webapp", + "l": "vs_swo" + }, + "endpoint": "https://fahrplan.vos.info/bin/mgate.exe", + "products": [ + { + "id": "ice", + "bitmasks": [1], + "name": "ICE" + }, + { + "id": "national-train", + "bitmasks": [2], + "name": "IC/EC" + }, + { + "id": "express-train", + "bitmasks": [4], + "name": "IR, sonstiger Schnellzug" + }, + { + "id": "local-train", + "bitmasks": [8], + "name": "Nahverkehr" + }, + { + "id": "suburban-train", + "bitmasks": [16], + "name": "S-Bahn" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "ferry", + "bitmasks": [64], + "name": "Schiff" + }, + { + "id": "subway", + "bitmasks": [128], + "name": "U-Bahn" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "Tram" + }, + { + "id": "on-call", + "bitmasks": [512], + "name": "Anrufverkehr" + } + ] + } +} From eba0a31a2695a5f8d3ba298319d2f6d546666b1b Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:20:07 +0100 Subject: [PATCH 30/35] DE: add VRN --- data/de/vrn-hafas-mgate.json | 73 ++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 data/de/vrn-hafas-mgate.json diff --git a/data/de/vrn-hafas-mgate.json b/data/de/vrn-hafas-mgate.json new file mode 100644 index 0000000..8450cf0 --- /dev/null +++ b/data/de/vrn-hafas-mgate.json @@ -0,0 +1,73 @@ +{ + "name": "Verkehrsverbund Rhein-Neckar (VRN)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Verkehrsverbund Rhein-Neckar GmbH", + "homepage": "https://www.vrn.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[7.2391,49.4459],[7.2514,49.4232],[7.2845,49.413],[7.285,49.3864],[7.39,49.3578],[7.3847,49.3488],[7.3948,49.3402],[7.3712,49.321],[7.3773,49.2921],[7.3298,49.2813],[7.3367,49.2708],[7.3209,49.2549],[7.3031,49.2603],[7.282,49.2373],[7.2958,49.2208],[7.2893,49.2036],[7.3291,49.1824],[7.3462,49.1593],[7.3652,49.1542],[7.3719,49.1686],[7.429,49.1773],[7.4347,49.16],[7.4858,49.1651],[7.4947,49.1507],[7.4828,49.1353],[7.5104,49.1178],[7.5233,49.0943],[7.5613,49.076],[7.6241,49.0695],[7.6248,49.0536],[7.6357,49.049],[7.7603,49.041],[7.7985,49.0596],[7.8672,49.0285],[7.8894,49.0432],[7.9196,49.0367],[7.9361,49.051],[7.9708,49.0231],[8.0465,49.0094],[8.0656,48.9949],[8.0757,48.9995],[8.0833,49.0331],[8.0762,49.0642],[8.0625,49.0681],[8.1081,49.0826],[8.1085,49.0948],[8.1271,49.1017],[8.1245,49.1256],[8.1631,49.1286],[8.2105,49.1044],[8.2315,49.1196],[8.2698,49.1234],[8.2625,49.1747],[8.2235,49.1764],[8.2237,49.207],[8.2439,49.2088],[8.24,49.2567],[8.2569,49.2606],[8.2557,49.2721],[8.3239,49.2899],[8.3606,49.277],[8.3919,49.246],[8.4167,49.246],[8.4889,49.2843],[8.5226,49.2617],[8.5517,49.2639],[8.6127,49.2365],[8.7002,49.2223],[8.7204,49.2311],[8.741,49.2208],[8.7489,49.2018],[8.8089,49.1943],[8.8737,49.1699],[8.9026,49.1801],[8.8954,49.1983],[8.9602,49.209],[9.0098,49.2386],[9.0487,49.2822],[9.1528,49.2697],[9.1656,49.3195],[9.194,49.3227],[9.2382,49.2936],[9.2556,49.2947],[9.2743,49.3255],[9.2927,49.327],[9.3005,49.3448],[9.3213,49.355],[9.3166,49.3741],[9.3297,49.3825],[9.3514,49.3627],[9.4176,49.3536],[9.4488,49.3615],[9.4549,49.3891],[9.5064,49.3709],[9.5738,49.372],[9.6007,49.3911],[9.5801,49.4145],[9.6167,49.4241],[9.6705,49.4024],[9.703,49.4124],[9.7159,49.3929],[9.7763,49.3891],[9.7961,49.4032],[9.8069,49.3852],[9.8334,49.383],[9.8406,49.365],[9.9195,49.3682],[9.935,49.3471],[9.978,49.3701],[10.0436,49.3648],[10.0424,49.3788],[10.053,49.3846],[10.1013,49.3913],[10.1099,49.3808],[10.1452,49.3791],[10.1686,49.3949],[10.1387,49.4406],[10.1039,49.4503],[10.1289,49.463],[10.1085,49.4918],[10.1282,49.5113],[10.087,49.5188],[10.1003,49.5321],[10.0873,49.5474],[10.059,49.5493],[10.0328,49.5326],[10.0453,49.5112],[10.0235,49.5073],[10.011,49.4877],[9.952,49.4856],[9.9222,49.494],[9.9346,49.5494],[9.929,49.5648],[9.9073,49.5669],[9.9164,49.5894],[9.8704,49.5817],[9.8533,49.5506],[9.8261,49.5584],[9.8552,49.5759],[9.8503,49.5931],[9.8797,49.6106],[9.8618,49.6434],[9.8317,49.6654],[9.8481,49.6815],[9.839,49.7042],[9.8027,49.7238],[9.8041,49.7346],[9.7483,49.7135],[9.7352,49.6939],[9.7115,49.7315],[9.6719,49.7193],[9.6674,49.6956],[9.6396,49.6977],[9.6338,49.7057],[9.6538,49.7385],[9.6456,49.7542],[9.6577,49.7655],[9.6518,49.7953],[9.5648,49.787],[9.5502,49.7698],[9.5228,49.7654],[9.5181,49.785],[9.5009,49.7933],[9.4757,49.7909],[9.4574,49.7739],[9.4238,49.7941],[9.3892,49.7752],[9.3697,49.7837],[9.3121,49.7719],[9.3065,49.76],[9.3166,49.7455],[9.2899,49.7366],[9.3533,49.7269],[9.3372,49.7169],[9.356,49.6998],[9.3862,49.7025],[9.3942,49.7257],[9.412,49.7085],[9.4133,49.6917],[9.39,49.6716],[9.4103,49.6562],[9.3848,49.6487],[9.366,49.6628],[9.3388,49.6489],[9.3003,49.6587],[9.2656,49.6368],[9.2743,49.6162],[9.2355,49.5855],[9.107,49.5836],[9.0887,49.5654],[9.0701,49.5789],[9.0639,49.5639],[9.0776,49.5415],[9.1085,49.5315],[9.1161,49.5173],[9.1032,49.5301],[9.0619,49.5345],[9.0352,49.504],[8.986,49.5147],[8.9476,49.5091],[8.9496,49.4961],[8.9308,49.4812],[8.9073,49.4901],[8.9185,49.5239],[8.8996,49.5327],[8.8899,49.5585],[8.8886,49.6015],[8.898,49.6061],[8.8723,49.6445],[8.8894,49.6479],[8.8931,49.6593],[8.8418,49.6658],[8.8032,49.6885],[8.8142,49.7073],[8.7947,49.7204],[8.8022,49.7417],[8.7408,49.7277],[8.7006,49.7592],[8.6744,49.7467],[8.6728,49.7312],[8.5953,49.7388],[8.4949,49.7276],[8.4576,49.7353],[8.4848,49.7566],[8.4826,49.7694],[8.4272,49.7719],[8.4001,49.808],[8.3536,49.7869],[8.3092,49.7874],[8.2834,49.7569],[8.2418,49.7744],[8.2387,49.8253],[8.201,49.8272],[8.1987,49.8391],[8.2214,49.8549],[8.1768,49.9042],[8.0455,49.8887],[8.0484,49.8687],[7.9217,49.8137],[7.9247,49.7731],[7.909,49.7603],[7.8616,49.7704],[7.7829,49.7585],[7.7627,49.7681],[7.751,49.7596],[7.7581,49.7462],[7.7176,49.722],[7.7264,49.6982],[7.7146,49.6736],[7.675,49.6445],[7.6608,49.6431],[7.6829,49.6674],[7.672,49.6758],[7.6791,49.6885],[7.66,49.706],[7.6381,49.6907],[7.6001,49.6859],[7.5663,49.691],[7.535,49.7184],[7.5152,49.7086],[7.5163,49.6828],[7.446,49.6763],[7.4196,49.6525],[7.4366,49.6155],[7.434,49.5966],[7.3596,49.5998],[7.3125,49.5611],[7.2699,49.5505],[7.2702,49.5352],[7.2936,49.5268],[7.2794,49.5184],[7.2714,49.4834],[7.2966,49.4732],[7.2391,49.4459]],[[9.0389,49.2904],[9.0418,49.2898],[9.0419,49.2893],[9.0389,49.2904]],[[9.5602,49.7522],[9.562,49.7498],[9.5616,49.7489],[9.5605,49.7499],[9.5602,49.7522]]]} + } + }, + "options": { + "endpoint": "https://vrn.hafas.de/bin/mgate.exe", + "client": { + "type": "IPH", + "id": "DB-REGIO-VRN", + "name": "VRN", + "v": "6000400" + }, + "ext": "DB.R19.04.a", + "ver": "1.24", + "auth": { + "type": "AID", + "aid": "p091VRNZz79KtUz5" + }, + "products": [ + { + "id": "regional-train", + "bitmasks": [8], + "name": "regional train" + }, + { + "id": "urban-train", + "bitmasks": [16], + "name": "urban train" + }, + { + "id": "subway", + "bitmasks": [128], + "name": "subway" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "tram" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "dial-a-ride", + "bitmasks": [512], + "name": "dial-a-ride" + }, + { + "id": "long-distance-train", + "bitmasks": [1, 2, 4], + "name": "long-distance train" + } + ] + } +} From 5655e3e142dae8dc620d3c521f021f515a487e58 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:19:52 +0100 Subject: [PATCH 31/35] DE: add SaarVV --- data/de/saarvv-hafas-mgate.json | 75 +++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 data/de/saarvv-hafas-mgate.json diff --git a/data/de/saarvv-hafas-mgate.json b/data/de/saarvv-hafas-mgate.json new file mode 100644 index 0000000..b671571 --- /dev/null +++ b/data/de/saarvv-hafas-mgate.json @@ -0,0 +1,75 @@ +{ + "name": "Saarländischer Verkehrsverbund (SaarVV)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "de", + "en", + "fr" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "Saarländische Nahverkehrs-Service GmbH (SNS)", + "homepage": "https://saarvv.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["DE-SL"] + } + }, + "options": { + "endpoint": "https://saarfahrplan.de/bin/mgate.exe", + "client": { + "type": "AND", + "id": "ZPS-SAAR", + "v": 1000070, + "name": "Saarfahrplan", + "os": "Android 9" + }, + "ver": "1.21", + "auth": { + "type": "AID", + "aid": "51XfsVqgbdA6oXzHrx75jhlocRg6Xe" + }, + "lang": "de", + "products": [ + { + "id": "regional-train", + "bitmasks": [8], + "name": "regional train" + }, + { + "id": "urban-train", + "bitmasks": [16], + "name": "urban train" + }, + { + "id": "subway", + "bitmasks": [128], + "name": "subway" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "tram" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "dial-a-ride", + "bitmasks": [512], + "name": "dial-a-ride" + }, + { + "id": "long-distance-train", + "bitmasks": [1, 2, 4], + "name": "long-distance train" + } + ] + } +} From dd3c7d05b1eb9d8250a1a43c45c1106d4a0f6134 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:16:11 +0100 Subject: [PATCH 32/35] US: add CMTA --- data/us/cmta-hafas-mgate.json | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 data/us/cmta-hafas-mgate.json diff --git a/data/us/cmta-hafas-mgate.json b/data/us/cmta-hafas-mgate.json new file mode 100644 index 0000000..2f34a6b --- /dev/null +++ b/data/us/cmta-hafas-mgate.json @@ -0,0 +1,51 @@ +{ + "name": "Capital Metro Austin Public Transport (CMTA)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "en" + ], + "timezone": "America/Chicago", + "attribution": { + "name": "Capital Metropolitan Transportation Authority", + "homepage": "https://www.capmetro.org/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[-98.1782,30.3559],[-97.7112,30.0193],[-97.6532,30.0651],[-97.3177,29.7824],[-97.0193,30.0507],[-97.0778,30.2622],[-97.1961,30.3413],[-97.3222,30.4018],[-97.15,30.457],[-97.2669,30.7382],[-97.6237,30.8747],[-97.8285,30.9153],[-97.8709,30.8782],[-97.9675,30.7874],[-98.1275,30.4872],[-98.1014,30.4902],[-98.1023,30.4687],[-98.1782,30.3559]]]} + } + }, + "options": { + "endpoint": "https://capmetro.hafas.cloud/bin/mgate.exe", + "client": { + "type": "IPH", + "id": "CMTA", + "v": "2", + "name": "CapMetro" + }, + "ver": "1.13", + "auth": { + "type": "AID", + "aid": "ioslaskdcndrjcmlsd" + }, + "products": [ + { + "id": "bus", + "bitmasks": [32], + "name": "MetroBus" + }, + { + "id": "rapid", + "bitmasks": [4096], + "name": "MetroRapid" + }, + { + "id": "rail", + "bitmasks": [8], + "name": "MetroRail" + } + ] + } +} From 790d548d351674d352f03e247344d0d69e53c10b Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 14:16:07 +0100 Subject: [PATCH 33/35] US: add BART --- data/us/bart-hafas-mgate.json | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 data/us/bart-hafas-mgate.json diff --git a/data/us/bart-hafas-mgate.json b/data/us/bart-hafas-mgate.json new file mode 100644 index 0000000..7051d55 --- /dev/null +++ b/data/us/bart-hafas-mgate.json @@ -0,0 +1,66 @@ +{ + "name": "Bay Area Rapid Transit (BART)", + "type": { + "hafasMgate": true + }, + "supportedLanguages": [ + "en", + "es" + ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "San Francisco Bay Area Rapid Transit District", + "homepage": "https://bart.gov/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "area": {"type":"Polygon","coordinates":[[[-122.4375,38.0039],[-122.4121,37.9011],[-122.3507,37.8924],[-122.3333,37.8549],[-122.4705,37.8195],[-122.5283,37.7907],[-122.5047,37.6603],[-122.4109,37.5689],[-122.3262,37.5935],[-122.3691,37.6759],[-122.3452,37.7108],[-122.3503,37.7482],[-122.3368,37.7686],[-122.2412,37.6921],[-122.2018,37.6853],[-121.9058,37.2821],[-121.7902,37.3224],[-121.8428,37.4048],[-121.9187,37.56],[-122.0138,37.615],[-122.0441,37.6639],[-121.8919,37.681],[-121.8938,37.725],[-122.0704,37.7156],[-122.1051,37.7329],[-122.2038,37.8273],[-122.0528,37.8726],[-122.0152,37.9936],[-121.7662,37.9798],[-121.7389,38.0257],[-121.9899,38.0612],[-122.0679,38.0557],[-122.1284,37.9264],[-122.2412,37.9061],[-122.2903,38.011],[-122.4375,38.0039]]]} + } + }, + "options": { + "auth": { + "type": "AID", + "aid": "kEwHkFUCIL500dym" + }, + "client": { + "id": "BART", + "type": "WEB", + "name": "webapp", + "l": "vs_webapp" + }, + "endpoint": "https://planner.bart.gov/bin/mgate.exe", + "products": [ + { + "id": "bart", + "bitmasks": [128], + "name": "BART" + }, + { + "id": "regional-train", + "bitmasks": [8], + "name": "regional trains (Caltrain, Capitol Corridor, ACE)" + }, + { + "id": "bus", + "bitmasks": [32], + "name": "Bus" + }, + { + "id": "ferry", + "bitmasks": [64], + "name": "Ferry" + }, + { + "id": "tram", + "bitmasks": [256], + "name": "Tram" + }, + { + "id": "cable-car", + "bitmasks": [4], + "name": "cable car" + } + ] + } +} From fd87e89a43950c9192ed042cd60089a5657ae22e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 Feb 2021 16:24:11 +0100 Subject: [PATCH 34/35] Allow coverage area to be specified as GeoJSON MultiPolygon Previously, only a single Polygon was accepted. --- readme.md | 4 ++-- schema.json | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index aef7f63..c3b4227 100644 --- a/readme.md +++ b/readme.md @@ -91,13 +91,13 @@ At least one coverage category must be provided. ```js { - "area": { /* GeoJSON polygon */ }, + "area": { /* GeoJSON polygon or MultiPolygon */ }, "region": [ /* ISO-3166-1/2 codes */ ] } ``` The following properties are defined for each coverage category: -* `area`: a GeoJSON polygon defining the geographic area. This can be reasonably coarse, meter-precision for example is neither necessary nor practically meaningful. +* `area`: a GeoJSON Polygon or MultiPolygon defining the geographic area. This can be reasonably coarse; meter-precision is neither necessary nor practically meaningful. * `region`: an array of ISO-3166-1 alpha 2 country codes, or ISO-3166-2 region codes covered. Both fields should be provided. diff --git a/schema.json b/schema.json index c9e3c25..93478d9 100644 --- a/schema.json +++ b/schema.json @@ -72,14 +72,17 @@ "additionalProperties": false, "properties": { "area": { - "$ref": "#/definitions/coverage_geojson" + "oneOf": [ + { "$ref": "#/definitions/coverage_geojson_polygon" }, + { "$ref": "#/definitions/coverage_geojson_multipolygon" } + ] }, "region": { "$ref": "#/definitions/coverage_region" } } }, - "coverage_geojson": { + "coverage_geojson_polygon": { "type": "object", "required": [ "type", @@ -115,6 +118,45 @@ } } }, + "coverage_geojson_multipolygon": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPolygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, "coverage_region": { "type": "array", "items": { From 63e3833a37195bc77c9bd014bf855904be43702c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 Feb 2021 16:27:00 +0100 Subject: [PATCH 35/35] hafas-query: copy timezone, attribution, and coverage from hafas-mgate It'd be odd for these two endpoints to have different attributes --- data/de/db-hafas-query.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/data/de/db-hafas-query.json b/data/de/db-hafas-query.json index 8521c49..2e339c4 100644 --- a/data/de/db-hafas-query.json +++ b/data/de/db-hafas-query.json @@ -9,6 +9,23 @@ "fr", "es" ], + "timezone": "Europe/Berlin", + "attribution": { + "name": "DB Fernverkehr AG", + "homepage": "https://www.bahn.de/", + "isProprietary": true + }, + "coverage": { + "realtimeCoverage": { + "region": ["DE", "LU", "CH", "LI", "AT"] + }, + "regularCoverage": { + "region": ["PL", "CZ", "SK", "HU", "SI", "RO", "BE"] + }, + "anyCoverage": { + "region": ["UA", "HR", "BG", "IT", "FR", "ES", "PT", "GB", "DK", "SE"] + } + }, "options": { "endpoint": "https://reiseauskunft.bahn.de/bin/", "lineModeMap": {