mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-10-31 08:06:33 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			231 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			231 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const formatTripReq = ({profile, opt}, id) => {
 | |
| 	return {
 | |
| 		endpoint: profile.tripEndpoint,
 | |
| 		path: '',
 | |
| 		query: {
 | |
| 			journeyId: id,
 | |
| 			poly: opt.polyline || opt.polylines,
 | |
| 		},
 | |
| 		method: 'get',
 | |
| 	};
 | |
| };
 | |
| 
 | |
| export {
 | |
| 	formatTripReq,
 | |
| };
 |