From 7687021a6ed3b6038b048e7ccddc94f193baa469 Mon Sep 17 00:00:00 2001 From: cedricve Date: Fri, 1 Jan 2021 21:10:27 +0100 Subject: [PATCH] Update Config.go --- machinery/src/models/Config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/machinery/src/models/Config.go b/machinery/src/models/Config.go index db015a9..5e70798 100644 --- a/machinery/src/models/Config.go +++ b/machinery/src/models/Config.go @@ -61,9 +61,10 @@ type Rectangle struct { Y2 int `json:"y2"` } -//Polygon is a sequence of coordinates (x,y). +//Polygon is a sequence of coordinates (x,y). The ID specifies an unique identifier, +//as multiple polygons can be defined. type Polygon struct { - Id string `json:"id"` + Id string `json:"ID"` Coordinates []Coordinate `json:"coordinates"` }