Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Searches for political divisions by their natural name or OCD ID.
See: Google Civic Information API Reference for civicinfo.divisions.search
.
Synopsis
- type DivisionsSearchResource = "civicinfo" :> ("v2" :> ("divisions" :> (QueryParam "query" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DivisionSearchRequest :> Get '[JSON] DivisionSearchResponse)))))
- divisionsSearch :: DivisionSearchRequest -> DivisionsSearch
- data DivisionsSearch
- dsPayload :: Lens' DivisionsSearch DivisionSearchRequest
- dsQuery :: Lens' DivisionsSearch (Maybe Text)
REST Resource
type DivisionsSearchResource = "civicinfo" :> ("v2" :> ("divisions" :> (QueryParam "query" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DivisionSearchRequest :> Get '[JSON] DivisionSearchResponse))))) Source #
A resource alias for civicinfo.divisions.search
method which the
DivisionsSearch
request conforms to.
Creating a Request
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:
data DivisionsSearch Source #
Searches for political divisions by their natural name or OCD ID.
See: divisionsSearch
smart constructor.
Instances
Request Lenses
dsPayload :: Lens' DivisionsSearch DivisionSearchRequest Source #
Multipart request metadata.
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