mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-01 00:26:31 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			264 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			264 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import {formatLocationIdentifier} from './location-identifier.js'
 | |
| 
 | |
| const formatStation = (id) => {
 | |
| 	return {
 | |
| 		type: 'S', // station
 | |
| 		// todo: name necessary?
 | |
| 		lid: formatLocationIdentifier({
 | |
| 			A: '1', // station?
 | |
| 			L: id
 | |
| 		})
 | |
| 	}
 | |
| }
 | |
| 
 | |
| export {
 | |
| 	formatStation,
 | |
| }
 |