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.Representatives.RepresentativeInfoByAddress

Contents

Description

Looks up political geography and representative information for a single address.

See: Google Civic Information API Reference for civicinfo.representatives.representativeInfoByAddress.

Synopsis

REST Resource

type RepresentativesRepresentativeInfoByAddressResource = "civicinfo" :> ("v2" :> ("representatives" :> (QueryParams "roles" RepresentativesRepresentativeInfoByAddressRoles :> (QueryParam "address" Text :> (QueryParam "includeOffices" Bool :> (QueryParams "levels" RepresentativesRepresentativeInfoByAddressLevels :> (QueryParam "alt" AltJSON :> Get `[JSON]` RepresentativeInfoResponse))))))) Source

A resource alias for civicinfo.representatives.representativeInfoByAddress method which the RepresentativesRepresentativeInfoByAddress request conforms to.

Creating a Request

representativesRepresentativeInfoByAddress :: RepresentativesRepresentativeInfoByAddress Source

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

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

Request Lenses

rribaRoles :: Lens' RepresentativesRepresentativeInfoByAddress [RepresentativesRepresentativeInfoByAddressRoles] Source

A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.

rribaAddress :: Lens' RepresentativesRepresentativeInfoByAddress (Maybe Text) Source

The address to look up. May only be specified if the field ocdId is not given in the URL.

rribaIncludeOffices :: Lens' RepresentativesRepresentativeInfoByAddress Bool Source

Whether to return information about offices and officials. If false, only the top-level district information will be returned.

rribaLevels :: Lens' RepresentativesRepresentativeInfoByAddress [RepresentativesRepresentativeInfoByAddressLevels] Source

A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.