I am developing a tracking app where there are one or two tens of thousands of markers on a map that need to be monitored, the data structure is simple:
But I need to know when each of them has only their geolocation changed, is there a way to use wildcards for change listeners?
In this case the path would be similar to:
var onValueEvent = function(result) {
if(result.value) googleMapsUpdateMarker(result,key, result.value.lat,result.value.lgt);
};
// path to lastposition of all users.
firebase.addValueEventListener(onValueEvent, "/users/*/lastPosition");
What is the best way to implement such code using nativescript-plugin-firebase?
I am developing a tracking app where there are one or two tens of thousands of markers on a map that need to be monitored, the data structure is simple:
But I need to know when each of them has only their geolocation changed, is there a way to use wildcards for change listeners?
In this case the path would be similar to:
What is the best way to implement such code using nativescript-plugin-firebase?