db-vendo-client/format/locations-req.js

18 lines
321 B
JavaScript
Raw Normal View History

2019-10-31 20:08:56 +01:00
const formatLocationsReq = (ctx, query) => {
const {profile, opt} = ctx;
2019-10-31 20:08:56 +01:00
2024-12-07 22:46:04 +00:00
return {
endpoint: profile.locationsEndpoint,
query: {
typ: profile.formatLocationFilter(opt.stops, opt.addresses, opt.poi),
suchbegriff: query,
limit: opt.results,
},
method: 'get'
};
};
2019-10-31 20:08:56 +01:00
2022-05-07 16:17:37 +02:00
export {
formatLocationsReq,
};