tidwall / tile38

Real-time Geospatial and Geofencing
https://tile38.com
MIT License
9.06k stars 567 forks source link

Roaming geofence with `GET` #354

Open brncsk opened 6 years ago

brncsk commented 6 years ago

Consider the following:

INTERSECTS polygons FENCE GET points id

This only emits messages when any of the polygons change, but not when the point is updated.

I'm not sure if this is on purpose or is considered a bug. If the former: is there any other way to construct a roaming geofence with said functionality?

tidwall commented 6 years ago

Hi,

When using FENCE GET the object is loaded one time statically for the life of the geofence. Updates to the underlying object do not update the geofence. This is not considered a bug.

I'm not sure of a way to make FENCE GET do what you are looking for without updating the object, deleting the old fence, and then recreating the geofence.

I can see the value in having a geofence track changes to the object and perhaps a new feature.

brncsk commented 5 years ago

Thanks for the input!