mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-04 01:56:33 +02:00 
			
		
		
		
	{arrival,departure}.station -> .stop 💥, adapt docs 📝
This commit is contained in:
		
							parent
							
								
									0c1cec01c2
								
							
						
					
					
						commit
						12e61bea0a
					
				
					 3 changed files with 6 additions and 24 deletions
				
			
		| 
						 | 
					@ -62,7 +62,7 @@ The response may look like this:
 | 
				
			||||||
[ {
 | 
					[ {
 | 
				
			||||||
	tripId: '1|31431|28|86|17122017',
 | 
						tripId: '1|31431|28|86|17122017',
 | 
				
			||||||
	trip: 31431,
 | 
						trip: 31431,
 | 
				
			||||||
	station: {
 | 
						stop: {
 | 
				
			||||||
		type: 'station',
 | 
							type: 'station',
 | 
				
			||||||
		id: '900000024101',
 | 
							id: '900000024101',
 | 
				
			||||||
		name: 'S Charlottenburg',
 | 
							name: 'S Charlottenburg',
 | 
				
			||||||
| 
						 | 
					@ -129,25 +129,7 @@ The response may look like this:
 | 
				
			||||||
}, {
 | 
					}, {
 | 
				
			||||||
	tripId: '1|28671|4|86|17122017',
 | 
						tripId: '1|28671|4|86|17122017',
 | 
				
			||||||
	trip: 28671,
 | 
						trip: 28671,
 | 
				
			||||||
	station: {
 | 
						stop: { /* … */ },
 | 
				
			||||||
		type: 'station',
 | 
					 | 
				
			||||||
		id: '900000024202',
 | 
					 | 
				
			||||||
		name: 'U Wilmersdorfer Str.',
 | 
					 | 
				
			||||||
		location: {
 | 
					 | 
				
			||||||
			type: 'location',
 | 
					 | 
				
			||||||
			latitude: 52.506415,
 | 
					 | 
				
			||||||
			longitude: 13.306777
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
		products: {
 | 
					 | 
				
			||||||
			suburban: false,
 | 
					 | 
				
			||||||
			subway: true,
 | 
					 | 
				
			||||||
			tram: false,
 | 
					 | 
				
			||||||
			bus: false,
 | 
					 | 
				
			||||||
			ferry: false,
 | 
					 | 
				
			||||||
			express: false,
 | 
					 | 
				
			||||||
			regional: false
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	when: '2017-12-17T19:35:00.000+01:00',
 | 
						when: '2017-12-17T19:35:00.000+01:00',
 | 
				
			||||||
	delay: 0,
 | 
						delay: 0,
 | 
				
			||||||
	line: {
 | 
						line: {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,7 +68,7 @@ The response may look like this:
 | 
				
			||||||
	direction: 'S Flughafen Berlin-Schönefeld',
 | 
						direction: 'S Flughafen Berlin-Schönefeld',
 | 
				
			||||||
	trip: 31463,
 | 
						trip: 31463,
 | 
				
			||||||
	nextStops: [ {
 | 
						nextStops: [ {
 | 
				
			||||||
		station: {
 | 
							stop: {
 | 
				
			||||||
			type: 'stop',
 | 
								type: 'stop',
 | 
				
			||||||
			id: '900000029101',
 | 
								id: '900000029101',
 | 
				
			||||||
			name: 'S Spandau',
 | 
								name: 'S Spandau',
 | 
				
			||||||
| 
						 | 
					@ -140,13 +140,13 @@ The response may look like this:
 | 
				
			||||||
	direction: 'Heinersdorf',
 | 
						direction: 'Heinersdorf',
 | 
				
			||||||
	trip: 26321,
 | 
						trip: 26321,
 | 
				
			||||||
	nextStops: [ {
 | 
						nextStops: [ {
 | 
				
			||||||
		station: { /* S+U Alexanderplatz/Dircksenstr. */ },
 | 
							stop: { /* S+U Alexanderplatz/Dircksenstr. */ },
 | 
				
			||||||
		arrival: null,
 | 
							arrival: null,
 | 
				
			||||||
		arrivalDelay: null,
 | 
							arrivalDelay: null,
 | 
				
			||||||
		departure: '2017-12-17T19:52:00.000+01:00',
 | 
							departure: '2017-12-17T19:52:00.000+01:00',
 | 
				
			||||||
		departureDelay: null
 | 
							departureDelay: null
 | 
				
			||||||
	}, {
 | 
						}, {
 | 
				
			||||||
		station: { /* Memhardstr. */ },
 | 
							stop: { /* Memhardstr. */ },
 | 
				
			||||||
		arrival: '2017-12-17T19:54:00.000+01:00',
 | 
							arrival: '2017-12-17T19:54:00.000+01:00',
 | 
				
			||||||
		arrivalDelay: null,
 | 
							arrivalDelay: null,
 | 
				
			||||||
		departure: '2017-12-17T19:54:00.000+01:00',
 | 
							departure: '2017-12-17T19:54:00.000+01:00',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,7 @@ const createParseArrOrDep = (profile, opt, data, prefix) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		const res = {
 | 
							const res = {
 | 
				
			||||||
			tripId: d.jid,
 | 
								tripId: d.jid,
 | 
				
			||||||
			station: locations[parseInt(d.stbStop.locX)] || null,
 | 
								stop: locations[parseInt(d.stbStop.locX)] || null,
 | 
				
			||||||
			when: when.toISO(),
 | 
								when: when.toISO(),
 | 
				
			||||||
			direction: profile.parseStationName(d.dirTxt),
 | 
								direction: profile.parseStationName(d.dirTxt),
 | 
				
			||||||
			line: lines[parseInt(d.prodX)] || null,
 | 
								line: lines[parseInt(d.prodX)] || null,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue