未直接使用或引用 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
描述以下活动的票数:
BallotSelection
Contest
。
元素
下表介绍了 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" } ]