mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-04 01:56:33 +02:00 
			
		
		
		
	parseStopover: arrivalPlatform, departurePlatform
This commit is contained in:
		
							parent
							
								
									ebe4fa64d8
								
							
						
					
					
						commit
						96f9f93957
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,15 +1,15 @@
 | 
			
		|||
'use strict'
 | 
			
		||||
 | 
			
		||||
// todo: arrivalDelay, departureDelay or only delay ?
 | 
			
		||||
// todo: arrivalPlatform, departurePlatform
 | 
			
		||||
const createParseStopover = (profile, stations, lines, remarks, date) => {
 | 
			
		||||
	const parseStopover = (st) => {
 | 
			
		||||
		const res = {
 | 
			
		||||
			station: stations[parseInt(st.locX)] || null,
 | 
			
		||||
			arrival: null,
 | 
			
		||||
			arrivalDelay: null,
 | 
			
		||||
			arrivalPlatform: st.aPlatfR || st.aPlatfS || null,
 | 
			
		||||
			departure: null,
 | 
			
		||||
			departureDelay: null
 | 
			
		||||
			departureDelay: null,
 | 
			
		||||
			departurePlatform: st.dPlatfR || st.dPlatfS || null
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// todo: DRY with parseDeparture
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue