使用 ContactInformation
定義物件的聯絡資訊,例如:
人員、機構董事會和機構。
這個實體主要使用中
來提供註解 URI
與下列元素有關:Election
、
ElectionAdministration
,
Person
、GpUnit
、
和 Office
。
屬性
下表列出 ContactInformation
的屬性:
屬性 | 必填與否 | 類型 | 說明 |
---|---|---|---|
label |
選用 | string |
選填屬性,提供可以參照的聯絡資訊
原先的標籤。舉例來說,如果聯絡人
的資訊來自 CSV,label 可能會參照一列
編號。 |
language |
選用 | language |
指明用來提供聯絡資訊的語言。 |
元素
下表列出 ContactInformation
的元素:
元素 | 多重性 | 類型 | 說明 |
---|---|---|---|
AddressLine
|
0 或更多 | string |
將地址與聯絡人建立關聯。 如要加入聯絡人的地址,請使用多次
|
Directions
|
0 或 1 | InternationalizedText |
除了地址資訊之外,提供方向資訊。 路線可用於提供任何其他地址相關 可能以多種語言列出 |
Email |
0 或更多 | AnnotatedString |
將電子郵件地址與聯絡人建立關聯。如有多個
含有 Email 欄位,請加入註解給使用者
瞭解每個選項的用途 |
Fax |
0 或更多 | AnnotatedString |
將傳真號碼與聯絡人建立關聯。如有多個
含有 Fax 欄位,請加入註解讓使用者知道
分別介紹這兩項工具的用途 |
LatLng
|
0 或 1 | LatLng |
將選用的經緯度資訊與聯絡人建立關聯 讓我們看看 DNS 解析 進一步探索內部和外部位址 |
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" ] }