Using the Fleet Management API it’s possible to import geofences using KML data. This article will show you how.
POST /api/geofence
{
"color": "string",
"kml": "string",
}
Make sure the KML string is properly escaped, for example by using below converter:
https://www.freeformatter.com/json-escape.html
For now the following data types are supported:
- LineString
- Polygon