Table of Contents

Class LocationCriteria

Namespace
Textkernel.Tx.Models.API.Matching.Request
Assembly
Textkernel.Tx.SDK.dll

Criteria for distance/range filtering

public class LocationCriteria
Inheritance
LocationCriteria
Inherited Members

Properties

Distance

The distance from Locations within which to find results.

public int Distance { get; set; }

Property Value

int

DistanceUnit

The units for the specified distance.

[JsonConverter(typeof(JsonStringEnumConverter))]
public DistanceUnit DistanceUnit { get; set; }

Property Value

DistanceUnit

GeocodeProvider

The provider to lookup latitude/longitude if they are not specified. If you use Bing you must specify your GeocodeProviderKey

[JsonConverter(typeof(JsonStringEnumConverter))]
public GeocodeProvider GeocodeProvider { get; set; }

Property Value

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

public string GeocodeProviderKey { get; set; }

Property Value

string

Locations

Results must be found within a certain distance of one of these specified locations.

public List<FilterLocation> Locations { get; set; }

Property Value

List<FilterLocation>