使用 ContactInformation
可以定义有关对象(例如人员、董事会和组织)的联系信息。
此实体主要用于提供与以下元素相关的带注解的 URI:Election
、ElectionAdministration
、Person
、GpUnit
和 Office
。
属性
下表显示了 ContactInformation
的属性:
属性 | 是否必需? | 类型 | 说明 |
---|---|---|---|
label |
可选 | string |
联系信息的可选属性,此属性可以回溯到信息的原始标签。例如,如果联系信息来自 CSV 文件,则 label 可能引用行 ID。 |
language |
可选 | language |
标识提供联系信息所用的语言。 |
元素
下表显示了 ContactInformation
的元素:
元素 | 多样性 | 类型 | 说明 |
---|---|---|---|
AddressLine
|
0 个或更多 | string |
将地址与联系人相关联。 如需添加联系人的地址,请多次使用 |
Directions
|
0 或 1 | InternationalizedText |
除了地址信息之外,还提供方向信息。 路线可用于提供可能以多种语言显示的其他任何地址相关信息。 |
Email |
0 个或更多 | AnnotatedString |
将电子邮件地址与联系人相关联。如果存在多个 Email 字段,请添加注释,让用户了解每个字段的用途。 |
Fax |
0 个或更多 | AnnotatedString |
将传真号码与联系人相关联。如果存在多个 Fax 字段,请添加注释,让用户了解每个字段的用途。 |
LatLng
|
0 或 1 | LatLng |
将可选的纬度和经度信息与联系人地址相关联。 |
Name
|
0 或 1 | string |
将姓名与联系人相关联。此字段用于非地址信息,这些信息可帮助用户与相应人员或组织联系。 例如,“选举部门州政府办公室书记”。 |
Phone |
0 个或更多 | AnnotatedString |
将电话号码与联系人相关联。如果存在多个 Phone 字段,请添加注释,让用户了解每个字段的用途。 |
Uri |
0 个或更多 | AnnotatedUri |
将 URI 与联系人关联。 |
示例
XML
<ContactInformation> <Uri Annotation="personal-facebook">https://www.facebook.com/tedcruzpage</Uri> <Uri Annotation="personal-twitter">https://twitter.com/tedcruz</Uri> <Uri Annotation="personal-website">https://www.tedcruz.org/</Uri> <Uri Annotation="wikipedia">https://en.wikipedia.org/wiki/Ted_Cruz</Uri> </ContactInformation>
<ContactInformation label="ci60001" language=”es”> <AddressLine>Viad. Tlalpan 100</AddressLine> <AddressLine>Arenal Tepepan</AddressLine> <AddressLine>14610 Ciudad de México, CDMX</AddressLine> <AddressLine>Mexico</AddressLine> <Name>Instituto Nacional Electoral</Name> <Phone annotation="domestic">01 800 433 2000</Phone> <Phone annotation="usa">1 (866) 986 8306</Phone> <Phone annotation="collect">+52 (55) 5481 9897</Phone> <Uri Annotation="official-website">https://www.ine.mx/</Uri> <Uri Annotation="official-twitter">https://twitter.com/INEMexico</Uri> <Uri Annotation="official-facebook">https://www.facebook.com/INEMexico</Uri> </ContactInformation>
<ContactInformation label="ci10861a" language=”en”> <AddressLine>1600 Pennsylvania Ave</AddressLine> <AddressLine>Washington, DC 20006</AddressLine> <Email>president@whitehouse.gov</Email> <Phone>202-456-1111</Phone> <Phone annotation="TDD">202-456-6213</Phone> <Uri Annotation="official-website">http://www.whitehouse.gov</Uri> <Uri Annotation="official-facebook">https://www.facebook.com/WhiteHouse</Uri> <Uri Annotation="official-twitter">https://twitter.com/WhiteHouse</Uri> </ContactInformation>
JSON
"ContactInformation": { "Uri": [ "Annotation": "personal-facebook" "value": "https://www.facebook.com/tedcruzpage" ], "Uri": [ "Annotation": "personal-twitter" "value": "https://twitter.com/tedcruz" ], "Uri": [ "Annotation": "personal-website" "value": "https://www.tedcruz.org/" ], "Uri": [ "Annotation": "wikipedia" "value": "https://en.wikipedia.org/wiki/Ted_Cruz" ] }
"ContactInformation": { "language": "es", "label": "ci60001", "AddressLine": [ "Viad. Tlalpan 100", "Arenal Tepepan", "14610 Ciudad de México, CDMX", "Mexico" ], "Name": "Instituto Nacional Electoral", "Phone": [ { "annotation": "domestic", "value": "01 800 433 2000" }, { "annotation": "usa", "value": "1 (866) 986 8306" }, { "annotation": "collect", "value": "+52 (55) 5481 9897" } ], "Uri": [ "Annotation": "official-website" "value": "https://www.ine.mx/" ], "Uri": [ "Annotation": "official-twitter" "value": "https://twitter.com/INEMexico" ], "Uri": [ "Annotation": "official-facebook" "value": "https://www.facebook.com/INEMexico" ] }
"ContactInformation": { "label": "ci10861a", "language": "en", "AddressLine": [ "1600 Pennsylvania Ave", "Washington, DC 20006" ], "Email": "president@whitehouse.gov", "Phone": [ { "value": "202-456-1111" }, { "annotation": "TDD", "value": "202-456-6213" } ], "Uri": [ "Annotation": "official-website" "value": "http://www.whitehouse.gov" ], "Uri": [ "Annotation": "official-facebook" "value": "https://www.facebook.com/WhiteHouse" ], "Uri": [ "Annotation": "official-twitter" "value": "https://twitter.com/WhiteHouse" ] }