public-transport/hafas-client

understand & parse HIM messages from DB Netz endpoint

Open

#104 opened on Feb 23, 2019

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (60 forks)github user discovery
help wanted

Repository metrics

Stars
 (353 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

{
	"common": {
		"remL": [
			{
				"type": "M",
				"code": "isFreetext",
				"txtN": "false"
			},
			{
				"type": "M",
				"code": "dbnetz_subcategory1stLevel",
				"txtN": "Gefährliches Ereignis"
			},
			{
				"type": "M",
				"code": "dbnetz_effects",
				"txtN": "[{"products":"P00000001111000","effectId":10,"texts":{"DE":{"lang":"DE","trafficTypeCode":"SGV","effect":"Umleitung","additionalEffects":[]}}},{"products":"P00011000000000","effectId":7,"texts":{"DE":{"lang":"DE","trafficTypeCode":"SPNV","effect":"Sonstiges","additionalEffects":[]}}}]"
			},
			{
				"type": "M",
				"code": "dbnetz_subcategory2ndLevel",
				"txtN": "Zugentgleisung"
			},
			{
				"type": "M",
				"code": "dbnetz_category",
				"txtN": "Sammelmeldung"
			},
			{
				"type": "M",
				"code": "dbnetz_prognosis",
				"txtN": "true"
			}
		],
		"himL": [
			{
				"hid": "HIM_FREETEXT_355514",
				"act": true,
				"head": "Sammelmeldung: Gefährliches Ereignis  - Zugentgleisung",
				"text": "Zustand nach Güterzugentgleisung im Knoten Augsburg vom 15.02.:<br />-Strecke Ulm - Augsburg Hbf uneingeschränkt befahrbar;<br />-Strecke Ulm - Augsburg Rbf eingleisig befahrbar (Zugfahrten von Augsburg Rbf bis Westheim/Schwab auf dem Gegengleis);<br />-Strecke Donauwörth - Augsburg Hbf eingleisig befahrbar (Zugfahrten von Augsburg Hbf bis Gersthofen im Gegengleis), SPNV mit besonderem Betriebsprogramm;<br />-Strecke Donauwörth - Augsburg Rbf nicht befahrbar, SGV wird über Ingolstadt umgeleitet",
				"icoX": 0,
				"prio": 1,
				"prod": 24,
				"lModDate": "20190220",
				"lModTime": "095824",
				"sDate": "20190215",
				"sTime": "014000",
				"eDate": "20190225",
				"eTime": "120000",
				"cat": 0,
				"pubChL": [
					{
						"name": "1",
						"fDate": "20190219",
						"fTime": "000000",
						"tDate": "20190225",
						"tTime": "120000"
					}
				],
				"rRefL": [
					0,
					1,
					2,
					3,
					4,
					5
				],
				"eventRefL": [
					0
				],
				"impactL": [
					{
						"products": 1920,
						"prodCode": "SGV",
						"impact": "Umleitung",
						"icoX": 1,
						"prio": 1
					},
					{
						"products": 24,
						"prodCode": "SPNV",
						"impact": "Sonstiges",
						"icoX": 0,
						"prio": 1
					}
				]
			}
		],
		"icoL": [
			{
				"res": "HIM10216"
			},
			{
				"res": "HIM10005"
			}
		],
		"himMsgEventL": [
			{
				"fDate": "20190219",
				"fTime": "000000",
				"tDate": "20190225",
				"tTime": "120000"
			}
		]
	},
	"msgRefL": [
		0
	],
	"lastUpd": "2019-02-22, 09:51"
}

Contributor guide