db-vendo-client
Version:
Client for bahn.de public transport APIs.
17 lines (13 loc) • 292 B
JavaScript
import {getHeaders} from './header.js';
const formatStopReq = (ctx, stopRef) => {
const {profile} = ctx;
return {
endpoint: profile.stopEndpoint,
path: stopRef,
headers: getHeaders('application/x.db.vendo.mob.location.v3+json'),
method: 'get',
};
};
export {
formatStopReq,
};