@@ -86,7 +86,7 @@ class Query(
86
86
* @param meters Whether the distance is in meters.
87
87
* @returns The query string.
88
88
*/
89
- fun distanceEqual (attribute : String , values : List <Any >, distance : Number , meters : Boolean = true) = Query (" distanceEqual" , attribute, listOf (values, distance, meters)).toJson()
89
+ fun distanceEqual (attribute : String , values : List <Any >, distance : Number , meters : Boolean = true) = Query (" distanceEqual" , attribute, listOf (listOf ( values, distance, meters) )).toJson()
90
90
91
91
/* *
92
92
* Filter resources where attribute is not at a specific distance from the given coordinates.
@@ -97,7 +97,7 @@ class Query(
97
97
* @param meters Whether the distance is in meters.
98
98
* @returns The query string.
99
99
*/
100
- fun distanceNotEqual (attribute : String , values : List <Any >, distance : Number , meters : Boolean = true) = Query (" distanceNotEqual" , attribute, listOf (values, distance, meters)).toJson()
100
+ fun distanceNotEqual (attribute : String , values : List <Any >, distance : Number , meters : Boolean = true) = Query (" distanceNotEqual" , attribute, listOf (listOf ( values, distance, meters) )).toJson()
101
101
102
102
/* *
103
103
* Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
@@ -108,7 +108,7 @@ class Query(
108
108
* @param meters Whether the distance is in meters.
109
109
* @returns The query string.
110
110
*/
111
- fun distanceGreaterThan (attribute : String , values : List <Any >, distance : Number , meters : Boolean = true) = Query (" distanceGreaterThan" , attribute, listOf (values, distance, meters)).toJson()
111
+ fun distanceGreaterThan (attribute : String , values : List <Any >, distance : Number , meters : Boolean = true) = Query (" distanceGreaterThan" , attribute, listOf (listOf ( values, distance, meters) )).toJson()
112
112
113
113
/* *
114
114
* Filter resources where attribute is at a distance less than the specified value from the given coordinates.
@@ -119,23 +119,23 @@ class Query(
119
119
* @param meters Whether the distance is in meters.
120
120
* @returns The query string.
121
121
*/
122
- fun distanceLessThan (attribute : String , values : List <Any >, distance : Number , meters : Boolean = true) = Query (" distanceLessThan" , attribute, listOf (values, distance, meters)).toJson()
122
+ fun distanceLessThan (attribute : String , values : List <Any >, distance : Number , meters : Boolean = true) = Query (" distanceLessThan" , attribute, listOf (listOf ( values, distance, meters) )).toJson()
123
123
124
- fun intersects (attribute : String , values : List <Any >) = Query (" intersects" , attribute, values).toJson()
124
+ fun intersects (attribute : String , values : List <Any >) = Query (" intersects" , attribute, listOf ( values) ).toJson()
125
125
126
- fun notIntersects (attribute : String , values : List <Any >) = Query (" notIntersects" , attribute, values).toJson()
126
+ fun notIntersects (attribute : String , values : List <Any >) = Query (" notIntersects" , attribute, listOf ( values) ).toJson()
127
127
128
- fun crosses (attribute : String , values : List <Any >) = Query (" crosses" , attribute, values).toJson()
128
+ fun crosses (attribute : String , values : List <Any >) = Query (" crosses" , attribute, listOf ( values) ).toJson()
129
129
130
- fun notCrosses (attribute : String , values : List <Any >) = Query (" notCrosses" , attribute, values).toJson()
130
+ fun notCrosses (attribute : String , values : List <Any >) = Query (" notCrosses" , attribute, listOf ( values) ).toJson()
131
131
132
- fun overlaps (attribute : String , values : List <Any >) = Query (" overlaps" , attribute, values).toJson()
132
+ fun overlaps (attribute : String , values : List <Any >) = Query (" overlaps" , attribute, listOf ( values) ).toJson()
133
133
134
- fun notOverlaps (attribute : String , values : List <Any >) = Query (" notOverlaps" , attribute, values).toJson()
134
+ fun notOverlaps (attribute : String , values : List <Any >) = Query (" notOverlaps" , attribute, listOf ( values) ).toJson()
135
135
136
- fun touches (attribute : String , values : List <Any >) = Query (" touches" , attribute, values).toJson()
136
+ fun touches (attribute : String , values : List <Any >) = Query (" touches" , attribute, listOf ( values) ).toJson()
137
137
138
- fun notTouches (attribute : String , values : List <Any >) = Query (" notTouches" , attribute, values).toJson()
138
+ fun notTouches (attribute : String , values : List <Any >) = Query (" notTouches" , attribute, listOf ( values) ).toJson()
139
139
140
140
private fun parseValue (value : Any ): List <Any > {
141
141
return when (value) {
0 commit comments