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 Point of Interest (POI) is a specific geographical location defined by its coordinates (latitude and longitude) that holds significance for navigation, mapping, or contextual awareness. POIs can represent landmarks, businesses, public facilities, or any location of interest within a digital or physical environment. They are commonly used in GPS systems, mapping applications, and geospatial analysis to provide relevant information, trigger location-based services, or enhance user experiences by offering contextual data about nearby places.
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.
Once in geojson.io, search the location whose information you need to generate a geofence or POI. Let’s check an example:
Generate the area:
Point of interest:
Once you are in the desired location, select the “unique point” menu, and locate it over the address.
Geofence:
From the desired location, 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. Once you have closed your polygon, you will see the JSON code in the right menu.
Copy and paste this code into the template that you can obtain within Astara Connect:
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.
Save this file, and done! You are ready to import it into Astara Connect and add it to your own maps.
Do you need further support? Leave us a request from the Help menu.
Related content:
<aside> 👉 Read next: Group menu features: navigation & settings
</aside>