mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-04 10:06:32 +02:00 
			
		
		
		
	minor fixes
This commit is contained in:
		
							parent
							
								
									6d4f29a3f9
								
							
						
					
					
						commit
						48ef7b5a5d
					
				
					 4 changed files with 7 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -70,7 +70,7 @@ The response may look like this:
 | 
			
		|||
		}
 | 
			
		||||
	},
 | 
			
		||||
	direction: 'S Flughafen Berlin-Schönefeld',
 | 
			
		||||
	trip: 31463,
 | 
			
		||||
	trip: 31463, // todo: outdated, should be tripId!
 | 
			
		||||
 | 
			
		||||
	nextStopovers: [ {
 | 
			
		||||
		stop: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								index.js
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -374,6 +374,7 @@ const createClient = (profile, userAgent, opt = {}) => {
 | 
			
		|||
			meth: 'JourneyMatch',
 | 
			
		||||
			req: {
 | 
			
		||||
				input: lineNameOrFahrtNr,
 | 
			
		||||
				// todo: date seems to be ignored
 | 
			
		||||
				date: profile.formatDate(profile, opt.when),
 | 
			
		||||
				// todo: there are probably more options
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,7 +11,7 @@ const transformReqBody = (ctx, body) => {
 | 
			
		|||
	return body
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const hvvProfile = {
 | 
			
		||||
const rsagProfile = {
 | 
			
		||||
	locale: 'de-DE',
 | 
			
		||||
	timezone: 'Europe/Berlin',
 | 
			
		||||
	endpoint: 'https://fahrplan.rsag-online.de/bin/mgate.exe',
 | 
			
		||||
| 
						 | 
				
			
			@ -30,4 +30,4 @@ const hvvProfile = {
 | 
			
		|||
	departuresStbFltrEquiv: false,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module.exports = hvvProfile
 | 
			
		||||
module.exports = rsagProfile
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,9 @@
 | 
			
		|||
	"homepage": "https://github.com/public-transport/hafas-client/tree/5.10.0",
 | 
			
		||||
	"repository": "public-transport/hafas-client",
 | 
			
		||||
	"bugs": "https://github.com/public-transport/hafas-client/issues",
 | 
			
		||||
	"funding": "https://github.com/sponsors/derhuerst",
 | 
			
		||||
	"funding": {
 | 
			
		||||
		"url": "https://github.com/sponsors/derhuerst"
 | 
			
		||||
	},
 | 
			
		||||
	"license": "ISC",
 | 
			
		||||
	"keywords": [
 | 
			
		||||
		"hafas",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue