balancing
This commit is contained in:
parent
b5c5abdd4f
commit
2e4ec7b24e
@ -10,7 +10,7 @@ const port = 3000
|
|||||||
//const multiplier_temp = 5
|
//const multiplier_temp = 5
|
||||||
const multiplier = {
|
const multiplier = {
|
||||||
temperature_mean: 5,
|
temperature_mean: 5,
|
||||||
percipitation: 0.5,
|
percipitation: 3.5,
|
||||||
raindays: 3,
|
raindays: 3,
|
||||||
sunhours: 2.5,
|
sunhours: 2.5,
|
||||||
}
|
}
|
||||||
@ -135,7 +135,13 @@ async function search(from, to, queries) {
|
|||||||
|
|
||||||
|
|
||||||
// TODO: calculate ratio
|
// TODO: calculate ratio
|
||||||
return transformer.transform(detailScores)
|
return {
|
||||||
|
results: transformer.transform(detailScores),
|
||||||
|
debug: {
|
||||||
|
detailScores: detailScores,
|
||||||
|
minMax: minMax
|
||||||
|
}
|
||||||
|
}
|
||||||
// return { TODO___scores: detailScores }
|
// return { TODO___scores: detailScores }
|
||||||
// return { TODO___scores: calculateAverageScore(detailScores, Object.keys(queries)) }
|
// return { TODO___scores: calculateAverageScore(detailScores, Object.keys(queries)) }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user