Create Geolocations and Configure Geofence
Requires Customer/Partner License
October 22, 2020
Beginner
25 min.
Create geolocations and configure geofence to trigger events on thing's entry or exit using SAP Internet of Things (IoT).
You will learn
- How to define a geolocation space
- How to define an area of interest geolocation as geofence
- How to configure geofence assignments
- How to configure an action on geofencing to create notifications
Prerequisites
- Basic knowledge of REST APIs.
- Basic knowledge of Postman (Version 7.29.1 and above).
- Have a working thing with continuous data ingestion according to the Onboard Virtual Devices Sending Data from Your Computer tutorial.
- Your SAP user from <accounts.sap.com> has been added to the Cloud Foundry space in this tenant as a Space Developer so you can retrieve the required credentials for accessing the APIs.
- Your user has at a minimum the
iot_role_collection
permission created during onboarding of your tenant and the associated roles. - Basic understanding of SAP Internet of Things (IoT) Actions services.
- Have one of the map providers (ESRI Maps, HERE Maps, OpenStreetMap, Google Maps) configured for the subaccount.
SAP Internet of Things (IoT) geolocation services enable you to locate a specific object or device (real-time things – like vehicles equipped with GPS sensors) based on the geographical coordinates. It allows you to define geolocations – point of interest and area of interest (geofence).
A geofence is a virtual fence around an area of interest. Geofencing can be used to notify events like entry or exit of a thing in a defined area. This tutorial helps you with the first steps of setting up geolocations, configuring a geofence and configuring actions for the geofence events.
Step 1: Configure destination for map provider
Step 2: Define geolocation space
Step 3: Define geofence
Step 4: Define geofence configuration
Step 5: Define actions for geofence events
Step 6: Retrieve OAuth token for geofence assignments
Step 7: Configure geofence assignments
Navigate tutorial steps