@@ -21,7 +21,7 @@ public interface IDistanceFeatureQuery : IFieldNameQuery
2121 // If the field value is a geo_point field, the origin value must be a geopoint.
2222 /// </summary>
2323 [ DataMember ( Name = "origin" ) ]
24- Union < GeoLocation , DateMath > Origin { get ; set ; }
24+ Union < GeoCoordinate , DateMath > Origin { get ; set ; }
2525
2626 /// <summary>
2727 /// Distance from the origin at which relevance scores receive half of the boost value.
@@ -42,7 +42,7 @@ public class DistanceFeatureQuery : FieldNameQueryBase, IDistanceFeatureQuery
4242 internal override void InternalWrapInContainer ( IQueryContainer container ) => container . DistanceFeature = this ;
4343
4444 /// <inheritdoc />
45- public Union < GeoLocation , DateMath > Origin { get ; set ; }
45+ public Union < GeoCoordinate , DateMath > Origin { get ; set ; }
4646
4747 /// <inheritdoc />
4848 public Union < Distance , Time > Pivot { get ; set ; }
@@ -52,7 +52,7 @@ public class DistanceFeatureQueryDescriptor<T>
5252 : FieldNameQueryDescriptorBase < DistanceFeatureQueryDescriptor < T > , IDistanceFeatureQuery , T >
5353 , IDistanceFeatureQuery where T : class
5454 {
55- Union < GeoLocation , DateMath > IDistanceFeatureQuery . Origin { get ; set ; }
55+ Union < GeoCoordinate , DateMath > IDistanceFeatureQuery . Origin { get ; set ; }
5656
5757 Union < Distance , Time > IDistanceFeatureQuery . Pivot { get ; set ; }
5858
@@ -63,7 +63,7 @@ public DistanceFeatureQueryDescriptor<T> Origin(DateMath origin) =>
6363 Assign ( origin , ( a , v ) => a . Origin = v ) ;
6464
6565 /// <inheritdoc cref="IDistanceFeatureQuery.Origin" />
66- public DistanceFeatureQueryDescriptor < T > Origin ( GeoLocation origin ) =>
66+ public DistanceFeatureQueryDescriptor < T > Origin ( GeoCoordinate origin ) =>
6767 Assign ( origin , ( a , v ) => a . Origin = v ) ;
6868
6969 /// <inheritdoc cref="IDistanceFeatureQuery.Pivot" />
@@ -77,7 +77,7 @@ public DistanceFeatureQueryDescriptor<T> Pivot(Distance pivot) =>
7777
7878 internal class DistanceFeatureQueryFormatter : IJsonFormatter < IDistanceFeatureQuery >
7979 {
80- private static readonly UnionFormatter < GeoLocation , DateMath > OriginUnionFormatter = new UnionFormatter < GeoLocation , DateMath > ( ) ;
80+ private static readonly UnionFormatter < GeoCoordinate , DateMath > OriginUnionFormatter = new UnionFormatter < GeoCoordinate , DateMath > ( ) ;
8181 private static readonly UnionFormatter < Distance , Time > PivotUnionFormatter = new UnionFormatter < Distance , Time > ( ) ;
8282
8383 public void Serialize ( ref JsonWriter writer , IDistanceFeatureQuery value , IJsonFormatterResolver formatterResolver )
0 commit comments