How to use the hafas-client/parse.stopover function in hafas-client

To help you get started, we’ve selected a few hafas-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github derhuerst / vbb-hafas / lib / parse.js View on Github external
const journeyPart = (tz, s, ln, r) => (d) => {
	const result = {
		id: d.jid,
		line: ln[parseInt(d.prodX)],
		direction: d.dirTxt, // todo: parse this
		// todo: isPartCncl, isRchbl, poly

	if (d.stopL) result.passed =, s, ln, r, d))
	if (Array.isArray(d.remL)) d.remL.forEach(parse.applyRemark(s, ln, r))

	return result