Representatives: representativeInfoByDivision

查找单个地理分区的代表性信息。立即尝试

请求

HTTP 请求

GET https://www.googleapis.com/civicinfo/v2/representatives/ocdId

参数

参数名称 说明
路径参数
ocdId string 要查询的部门的 Open Civic Data 部门标识符。
可选的查询参数
levels string 要作为过滤依据的办公室级别列表。系统仅返回至少服务于其中一个等级的办事处。系统不会返回不包含匹配办公室的部门。

可接受的值:
  • administrativeArea1
  • administrativeArea2
  • country
  • international
  • locality
  • regional
  • special
  • subLocality1
  • subLocality2
recursive boolean 如果为 true,则还将包含所请求部门包含的所有部门的相关信息。例如,如果查询 ocd-division/country:us/district:dc,这也会返回所有 DC 的服务和 ANC。
roles string 要作为过滤依据的 Office 角色列表。系统将仅返回担任这些角色之一的办事处。系统不会返回不包含匹配办公室的部门。

可接受的值:
  • deputyHeadOfGovernment
  • executiveCouncil
  • governmentOfficer
  • headOfGovernment
  • headOfState
  • highestCourtJudge
  • judge
  • legislatorLowerBody
  • legislatorUpperBody
  • schoolBoard
  • specialPurposeOfficer

请求正文

使用此方法时请勿提供请求正文。

响应

如果成功,此方法将在响应正文中返回 Representatives 资源

试试看!