@@ -280,6 +280,38 @@ parameters:
280
280
example, if the query was to return 10 results and you use an offset of
281
281
1, the response will return the last 9 values. Make sure you don't give
282
282
more offset than the number of results."
283
+ georel :
284
+ in : query
285
+ name : georel
286
+ type : string
287
+ pattern : ' ^coveredBy$|^intersects$|^equals$|^disjoint$|^near;maxDistance:(0|([1-9][0-9]*))(\.[0-9]+)?$|^near;minDistance:(0|([1-9][0-9]*))(\.[0-9]+)?$|^near;maxDistance:(0|([1-9][0-9]*))(\.[0-9]+)?;minDistance:(0|([1-9][0-9]*))(\.[0-9]+)?$|^near;minDistance:(0|([1-9][0-9]*))(\.[0-9]+)?;maxDistance:(0|([1-9][0-9]*))(\.[0-9]+)?$'
288
+ description : " Optional. It specifies a spatial relationship between matching
289
+ entities and a reference shape (geometry). This parameter is used to perform
290
+ geographical queries with the same semantics as in the FIWARE-NGSI v2 Specification.
291
+ Full details can be found in the Geographical Queries section of the specification:
292
+ http://fiware.github.io/specifications/ngsiv2/stable/."
293
+ geometry :
294
+ in : query
295
+ name : geometry
296
+ type : string
297
+ enum : [point, line, polygon, box]
298
+ description : " Optional but required if georel is specified. This parameter
299
+ defines the reference shape to be used for geographical queries and has the
300
+ same semantics as in the FIWARE-NGSI v2 Specification.
301
+ Full details can be found in the Geographical Queries section of the specification:
302
+ http://fiware.github.io/specifications/ngsiv2/stable/."
303
+ coords :
304
+ in : query
305
+ name : coords
306
+ type : string
307
+ pattern : ' ^[+,-]?(0|([1-9][0-9]*))(\.[0-9]+)?,[+,-]?(0|([1-9][0-9]*))(\.[0-9]+)?(;[+,-]?(0|([1-9][0-9]*))(\.[0-9]+)?,[+,-]?(0|([1-9][0-9]*))(\.[0-9]+)?)*$'
308
+ description : " Optional but required if georel is specified. This parameter
309
+ defines the reference shape (geometry) in terms of WGS 84 coordinates and has
310
+ the same semantics as in the FIWARE-NGSI v2 Specification, except we only
311
+ accept coordinates in decimal degrees---e.g. `40.714,-74.006` is okay, but not
312
+ `40 42' 51'',74 0' 21''`.
313
+ Full details can be found in the Geographical Queries section of the specification:
314
+ http://fiware.github.io/specifications/ngsiv2/stable/."
283
315
284
316
# ###############################################################################
285
317
# PATHS: META
@@ -612,6 +644,9 @@ paths:
612
644
- $ref : ' #/parameters/lastN'
613
645
- $ref : ' #/parameters/limit'
614
646
- $ref : ' #/parameters/offset'
647
+ - $ref : ' #/parameters/georel'
648
+ - $ref : ' #/parameters/geometry'
649
+ - $ref : ' #/parameters/coords'
615
650
# In Header...
616
651
- $ref : ' #/parameters/fiwareService'
617
652
- $ref : ' #/parameters/fiwareServicePath'
@@ -683,6 +718,9 @@ paths:
683
718
- $ref : ' #/parameters/lastN'
684
719
- $ref : ' #/parameters/limit'
685
720
- $ref : ' #/parameters/offset'
721
+ - $ref : ' #/parameters/georel'
722
+ - $ref : ' #/parameters/geometry'
723
+ - $ref : ' #/parameters/coords'
686
724
# In Header...
687
725
- $ref : ' #/parameters/fiwareService'
688
726
- $ref : ' #/parameters/fiwareServicePath'
@@ -741,6 +779,9 @@ paths:
741
779
- $ref : ' #/parameters/lastN'
742
780
- $ref : ' #/parameters/limit'
743
781
- $ref : ' #/parameters/offset'
782
+ - $ref : ' #/parameters/georel'
783
+ - $ref : ' #/parameters/geometry'
784
+ - $ref : ' #/parameters/coords'
744
785
# In Header...
745
786
- $ref : ' #/parameters/fiwareService'
746
787
- $ref : ' #/parameters/fiwareServicePath'
@@ -857,6 +898,9 @@ paths:
857
898
- $ref : ' #/parameters/lastN'
858
899
- $ref : ' #/parameters/limit'
859
900
- $ref : ' #/parameters/offset'
901
+ - $ref : ' #/parameters/georel'
902
+ - $ref : ' #/parameters/geometry'
903
+ - $ref : ' #/parameters/coords'
860
904
# In Header...
861
905
- $ref : ' #/parameters/fiwareService'
862
906
- $ref : ' #/parameters/fiwareServicePath'
@@ -936,6 +980,9 @@ paths:
936
980
- $ref : ' #/parameters/lastN'
937
981
- $ref : ' #/parameters/limit'
938
982
- $ref : ' #/parameters/offset'
983
+ - $ref : ' #/parameters/georel'
984
+ - $ref : ' #/parameters/geometry'
985
+ - $ref : ' #/parameters/coords'
939
986
# In Header...
940
987
- $ref : ' #/parameters/fiwareService'
941
988
- $ref : ' #/parameters/fiwareServicePath'
@@ -1005,6 +1052,9 @@ paths:
1005
1052
- $ref : ' #/parameters/lastN'
1006
1053
- $ref : ' #/parameters/limit'
1007
1054
- $ref : ' #/parameters/offset'
1055
+ - $ref : ' #/parameters/georel'
1056
+ - $ref : ' #/parameters/geometry'
1057
+ - $ref : ' #/parameters/coords'
1008
1058
# In Header...
1009
1059
- $ref : ' #/parameters/fiwareService'
1010
1060
- $ref : ' #/parameters/fiwareServicePath'
@@ -1068,6 +1118,9 @@ paths:
1068
1118
- $ref : ' #/parameters/lastN'
1069
1119
- $ref : ' #/parameters/limit'
1070
1120
- $ref : ' #/parameters/offset'
1121
+ - $ref : ' #/parameters/georel'
1122
+ - $ref : ' #/parameters/geometry'
1123
+ - $ref : ' #/parameters/coords'
1071
1124
# In Header...
1072
1125
- $ref : ' #/parameters/fiwareService'
1073
1126
- $ref : ' #/parameters/fiwareServicePath'
@@ -1186,6 +1239,9 @@ paths:
1186
1239
- $ref : ' #/parameters/lastN'
1187
1240
- $ref : ' #/parameters/limit'
1188
1241
- $ref : ' #/parameters/offset'
1242
+ - $ref : ' #/parameters/georel'
1243
+ - $ref : ' #/parameters/geometry'
1244
+ - $ref : ' #/parameters/coords'
1189
1245
# In Header...
1190
1246
- $ref : ' #/parameters/fiwareService'
1191
1247
- $ref : ' #/parameters/fiwareServicePath'
@@ -1384,6 +1440,9 @@ paths:
1384
1440
- $ref : ' #/parameters/lastN'
1385
1441
- $ref : ' #/parameters/limit'
1386
1442
- $ref : ' #/parameters/offset'
1443
+ - $ref : ' #/parameters/georel'
1444
+ - $ref : ' #/parameters/geometry'
1445
+ - $ref : ' #/parameters/coords'
1387
1446
# In Header...
1388
1447
- $ref : ' #/parameters/fiwareService'
1389
1448
- $ref : ' #/parameters/fiwareServicePath'
@@ -1483,6 +1542,9 @@ paths:
1483
1542
- $ref : ' #/parameters/lastN'
1484
1543
- $ref : ' #/parameters/limit'
1485
1544
- $ref : ' #/parameters/offset'
1545
+ - $ref : ' #/parameters/georel'
1546
+ - $ref : ' #/parameters/geometry'
1547
+ - $ref : ' #/parameters/coords'
1486
1548
# In Header...
1487
1549
- $ref : ' #/parameters/fiwareService'
1488
1550
- $ref : ' #/parameters/fiwareServicePath'
@@ -1593,6 +1655,9 @@ paths:
1593
1655
- $ref : ' #/parameters/lastN'
1594
1656
- $ref : ' #/parameters/limit'
1595
1657
- $ref : ' #/parameters/offset'
1658
+ - $ref : ' #/parameters/georel'
1659
+ - $ref : ' #/parameters/geometry'
1660
+ - $ref : ' #/parameters/coords'
1596
1661
# In Header...
1597
1662
- $ref : ' #/parameters/fiwareService'
1598
1663
- $ref : ' #/parameters/fiwareServicePath'
0 commit comments