1
- // Copyright 2010-present MongoDB Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
1
+ /* Copyright 2016-present MongoDB Inc.
2
+ *
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
14
15
15
16
using MongoDB . Bson ;
16
17
using MongoDB . Driver . Core . Misc ;
@@ -23,7 +24,7 @@ namespace MongoDB.Driver.Search
23
24
/// search within.
24
25
/// </summary>
25
26
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
26
- public abstract class GeoWithin < TCoordinates > where TCoordinates : GeoJsonCoordinates
27
+ public abstract class GeoWithinArea < TCoordinates > where TCoordinates : GeoJsonCoordinates
27
28
{
28
29
internal abstract BsonElement Render ( ) ;
29
30
}
@@ -33,7 +34,7 @@ public abstract class GeoWithin<TCoordinates> where TCoordinates : GeoJsonCoordi
33
34
/// search within.
34
35
/// </summary>
35
36
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
36
- public sealed class GeoWithinBox < TCoordinates > : GeoWithin < TCoordinates > where TCoordinates : GeoJsonCoordinates
37
+ public sealed class GeoWithinBox < TCoordinates > : GeoWithinArea < TCoordinates > where TCoordinates : GeoJsonCoordinates
37
38
{
38
39
/// <summary>
39
40
/// Initializes a new instance of the <see cref="GeoWithinBox{TCoordinates}"/> class.
@@ -63,7 +64,7 @@ internal override BsonElement Render() =>
63
64
/// <summary>
64
65
/// Object that specifies the center point and the radius in meters to search within.
65
66
/// </summary>
66
- public sealed class GeoWithinCircle < TCoordinates > : GeoWithin < TCoordinates > where TCoordinates : GeoJsonCoordinates
67
+ public sealed class GeoWithinCircle < TCoordinates > : GeoWithinArea < TCoordinates > where TCoordinates : GeoJsonCoordinates
67
68
{
68
69
/// <summary>
69
70
/// Initializes a new instance of the <see cref="GeoWithinCircle{TCoordinates}"/> class.
@@ -94,7 +95,7 @@ internal override BsonElement Render() =>
94
95
/// Object that specifies the GeoJson geometry to search within.
95
96
/// </summary>
96
97
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
97
- public sealed class GeoWithinGeometry < TCoordinates > : GeoWithin < TCoordinates > where TCoordinates : GeoJsonCoordinates
98
+ public sealed class GeoWithinGeometry < TCoordinates > : GeoWithinArea < TCoordinates > where TCoordinates : GeoJsonCoordinates
98
99
{
99
100
/// <summary>
100
101
/// Initializes a new instance of the <see cref="GeoWithinBox{TCoordinates}"/> class.
0 commit comments