gogol-civicinfo-0.1.0: Google Civic Information SDK.

Copyright(c) 2015-2016 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:

data RepresentativesRepresentativeInfoByAddress Source #

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

See: representativesRepresentativeInfoByAddress smart constructor.

Instances

Eq RepresentativesRepresentativeInfoByAddress Source # 
Data RepresentativesRepresentativeInfoByAddress Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativesRepresentativeInfoByAddress -> c RepresentativesRepresentativeInfoByAddress #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativesRepresentativeInfoByAddress #

toConstr :: RepresentativesRepresentativeInfoByAddress -> Constr #

dataTypeOf :: RepresentativesRepresentativeInfoByAddress -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativesRepresentativeInfoByAddress) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativesRepresentativeInfoByAddress) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativesRepresentativeInfoByAddress -> RepresentativesRepresentativeInfoByAddress #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByAddress -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByAddress -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByAddress -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByAddress -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddress -> m RepresentativesRepresentativeInfoByAddress #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddress -> m RepresentativesRepresentativeInfoByAddress #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddress -> m RepresentativesRepresentativeInfoByAddress #

Show RepresentativesRepresentativeInfoByAddress Source # 
Generic RepresentativesRepresentativeInfoByAddress Source # 
GoogleRequest RepresentativesRepresentativeInfoByAddress Source # 
type Rep RepresentativesRepresentativeInfoByAddress Source # 
type Rep RepresentativesRepresentativeInfoByAddress = D1 (MetaData "RepresentativesRepresentativeInfoByAddress" "Network.Google.Resource.CivicInfo.Representatives.RepresentativeInfoByAddress" "gogol-civicinfo-0.1.0-BMTHapOmvs94zoyvbGGxCN" False) (C1 (MetaCons "RepresentativesRepresentativeInfoByAddress'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rribaRoles") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [RepresentativesRepresentativeInfoByAddressRoles]))) (S1 (MetaSel (Just Symbol "_rribaAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_rribaIncludeOffices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_rribaLevels") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [RepresentativesRepresentativeInfoByAddressLevels]))))))
type Scopes RepresentativesRepresentativeInfoByAddress Source # 
type Rs RepresentativesRepresentativeInfoByAddress Source # 

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.