post https://geoservices.api.eu1.scalar.zf.com/v1/v1/places
Create a new Place
The Geometry must be one of theses two types : Point for a geometry define by a circle Or Polygon type for a geometry defined by a series of point.
Circle example with a radius of 50 meters :
"geofenceDefinition":
{
"type":"Feature",
"geometry":{"type":"Point","coordinates":[2.894350290298462,50.844118068861114]}
"properties":{"radius":{"size":50,"unit":"m"}},
}
Type must be point, the coordinates are the coordinates of the center the center of the circle
The radius size must be provided in meter and the unit be "m"
Polygon example
"geofenceDefinition":
{
"type":"Feature",
"geometry":{"type":"Polygon","coordinates":[
[2.888234853744507,50.87056512745199],
[2.888631820678711,50.8689469035325],
[2.8899729251861572,50.870077634945496],
[2.888234853744507,50.87056512745199]
]
}
},
Type must be polygon and the coordinates are the list of the coordinates of the points of the polygon, there is no properties