mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-10-31 08:06:33 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			635 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			635 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict'
 | |
| 
 | |
| const products = require('./products')
 | |
| 
 | |
| const transformReqBody = (ctx, body) => {
 | |
| 	body.client = {
 | |
| 		type: 'IPH',
 | |
| 		id: 'CMTA',
 | |
| 		v: '2',
 | |
| 		name: 'CapMetro'
 | |
| 	}
 | |
| 	body.ver = '1.13'
 | |
| 	body.auth = {type: 'AID', aid: 'ioslaskdcndrjcmlsd'}
 | |
| 
 | |
| 	return body
 | |
| }
 | |
| 
 | |
| const cmtaProfile = {
 | |
| 	locale: 'en-US',
 | |
| 	timezone: 'America/Chicago',
 | |
| 	endpoint: 'https://capmetro.hafas.cloud/bin/mgate.exe',
 | |
| 	transformReqBody,
 | |
| 
 | |
| 	products,
 | |
| 
 | |
| 	trip: true,
 | |
| 	radar: true,
 | |
| 	refreshJourney: true,
 | |
| 	reachableFrom: true,
 | |
| 	remarks: false, // seems like ver >= 1.20 is required
 | |
| 	lines: false, // seems like ver >= 1.16 is required
 | |
| }
 | |
| 
 | |
| module.exports = cmtaProfile
 |