GPS & Geofencing
Define zones based on GPS coordinates to which you can associate actions when the user enters or exits the zone. This feature is completely offline: your users don't need an Internet connection during their journey.
⚠️ Only for mobile apps: These features are only available for mobile applications (web and native).
Create your zones
Insert the GPS component.
![add_GPS_component.png](http://d33v4339jhl8k0.cloudfront.net/docs/assets/5eeb6c752c7d3a10cba92698/images/5f7f03e646e0fb001798af6d/img-7979-1602159476-335327380.png)
Double-click on the shaded area. A Google Maps map will appear: this is only there as a guide for placing your location markers. It will disappear from your screen.
💡The GPS component is not visual. If you want to display a map in your application, please use the Map component.
To place a marker, move your map to the desired location using your mouse or use the search field to enter an address. Click
+ ADD MARKER on the left to place your marker.
![create_gps_marker.png](http://d33v4339jhl8k0.cloudfront.net/docs/assets/5eeb6c752c7d3a10cba92698/images/5f7f03e752faff0016aede48/img-7979-1602159477-516509137.png)
Click on the icon to set this marker when user enters or exits zone (only one choice possible). Choose the detection distance of the zone (in meters).
![markers_properties_gps.png](http://d33v4339jhl8k0.cloudfront.net/docs/assets/5eeb6c752c7d3a10cba92698/images/5f7f03e74cedfd0017dcfb1a/img-7979-1602159478-2035553112.png)
Trigger a position-dependent action
Keep the GPS component selected and open the Interactivity window. Click + ADD.
You have several triggers available:
-
Geolocation error
-
GPS Detection marker [name]
Choose the action of your choice, e.g. open the pop-up of the index corresponding to the zone or an error message.