on develop help sign in
Updating civicinfo service definition
e4c7c19Brendan Hay
gen/model/civicinfo/v2/civicinfo-api.json+128−4
@@ -1,19 +1,19 @@
1{
1{
2 "kind": "discovery#restDescription",
2 "kind": "discovery#restDescription",
3− "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/dddQ_XrBtLta7hoQNz6vCsWY1OE\"",
3+ "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/sNrwy4GBJh0JDl02KcW1-1MdJOM\"",
4 "discoveryVersion": "v1",
4 "discoveryVersion": "v1",
5 "id": "civicinfo:v2",
5 "id": "civicinfo:v2",
6 "name": "civicinfo",
6 "name": "civicinfo",
7 "canonicalName": "Civic Info",
7 "canonicalName": "Civic Info",
8 "version": "v2",
8 "version": "v2",
9− "revision": "20161017",
9+ "revision": "20161102",
10 "title": "Google Civic Information API",
10 "title": "Google Civic Information API",
11 "description": "Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.",
11 "description": "Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.",
12 "ownerDomain": "google.com",
12 "ownerDomain": "google.com",
13 "ownerName": "Google",
13 "ownerName": "Google",
14 "icons": {
14 "icons": {
15− "x16": "http://www.google.com/images/icons/product/search-16.gif",
15+ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
16− "x32": "http://www.google.com/images/icons/product/search-32.gif"
16+ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
17 },
17 },
18 "documentationLink": "https://developers.google.com/civic-information",
18 "documentationLink": "https://developers.google.com/civic-information",
19 "protocol": "rest",
19 "protocol": "rest",
@@ -688,6 +688,108 @@
688 }
688 }
689 }
689 }
690 },
690 },
691+ "PostalAddress": {
692+ "id": "PostalAddress",
693+ "type": "object",
694+ "properties": {
695+ "addressLines": {
696+ "type": "array",
697+ "items": {
698+ "type": "string"
699+ }
700+ },
701+ "administrativeAreaName": {
702+ "type": "string"
703+ },
704+ "countryName": {
705+ "type": "string"
706+ },
707+ "countryNameCode": {
708+ "type": "string"
709+ },
710+ "dependentLocalityName": {
711+ "type": "string"
712+ },
713+ "dependentThoroughfareLeadingType": {
714+ "type": "string"
715+ },
716+ "dependentThoroughfareName": {
717+ "type": "string"
718+ },
719+ "dependentThoroughfarePostDirection": {
720+ "type": "string"
721+ },
722+ "dependentThoroughfarePreDirection": {
723+ "type": "string"
724+ },
725+ "dependentThoroughfareTrailingType": {
726+ "type": "string"
727+ },
728+ "dependentThoroughfaresConnector": {
729+ "type": "string"
730+ },
731+ "dependentThoroughfaresIndicator": {
732+ "type": "string"
733+ },
734+ "dependentThoroughfaresType": {
735+ "type": "string"
736+ },
737+ "firmName": {
738+ "type": "string"
739+ },
740+ "isDisputed": {
741+ "type": "boolean"
742+ },
743+ "languageCode": {
744+ "type": "string"
745+ },
746+ "localityName": {
747+ "type": "string"
748+ },
749+ "postBoxNumber": {
750+ "type": "string"
751+ },
752+ "postalCodeNumber": {
753+ "type": "string"
754+ },
755+ "postalCodeNumberExtension": {
756+ "type": "string"
757+ },
758+ "premiseName": {
759+ "type": "string"
760+ },
761+ "recipientName": {
762+ "type": "string"
763+ },
764+ "sortingCode": {
765+ "type": "string"
766+ },
767+ "subAdministrativeAreaName": {
768+ "type": "string"
769+ },
770+ "subPremiseName": {
771+ "type": "string"
772+ },
773+ "thoroughfareLeadingType": {
774+ "type": "string"
775+ },
776+ "thoroughfareName": {
777+ "type": "string"
778+ },
779+ "thoroughfareNumber": {
780+ "type": "string"
781+ },
782+ "thoroughfarePostDirection": {
783+ "type": "string"
784+ },
785+ "thoroughfarePreDirection": {
786+ "type": "string"
787+ },
788+ "thoroughfareTrailingType": {
789+ "type": "string"
790+ }
791+ }
792+ },
691 "RepresentativeInfoData": {
793 "RepresentativeInfoData": {
692 "id": "RepresentativeInfoData",
794 "id": "RepresentativeInfoData",
693 "type": "object",
795 "type": "object",
@@ -821,6 +923,9 @@
821 "properties": {
923 "properties": {
822 "contextParams": {
924 "contextParams": {
823 "$ref": "ContextParams"
925 "$ref": "ContextParams"
926+ },
927+ "voterInfoSegmentResult": {
928+ "$ref": "VoterInfoSegmentResult"
824 }
929 }
825 }
930 }
826 },
931 },
@@ -892,6 +997,25 @@
892 }
997 }
893 }
998 }
894 }
999 }
1000+ },
1001+ "VoterInfoSegmentResult": {
1002+ "id": "VoterInfoSegmentResult",
1003+ "type": "object",
1004+ "properties": {
1005+ "generatedMillis": {
1006+ "type": "string",
1007+ "format": "int64"
1008+ },
1009+ "postalAddress": {
1010+ "$ref": "PostalAddress"
1011+ },
1012+ "request": {
1013+ "$ref": "VoterInfoRequest"
1014+ },
1015+ "response": {
1016+ "$ref": "VoterInfoResponse"
1017+ }
1018+ }
895 }
1019 }
896 },
1020 },
897 "resources": {
1021 "resources": {