public-transport/hafas-client

journeys(): parse scoring

Open

#270 opened on Sep 12, 2022

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

Repository metrics

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

Description

sncb

from sncb-journey-with-chki.json

[
	{
		"name": "Alle Verbindungen",
		"icoX": 3,
		"grpid": "cl_all",
		"conScoringL": [
			{
				"type": "DT",
				"conScoreL": [
					{
						"score": 7952130986383770000,
						"conRefL": [
							0
						]
					},
					{
						"score": 7951884695785439000,
						"conRefL": [
							1
						]
					},
					{
						"score": 7951339338020160000,
						"conRefL": [
							2
						]
					},
					{
						"score": 7948190336716112000,
						"conRefL": [
							3
						]
					},
					{
						"score": 7947117213369500000,
						"conRefL": [
							4
						]
					},
					{
						"score": 7945797799407780000,
						"conRefL": [
							5
						]
					}
				],
				"name": "Abfahrt"
			},
			{
				"type": "AT",
				"conScoreL": [
					{
						"score": 7951660395407081000,
						"conRefL": [
							0
						]
					},
					{
						"score": 7951466881366884000,
						"conRefL": [
							1
						]
					},
					{
						"score": 7950939115787649000,
						"conRefL": [
							2
						]
					},
					{
						"score": 7947772522297557000,
						"conRefL": [
							3
						]
					},
					{
						"score": 7946716991136989000,
						"conRefL": [
							4
						]
					},
					{
						"score": 7945327208431092000,
						"conRefL": [
							5
						]
					}
				],
				"name": "Ankunft"
			},
			{
				"type": "TI",
				"conScoreL": [
					{
						"score": 9222634113009189000,
						"conRefL": [
							0
						]
					},
					{
						"score": 9222686889537962000,
						"conRefL": [
							1
						]
					},
					{
						"score": 9222704481658995000,
						"conRefL": [
							2
						]
					},
					{
						"score": 9222686889097560000,
						"conRefL": [
							3
						]
					},
					{
						"score": 9222704481155678000,
						"conRefL": [
							4
						]
					},
					{
						"score": 9222634112254214000,
						"conRefL": [
							5
						]
					}
				],
				"name": "Dauer"
			}
		],
		"initScoringType": "DT",
		"requests": [
			{
				"id": "RQ_CLIENT",
				"autosend": true
			}
		],
		"scrollable": true
	}
]

Contributor guide