Counts 未被直接使用或引用。相反,它仅用作以下实体的扩展基础:
SummaryCounts:用于报告Contest和地缘政治单元 (GpUnit) 汇总投票数。VoteCounts:用于报告Contest投票数。
Counts 可让您按设备特征或选票/填写选票的类型过滤票数。您还可以将统计信息与已定义的 GpUnit 实体(例如国家/地区)相关联。
元素
下表介绍了 Counts 的元素:
| 元素 | 多样性 | 类型 | 说明 |
|---|---|---|---|
GpUnitId |
0 或 1 | IDREF |
GpUnit元素的唯一标识符。用于将统计数据与地缘政治单位(例如选区、县或乡镇)相关联。 |
IsSuppressedForPrivacy |
0 或 1 | boolean |
指示是否出于投票者隐私保护考虑而隐藏票数。如果未提供此参数,则默认值为 false。 |
Type |
0 或 1 | CountItemType |
用作投票数过滤条件的票数类型,例如选举日投票或提前投票。 如果 |
OtherType |
0 或 1 | string |
当 Type 为 other 时,用于指定要统计的内容。 |
SummaryCounts
使用 SummaryCounts 表示整个竞赛或整个地缘政治单元的汇总计数。
SummaryCounts 将 Counts 作为扩展基础,因此会继承 Counts 中的元素。不过,SummaryCounts 不是 Counts 类型,而是直接包含在 Contest 和 GpUnit 中。
SummaryCounts 可用于提供与 Contest 关联的各种统计信息的地理范围级汇总,例如总票数、总多投票数、总少投票数和总自填票数。SummaryCounts 可以选择性地引用为较低级别的报告单元定义的 GpUnit 元素。这样一来,您就可以将汇总计数与竞赛范围内的其他较低级别的报告单位相关联。
SummaryCounts 还可用于提供特定于 GpUnit 的摘要计数。例如,为某个国家/地区定义的 GpUnit 可以包含 SummaryCounts 以提供汇总计数。在这种情况下,SummaryCounts 不包含 Counts 中的 GpUnitId 元素。
在 Counts 中,如果计数项的类型未列在枚举 CountItemType 中,请使用 other,并在 OtherType 中添加自定义类型。
元素
下表介绍了 SummaryCounts 的元素:
| 元素 | 多样性 | 类型 | 说明 |
|---|---|---|---|
BallotsCast |
0 或 1 | integer |
投出的选票数。 |
BallotsOutstanding |
0 或 1 | integer |
尚未统计的选票数量。 |
BallotsRejected |
0 或 1 | integer |
被拒选票的数量。 |
Overvotes |
0 或 1 | integer |
过投票数。 |
Undervotes |
0 或 1 | integer |
弃票数。 |
WriteIns |
0 或 1 | integer |
自行填写的候选人数量。 |
示例
XML
<SummaryCounts> <BallotsCast>2089540</BallotsCast> <WriteIns>2087</WriteIns> </SummaryCounts>
JSON
"SummaryCounts": [ { "BallotsCast": "2089540", "WriteIns": "2087" } ]
VoteCounts
使用 VoteCounts 描述 Contest 中 BallotSelection 的票数。
元素
下表介绍了 VoteCounts 的元素:
| 元素 | 多样性 | 类型 | 说明 |
|---|---|---|---|
Count |
0 或 1 | float |
投出的竞赛票数,介于 0 到 100 之间。在特殊情况下,数量可以包含小数部分。例如,将 14.2% 报告为 如需查看支持的票数统计类型列表,请参阅结果制表类型。 |
示例
XML
<VoteCounts> <GpUnitId>ru_001</GpUnitId> <Type>total</Type> <Count>6173433</Count> </VoteCounts> <VoteCounts> <GpUnitId>ru_001</GpUnitId> <Type>other</Type> <OtherType>projected-vote-percent</OtherType> <Count>22.3</Count> </VoteCounts>
JSON
"VoteCounts": [ { "GpUnitId": "ru_001", "Type": "total", "Count": "6173433" }, { "GpUnitId": "ru_001", "Type": "other", "OtherType": "projected-vote-percent", "Count": "22.3" } ]