Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hi,
I have created to show a Geofence using Google Map Widget Extension in ThingWorx. However not sure, how to create alerts by linking it to a moving object.
Please note, I have already checked the Axeda integration with ThingWorx at the below link, but clueless on what do do from TWX Composer.
https://community.ptc.com/t5/IoT-Tech-Tips/Axeda-All-about-Geofences/td-p/532750
Appreciate a response.
Thanks
Hi @RMG1
To check whether the current location is inside or outside geofence, you can use function "containsLocation" from snippets.
Regards,
VR
Hello,
If you use circular geofences, this is probably the most out-of-the-box way to get an Alert:
Step (2) is something you can do programmatically (see AddOrUpdateAlert generic service), i.e. you can CRUD your geofence alerts from your services, no need to do it in the Composer.
We tried this method on one of the previous projects, and it worked well until we started encountering high volume of sensor data, after which it started generating intermittent errors, which were hard to debug. However, at that time we used ThingWorx 7.x, I guess it got better since then, so that still may be the viable way to go. At the end of the day we rewrote it with the following approach:
For the arbitrary geofences you will need to use the service suggested by @Velkumar in a DataChange subscription. It will probably be less performant (more math needs to be done), and you'll lose the (very useful) Alerts capability, but at the end of the day we found it somewhat more reliable.
/ Constantine