Hi there!
We just release this new plugin to the Bubble marketplace !
This plugin allows to watch a dynamic geographic point and trigger an event when it enters or leaves a zone. Zones can be defined as unique or list of custom polygons or radius around a point. Highly customizable and complete documentation.
Main features
Watch a dynamic point
Use of raw coordinates possible
Trigger can be a fixed point or a custom polygon
Can trigger on a list of points/polygons
Calculate distance from the trigger point
Can retrieve in which trigger point it is
Expose the actual trigger point unique ID
Can use a different trigger radius for each trigger point
Multi-unit support (Metric, Imperial, Nautical)
No need for Google Maps API
Calculate distance between two coordinates without Google Maps API (in workflows - front and backend - and as a visual element)
Complete documentation
The plugin is available for $3/month or $19 for a lifetime license.
We offer full documentation with the plugin and forum support.
I think the map and icons are ZQās mapbox plugin
Would be good to have a start/stop track user action and an event āwhen user location changesā so you donāt need another plugin to get those details.
For instance -
start tracking user
when user location changes save lat and long to Bubble database
watch fields set to these lat and long fields in bubble database
I know you can use the bubble native ācurrent geographic positionā but I donāt find that highly accurate and you also canāt save that every time it changes to call on it later (for instance user tracking by a different user).
Theoretically, you could do it by setting up the plugin with as a watchpoint the āCurrent User locationā and as the trigger point also the first āCurrent User locationā when the page is loaded (must be not dynamic so you could save it in a state) and then set up the radius when you should trigger the āUser leftā zone.
But it could be done in an easier way! Iāll keep it in mind, thanks!
Wow !! this is something we needed in our App, will check out soon !
Hoping we can trigger an event to āgo to a URLā as soon as user is at particular location/polygon.
This is great thanks so much. Geofencing is crucial for so many real-world applications, and this seems to make it really easy.
Not sure if I missed it, but for my distinct purposes it would be great to have an elapsed-time element as well. Would be good to be able to define events based on how long a user has been within a zone, and also would be great to have the option to index duration of each āvisitā to the defined zone.
I didnāt wind up exploring this option. Iām still a few months out from implementing, but for now I have been looking at how to achieve this with Leafy Maps or Zeroqode Google map extender.
I am steering clear of mapbox and other services that require you to manage a whole other data set outside of Bubble. Makes it more time-consuming and less efficient to integrate geographic data because these plugins donāt really let you integrate a map service with bubble. Instead they just let you display a map on your bubble site, but all the data on the still map has to be managed on a separate platform.
Fwiw, the map solution plugins that are offered right now, are all lacking if you just want to use Bubble.
hi @vnihoul77 , in my application, usersā latest locations (lat/long) are saved to the data base with the background tracking functionality. I need to send them a push alert if they get inside the geofence (so this could happen when the app is not running). for this, I would need to evaluate whether their latest coordinates are within the geofence, in the back end. Iāve been testing the app and this doesnāt seem to be possible, or am I missing something?
btw the plugin works great when I trigger the geofence alert while using the appā¦ I hope thereās a way to do this on the background (in the back end) as wellā¦