To import your geofences, you will need to generate a .geojson file. Still don’t know what these terms are?

<aside> 💡 A geofence is a virtual boundary defined by geographical coordinates (latitude and longitude) that can be set up around a specific location or area in the physical world. When a device, such as a smartphone or GPS-enabled device, enters or exits the predefined geofenced area, it triggers a response or action. This can include sending notifications, activating certain features, logging location data, or initiating predefined behaviours within an application or system.

A GeoJSON is an open standard geospatial data interchange format representing simple geographic features and their non-spatial attributes. Based on JavaScript Object Notation (JSON), GeoJSON is a format for encoding various geographic data structures.****

</aside>

It may sound highly technical, but no worries, the implementation process is so easy.

First, you need to visit geojson.io. This website lets you visually generate your coordinates from a map, translating them into the necessary code.

  1. Once in geojson.io, look for where you need to generate a geofence. Let’s check the example of Madrid.

    Screenshot 2023-11-27 at 11.49.39.png

  2. To generate a polygon, select the five-dot menu (located on the right side of the screen) and click on the points surrounding your interest. If a flashing yellow line covers the area, you have not yet closed your polygon. To do this, click one last time on the first point marked in the area.

    Screenshot 2023-11-27 at 11.52.01.png

  3. Once you have closed your polygon, you can see the JSON code in the right menu.

    Screenshot 2023-11-27 at 11.53.43.png

  4. Copy and paste this code into a plain text document.

    To make it easier for you, we share a template:

    template.geojson

    In this file, you need to change the coordinates (green code) for those existing in the document (you may need to add some new files, depending on the number of points in your polygon).

    Change the name and description, too, as needed.

    Screenshot 2023-11-27 at 12.10.34.png

    Save this file, and done! You are ready to import it into Astara Connect and add it to your own maps.

    Group creation_geofences.png

    <aside> 💡 You can also import geojson files when you activate or subscribe to Connect Links related to Geofences.

    </aside>

    Do you need further support? Leave us a request from the Help menu.


    Related content:

    <aside> 👉 Read next: Group menu features: navigation & settings

    </aside>