complexCriteria = {
return {
nightClubVSyoungPopulation: {
type: "mathAggregation",
mathExpression: "{nightClubs}/max(1,{youngPopulation})",
criterionParameters: {
youngPopulation: {
type: "statisticsDistance",
statisticGroupId: 100,
statisticsIds: [3],
referenceStatisticsIds: [],
maxEdgeWeight: maxEdgeWeight * 60,
edgeWeight: "time",
travelMode: travel,
coreServiceUrl: "https://api.targomo.com/westcentraleurope"
},
nightClubs: {
type: "poiCoverageCount",
osmTypes: [
{
key: "group",
value: "nightclub"
}
],
maxEdgeWeight: maxEdgeWeight * 60,
edgeWeight: "time",
travelMode: travel,
coreServiceUrl: "https://api.targomo.com/westcentraleurope"
}
}
}
};
}