Class LocationCriteria
Criteria for distance/range filtering
Inheritance
System.Object
LocationCriteria
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Textkernel.Tx.Models.API.Matching.Request
Assembly: Textkernel.Tx.SDK.dll
Syntax
public class LocationCriteria
Properties
| Improve this Doc View SourceDistance
The distance from Locations within which to find results.
Declaration
public int Distance { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DistanceUnit
The units for the specified distance.
Declaration
[JsonConverter(typeof(JsonStringEnumConverter))]
public DistanceUnit DistanceUnit { get; set; }
Property Value
Type | Description |
---|---|
DistanceUnit |
GeocodeProvider
The provider to lookup latitude/longitude if they are not specified. If you use Bing you must specify your GeocodeProviderKey
Declaration
[JsonConverter(typeof(JsonStringEnumConverter))]
public GeocodeProvider GeocodeProvider { get; set; }
Property Value
Type | Description |
---|---|
GeocodeProvider |
GeocodeProviderKey
Your private API key for the geocoding provider. If using Bing you must specify your own API key.
If using Google, you can optionally provide your own API key
Declaration
public string GeocodeProviderKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Locations
Results must be found within a certain distance of one of these specified locations.
Declaration
public List<FilterLocation> Locations { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<FilterLocation> |