Skip to content

CloudGeocodingOptions

Namespace: ThinkGeo.Core

A class provides the options for the Geocoding APIs.

public class CloudGeocodingOptions

Inheritance ObjectCloudGeocodingOptions

Remarks:

A class provides the options for the Geocoding APIs.

Properties

Autocomplete

Whether to return the autocomplete results or not. When autocomplete is enabled, all results will be started with the query string, rather than just the response includes it extractly. false by default.

public bool Autocomplete { get; set; }

Property Value

Boolean

MaxResults

The maximun number of results to return. Defaults to 10.

public int MaxResults { get; set; }

Property Value

Int32

BBox

Limit the results to only those contained within the supplied bounding box. null by default, as the global.

public RectangleShape BBox { get; set; }

Property Value

RectangleShape

ResultDetail

Specifies whether the geocoding results should be verbose or not.

public CloudGeocodingResultDetail ResultDetail { get; set; }

Property Value

CloudGeocodingResultDetail

SearchMode

Specifies whether to attempt approximate, as well as exact, matching.

public CloudGeocodingSearchMode SearchMode { get; set; }

Property Value

CloudGeocodingSearchMode

LocationType

This enumeration specifies the location type.

public CloudGeocodingLocationType LocationType { get; set; }

Property Value

CloudGeocodingLocationType

Countries

Limit the results only within the countries specified here.It can be one or more “Country Code” mentioned ISO 3166-1 alpha-2. e.g.gb for the United Kingdom, de for Germany.

public IEnumerable<string> Countries { get; set; }

Property Value

IEnumerable<String>

Language

Specify what language would like to be returned in the response.If no specified language, take English instead. The possible values can be any “Language Code” mentioned at ISO 639-1 language code.

public IEnumerable<string> Language { get; set; }

Property Value

IEnumerable<String>

ResultProjectionInSrid

Specifies the SRID (spatial reference system ID). If this value less than or equal to 0, it means than you don't use SRID.

public int ResultProjectionInSrid { get; set; }

Property Value

Int32

ResultProjectionInProj4String

Specifies the proj4string (coordinate system)

public string ResultProjectionInProj4String { get; set; }

Property Value

String

Debug

Whether to return the detailed exception message. false by default.

public bool Debug { get; set; }

Property Value

Boolean

Constructors

CloudGeocodingOptions()

public CloudGeocodingOptions()