mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 20:25:26 +00:00
Added relevace() method to set beacons and locations; Added schemas for beaconsDict and locationsDict
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user