mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-04 01:56:33 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			324 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			324 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import {formatTripReq as hafasFormatTripReq} from '../../format/trip-req.js';
 | 
						|
 | 
						|
 | 
						|
const formatTripReq = ({profile, opt}, id) => {
 | 
						|
	if (id.includes('#')) {
 | 
						|
		return hafasFormatTripReq({profile, opt}, id);
 | 
						|
	}
 | 
						|
	return {
 | 
						|
		endpoint: profile.regioGuideTripEndpoint,
 | 
						|
		path: id,
 | 
						|
		method: 'get',
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
export {
 | 
						|
	formatTripReq,
 | 
						|
};
 |