聯絡資訊

使用 ContactInformation 定義物件的聯絡資訊,例如人員、主管機關和機構。

這個實體主要用於提供與下列元素相關的註解 URIElectionElectionAdministrationPersonGpUnitOffice

屬性

下表顯示 ContactInformation 的屬性:

屬性 是否必要? 類型 說明
label 選用 string 聯絡資訊的選用屬性,可參照資訊的原始標籤。舉例來說,如果聯絡資訊來自 CSV 檔案,label 可能會參照列 ID。
language 選用 language 識別提供聯絡資訊時使用的語言。

元素

下表顯示 ContactInformation 的元素:

元素 多重性 類型 說明
AddressLine 0 以上 string

將地址與聯絡人建立關聯。AddressLine 必須包含使用者在 Google 地圖等網路地圖服務中輸入的地址,才能在地圖上找到該地址。也就是說,欄位值必須對聯絡人位置進行地理編碼。

如要加入聯絡人的地址,請多次使用 AddressLine。我們預期第一個 AddressLine 是名稱或機構。我們預期後續用途為街道地址、城市、郵遞區號、城市、州/省 (或同等州/省,選填),且須符合該國家/地區的特定順序和格式。

Directions 0 或 1 InternationalizedText 除了地址資訊外,還提供方位資訊。 Directions 可用於提供任何額外的地址相關資訊,這些資訊可能會以多種語言顯示。
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="ci-60001" 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="ci-10861a" 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>