Skip to content

CloudGeocodingOptions

Namespace: ThinkGeo.Core

A class provides the options for the Geocoding APIs.

public class CloudGeocodingOptions

Inheritance object → CloudGeocodingOptions

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

bool

MaxResults

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

public int MaxResults { get; set; }

Property Value

int

BBox

Limit the results to only those contained within the supplied bounding box. null by default, as the global. Sent to the v3 server as a "BoundingBox" numeric array.

public RectangleShape BBox { get; set; }

Property Value

RectangleShape

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. Sent to the v3 server as "CountryCodes".

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). Defaults to 4326 server-side when 0.

public int ResultProjectionInSrid { get; set; }

Property Value

int

Debug

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

public bool Debug { get; set; }

Property Value

bool

ResultDetail

Whether the geocoding results should be verbose or not.

public CloudGeocodingResultDetail ResultDetail { get; set; }

Property Value

CloudGeocodingResultDetail

SearchMode

Whether to attempt approximate, as well as exact, matching.

public CloudGeocodingSearchMode SearchMode { get; set; }

Property Value

CloudGeocodingSearchMode

LocationType

The location types to limit the search to.

public CloudGeocodingLocationType LocationType { get; set; }

Property Value

CloudGeocodingLocationType

IncludeOverturePlaces

Whether to append results from Overture Places (POI) data.

public bool IncludeOverturePlaces { get; set; }

Property Value

bool

OverturePlaceCategory

The Overture place category to search.

public string OverturePlaceCategory { get; set; }

Property Value

string

ResultProjectionInProj4String

The proj4 string of the coordinate system the results come back in.

public string ResultProjectionInProj4String { get; set; }

Property Value

string

Constructors

CloudGeocodingOptions()

public CloudGeocodingOptions()