ContactInformation を使用して、人物、委員会、組織などのオブジェクトに関する連絡先情報を定義します。
このエンティティは主に、Election、ElectionAdministration、Person、GpUnit、Office の各要素に関連するアノテーション付き URI を提供するために使用されます。
属性
次の表に、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 番号を連絡先に関連付けます。複数の Fax フィールドが存在する場合は、各フィールドの目的をユーザーに知らせるアノテーションを含めます。 |
LatLng
|
0 または 1 | LatLng |
省略可能な緯度と経度の情報を連絡先住所に関連付けます。 |
Name
|
0 または 1 | string |
連絡先に名前を関連付けます。このフィールドには、ユーザーがその個人または組織に連絡する際に役立つ、住所以外の情報を入力します。たとえば、「Secretary of State Office, Election Department」などです。 |
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" ] }