Skip to content

Commit 41cc37d

Browse files
authored
radius in metres for /adddevicepointaoi (#31)
1 parent 592082d commit 41cc37d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pasturekey.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,8 @@ curl -s -X POST \
595595
### /adddevicepointaoi
596596

597597
Add an AOI to an existing device. The is a POST request and it takes parameters on the endpoint
598-
path. These parameters describe the AOI its center and radius in decimal degrees. The response
599-
is JSON and contains the AOI ID of the newly created AOI.
598+
path. These parameters describe the AOI its center (given as longitude and latitude in decimal degrees) and radius
599+
in metres. The response is JSON and contains the AOI ID of the newly created AOI.
600600

601601
Once the AOI is added and the backprocessing has completed then data will be able to be
602602
queried on the device and AOI with the endpoints described above.
@@ -607,7 +607,7 @@ queried on the device and AOI with the endpoints described above.
607607
device_id=cbcd085f-0865-46d8-b496-ce5c2291943b
608608
longitude=144.1
609609
latitude=-27.1
610-
radius=0.00001
610+
radius=200
611611
curl -s -X POST \
612612
--output data.json \
613613
-H "Content-Type: application/json" \
@@ -688,7 +688,7 @@ curl -s -X POST \
688688
device_id=`cat newdevice.json | jq -r '.device_id'`
689689
longitude=144.1
690690
latitude=-27.1
691-
radius=0.00001
691+
radius=200
692692
curl -s -X POST \
693693
--output newaoi.json \
694694
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)