Added relevace() method to set beacons and locations; Added schemas for beaconsDict and locationsDict

This commit is contained in:
alexandercerutti
2018-08-20 16:40:04 +02:00
parent 8cda71309d
commit 8634d540b8
3 changed files with 58 additions and 2 deletions

View File

@@ -64,12 +64,19 @@ function manageRequest(request, response) {
"LOCATION": "Location"
});
// non-existing language code
// non-existing language code get also inserted but (probabily) not used
pass.localize("ol", {
"EVENT": "numashat",
"LOCATION": "abelret"
});
pass.relevance("locations", [{
latitude: 45.601565099999995,
longitude: 12.320653600000002
}]);
pass.relevance("maxDistance", 150);
//pass.localize("zu", {});
pass.primaryFields.push({