mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-04 01:56:33 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			317 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			317 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const formatLocationsReq = (ctx, query) => {
 | 
						|
	const {profile, opt} = ctx;
 | 
						|
 | 
						|
	return {
 | 
						|
		endpoint: profile.locationsEndpoint,
 | 
						|
		query: {
 | 
						|
			typ: profile.formatLocationFilter(opt.stops, opt.addresses, opt.poi),
 | 
						|
			suchbegriff: query,
 | 
						|
			limit: opt.results,
 | 
						|
		},
 | 
						|
		method: 'get',
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
export {
 | 
						|
	formatLocationsReq,
 | 
						|
};
 |