Sorry, you need to enable JavaScript to visit this website.

Custom fence shapes

 

Service version: 1
Last edit: 2019.09.18

Purpose

This is a list of supported custom fence shape types in addition to GeoJSON Polygons and MultiPolygons.

Custom fence shape parameters

Circle shape

Creates a circular fence with a specified radius and center point.

Required geometry{} fields
  • "radius": radius_in_meters
  • "type": "Point"
  • "shapeType": "Circle"
Scheme
Circle shape type example
"geometry": {
  "type": "Point",
  "radius": radius_in_meters,
  "shapeType": "Circle",
  "coordinates": [longitude, latitude]
}
Example
Circle shape type example
{
  "name": "Rounded Circle",
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "radius": 75,
    "shapeType": "Circle",
    "coordinates": [-67.137343, 45.137451]
  }
}

Corridor shape

Creates a border around a provided line that is distanced from that line in exactly the amount of meters described in the radius.

Required geometry{} fields
  • "radius": radius_in_meters
  • "type": "LineString"
  • "shapeType": "Corridor"
Scheme
Corridor shape type example
"geometry": {
  "type": "LineString",
  "radius": radius_in_meters,
  "shapeType": "Corridor",
  "coordinates": [[longitude_1, latitude_1], [longitude_2, latitude_2], ...]
}
Example
Corridor shape type example
{
  "name": "Only Rectangle",
  "type": "Feature",
  "geometry": {
    "type": "LineString",
    "radius": 75,
    "shapeType": "Corridor",
    "coordinates": [[-67.137343, 45.137451], [-68.137343, 46.137451]]
  }
}

Rectangle shape

Creates a rectangle using two points.

  • The first point is the bottom-left corner.
  • The second point is the top-right corner.
Required geometry{} fields
  • "type": "MultiPoint"
  • "shapeType": "Rectangle"
Scheme
Rectangle shape type example
"geometry": {
  "type": "MultiPoint",
  "shapeType": "Rectangle",
  "coordinates": [[longitude_1, latitude_1], [longitude_2, latitude_2]]
}
Example
Rectangle shape type example
{
  "name": "Only Rectangle",
  "type": "Feature",
  "geometry": {
    "type": "MultiPoint",
    "shapeType": "Rectangle",
    "coordinates": [[-67.137343, 45.137451], [-68.137343, 46.137451]]
  }
}

▲ Return to top

You are here