@@ -82,7 +82,7 @@ class Query(
8282 * @param meters Whether the distance is in meters.
8383 * @returns The query string.
8484 */
85- fun distanceEqual(attribute: String, values: List<Any >, distance: Number, meters: Boolean = false) = Query("distanceEqual", attribute, listOf(listOf( values, distance, meters) )).toJson()
85+ fun distanceEqual(attribute: String, values: List<Any >, distance: Number, meters: Boolean = false) = Query("distanceEqual", attribute, listOf(values, distance, meters)).toJson()
8686
8787 /**
8888 * Filter resources where attribute is not at a specific distance from the given coordinates.
@@ -93,7 +93,7 @@ class Query(
9393 * @param meters Whether the distance is in meters.
9494 * @returns The query string.
9595 */
96- fun distanceNotEqual(attribute: String, values: List<Any >, distance: Number, meters: Boolean = false) = Query("distanceNotEqual", attribute, listOf(listOf( values, distance, meters) )).toJson()
96+ fun distanceNotEqual(attribute: String, values: List<Any >, distance: Number, meters: Boolean = false) = Query("distanceNotEqual", attribute, listOf(values, distance, meters)).toJson()
9797
9898 /**
9999 * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
@@ -104,7 +104,7 @@ class Query(
104104 * @param meters Whether the distance is in meters.
105105 * @returns The query string.
106106 */
107- fun distanceGreaterThan(attribute: String, values: List<Any >, distance: Number, meters: Boolean = false) = Query("distanceGreaterThan", attribute, listOf(listOf( values, distance, meters) )).toJson()
107+ fun distanceGreaterThan(attribute: String, values: List<Any >, distance: Number, meters: Boolean = false) = Query("distanceGreaterThan", attribute, listOf(values, distance, meters)).toJson()
108108
109109 /**
110110 * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
@@ -115,7 +115,7 @@ class Query(
115115 * @param meters Whether the distance is in meters.
116116 * @returns The query string.
117117 */
118- fun distanceLessThan(attribute: String, values: List<Any >, distance: Number, meters: Boolean = false) = Query("distanceLessThan", attribute, listOf(listOf( values, distance, meters) )).toJson()
118+ fun distanceLessThan(attribute: String, values: List<Any >, distance: Number, meters: Boolean = false) = Query("distanceLessThan", attribute, listOf(values, distance, meters)).toJson()
119119
120120 fun intersects(attribute: String, values: List<Any >) = Query("intersects", attribute, values).toJson()
121121
0 commit comments