Sử dụng ContactInformation
để xác định thông tin liên hệ của các đối tượng như
cá nhân, hội đồng cơ quan và tổ chức.
Mục này chủ yếu được sử dụng
để cung cấp các URI có chú giải,
liên quan đến các phần tử sau: Election
,
ElectionAdministration
,
Person
, GpUnit
,
và Office
.
Thuộc tính
Bảng sau đây trình bày các thuộc tính của ContactInformation
:
Thuộc tính | Bắt buộc? | Loại | Mô tả |
---|---|---|---|
label |
Không bắt buộc | string |
Một thuộc tính không bắt buộc cho thông tin liên hệ, có thể dẫn chiếu lại
nhãn gốc cho thông tin. Ví dụ: nếu người liên hệ
thông tin được lấy từ tệp CSV, label có thể tham chiếu đến một hàng
Mã nhận dạng. |
language |
Không bắt buộc | language |
Xác định ngôn ngữ dùng để cung cấp thông tin liên hệ. |
Thành phần
Bảng sau đây trình bày các phần tử cho ContactInformation
:
Phần tử | Số bội | Loại | Mô tả |
---|---|---|---|
AddressLine
|
0 trở lên | string |
Liên kết địa chỉ với người liên hệ. Để bao gồm địa chỉ cho người liên hệ, hãy sử dụng nhiều lần xuất hiện của
|
Directions
|
0 hoặc 1 | InternationalizedText |
Cung cấp thông tin định hướng ngoài thông tin địa chỉ. Chỉ đường có thể được sử dụng để cung cấp bất kỳ thông tin bổ sung nào liên quan đến địa chỉ có thể xuất hiện bằng nhiều ngôn ngữ. |
Email |
0 trở lên | AnnotatedString |
Liên kết địa chỉ email với người liên hệ. Nếu có nhiều hơn một
Đã có trường Email , hãy thêm chú thích để người dùng có thể
biết mục đích của từng loại. |
Fax |
0 trở lên | AnnotatedString |
Liên kết số fax với người liên hệ. Nếu có nhiều hơn một
Đã có trường Fax , hãy thêm chú thích để cho người dùng biết
mục đích của mỗi loại. |
LatLng
|
0 hoặc 1 | LatLng |
Liên kết thông tin về kinh độ và vĩ độ tuỳ chọn với một địa chỉ liên hệ của bạn. |
Name
|
0 hoặc 1 | string |
Liên kết tên với người liên hệ. Sử dụng trường này cho việc không có địa chỉ thông tin có thể giúp người dùng liên hệ với cá nhân hoặc tổ chức đó. Ví dụ: "Thư ký Văn phòng, Bộ phận Bầu cử". |
Phone |
0 trở lên | AnnotatedString |
Liên kết số điện thoại với người liên hệ. Nếu có nhiều hơn một
Đã có trường Phone , hãy thêm chú thích để người dùng có thể
biết mục đích của từng loại. |
Uri |
0 trở lên | AnnotatedUri |
Liên kết một URI với người liên hệ. |
Ví dụ
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" ] }