使用 ContactInformation 定義物件的聯絡資訊,例如人員、主管機關和機構。
這個實體主要用於提供與下列元素相關的註解 URI:Election、ElectionAdministration、Person、GpUnit 和 Office。
屬性
下表顯示 ContactInformation 的屬性:
| 屬性 | 是否必要? | 類型 | 說明 |
|---|---|---|---|
label |
選用 | string |
聯絡資訊的選用屬性,可參照資訊的原始標籤。舉例來說,如果聯絡資訊來自 CSV 檔案,label 可能會參照列 ID。 |
language |
選用 | language |
識別提供聯絡資訊時使用的語言。 |
元素
下表顯示 ContactInformation 的元素:
| 元素 | 多重性 | 類型 | 說明 |
|---|---|---|---|
AddressLine
|
0 以上 | string |
將地址與聯絡人建立關聯。 如要加入聯絡人的地址,請多次使用 |
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>