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