... | ... | @@ -174,7 +174,40 @@ For the flower beds 4 and 5: |
|
|
|
|
|
![image](uploads/55650701be7a36ce7de000567f91c259/image.png)
|
|
|
|
|
|
Using the "truck" position shown in the left, querying with max distance of 7 meters:
|
|
|
|
|
|
test 1. Using the "camion" position shown in the right, querying with a max distance of 7 meters:
|
|
|
|
|
|
![image](uploads/e7d87f3e42382785d81944f2e21374ec/image.png)
|
|
|
|
|
|
request:
|
|
|
```
|
|
|
curl --location --request GET 'http://5.53.108.182:1026/v2/entities/?type=FlowerBed&georel=near;maxDistance:7&geometry=point&coords=46.18153,6.14105&attrs=location' \
|
|
|
--header 'Fiware-Service: carouge'
|
|
|
```
|
|
|
|
|
|
response:
|
|
|
```
|
|
|
[
|
|
|
{
|
|
|
"id": "urn:ngsi-ld:FlowerBed:FlowerBed-4",
|
|
|
"type": "FlowerBed",
|
|
|
"location": {
|
|
|
"type": "geo:polygon",
|
|
|
"value": [
|
|
|
"46.18159456349196,6.1409987953921235",
|
|
|
"46.181588625021845,6.141030022537279",
|
|
|
"46.18139270253789,6.140969933509893",
|
|
|
"46.18139855159107,6.140930937248621",
|
|
|
"46.18159456349196,6.1409987953921235"
|
|
|
],
|
|
|
"metadata": {}
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
|
|
|
test 2. Using the "camion" position shown in the left, querying with max distance of 7 meters:
|
|
|
|
|
|
```
|
|
|
curl --location --request GET 'http://5.53.108.182:1026/v2/entities/?type=FlowerBed&georel=near;maxDistance:7&geometry=point&coords=46.18160,6.14090&attrs=location' \
|
... | ... | |