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