����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.110 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/www/vendor/google/apiclient-services/src/CivicInfo/Resource/ |
Upload File : |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CivicInfo\Resource;
use Google\Service\CivicInfo\RepresentativeInfoData;
use Google\Service\CivicInfo\RepresentativeInfoResponse;
/**
* The "representatives" collection of methods.
* Typical usage is:
* <code>
* $civicinfoService = new Google\Service\CivicInfo(...);
* $representatives = $civicinfoService->representatives;
* </code>
*/
class Representatives extends \Google\Service\Resource
{
/**
* Looks up political geography and representative information for a single
* address. (representatives.representativeInfoByAddress)
*
* @param array $optParams Optional parameters.
*
* @opt_param string address The address to look up. May only be specified if
* the field ocdId is not given in the URL
* @opt_param bool includeOffices Whether to return information about offices
* and officials. If false, only the top-level district information will be
* returned.
* @opt_param string levels 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.
* @opt_param string roles 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.
* @return RepresentativeInfoResponse
*/
public function representativeInfoByAddress($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('representativeInfoByAddress', [$params], RepresentativeInfoResponse::class);
}
/**
* Looks up representative information for a single geographic division.
* (representatives.representativeInfoByDivision)
*
* @param string $ocdId The Open Civic Data division identifier of the division
* to look up.
* @param array $optParams Optional parameters.
*
* @opt_param string levels 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.
* @opt_param bool recursive If true, information about all divisions contained
* in the division requested will be included as well. For example, if querying
* ocd-division/country:us/district:dc, this would also return all DC's wards
* and ANCs.
* @opt_param string roles 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.
* @return RepresentativeInfoData
*/
public function representativeInfoByDivision($ocdId, $optParams = [])
{
$params = ['ocdId' => $ocdId];
$params = array_merge($params, $optParams);
return $this->call('representativeInfoByDivision', [$params], RepresentativeInfoData::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Representatives::class, 'Google_Service_CivicInfo_Resource_Representatives');