Hi Gurus,
I want to do a spatial match, but selectively on geofences that match criteria of a transaction.
I have stream of data with points.
I have a set shapes and I want to find what points occur in what shapes.
Easy enough, using a spatial match using target within universe.
Now I want to compare the stream of data with points, but only against criteria the it shares with the geofence.
I have a stream of sales data with a salesperson has an identifier.
I have a set of geofences which don't overlap among 1 salesperson, but may overlap among all salespeople.
I want to compare the location of the salesperson against only their set of geofences.
If then the location isn't within the universe of their own geofences, I then want to do a find nearest, but again only against their own geofences and not everyones.
The best thing I can think of is a batch macro, but just can't seem to figure out if this makes sense to do when processing 20m records. Will each record going through the batch macro then create a new request to fetch the geofence set of each salespersons geofences?
It's such a simple thing to do in my head, just can't figure out the order of the toolset for this.
thanks in advance,