联系信息

使用 ContactInformation 可以定义有关对象的联系信息,例如 政府机关和组织。

此实体主要用于 来提供带注释的 URI 与以下元素相关:ElectionElectionAdministration, PersonGpUnit、 和 Office

属性

下表显示了 ContactInformation 的属性:

属性 是否必需? 类型 说明
label 可选 string 此属性为可选属性,用于提供可参考的联系信息。 信息的原始标签。例如,如果联系人 信息来自 CSV 文件,label 可能引用一行 ID。
language 可选 language 指明用于提供联系信息的语言。

元素

下表显示了 ContactInformation 的元素:

元素 多样性 类型 说明
AddressLine 0 或更多 string

将地址与联系人相关联。AddressLine 需要包含用户会在网络映射中输入的行 服务(例如 Google 地图)在地图上查找地址。也就是说, 字段的值需要对联系人位置进行地理编码。

要加入联系人的地址,请多次使用 AddressLine。我们希望首次使用 AddressLine 是名称或组织。我们预计 之后使用 将是街道地址、城市、邮政编码、城市 状态(或等效状态,可选),按特定顺序和格式 国家/地区。

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"
      ]
    }