Class DivisionsResource.SearchRequest
Searches for political divisions by their natural name or OCD ID.
Inheritance
DivisionsResource.SearchRequest
Inherited Members
Namespace: Google.Apis.CivicInfo.v2
Assembly: Google.Apis.CivicInfo.v2.dll
Syntax
public class DivisionsResource.SearchRequest : CivicInfoBaseServiceRequest<DivisionSearchResponse>, IClientServiceRequest<DivisionSearchResponse>, IClientServiceRequest
Constructors
SearchRequest(IClientService)
Constructs a new Search request.
Declaration
public SearchRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Query
The search query. Queries can cover any parts of a OCD ID or a human readable division name. All words given in the query are treated as required patterns. In addition to that, most query operators of the Apache Lucene library are supported. See http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
Declaration
[RequestParameter("query", RequestParameterType.Query)]
public virtual string Query { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes Search parameter list.
Declaration
protected override void InitParameters()