gogol-civicinfo-0.0.1: Google Civic Information SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.CivicInfo.Divisions.Search

Contents

Description

Searches for political divisions by their natural name or OCD ID.

See: Google Civic Information API Reference for civicinfo.divisions.search.

Synopsis

REST Resource

type DivisionsSearchResource = "civicinfo" :> ("v2" :> ("divisions" :> (QueryParam "query" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` DivisionSearchResponse)))) Source

A resource alias for civicinfo.divisions.search method which the DivisionsSearch request conforms to.

Creating a Request

divisionsSearch :: DivisionsSearch Source

Creates a value of DivisionsSearch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dsQuery :: Lens' DivisionsSearch (Maybe Text) Source

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