db-vendo-client/p/db/locations-req.js
2024-12-21 15:26:49 +00:00

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,
};