on develop help sign in
Updating civicinfo service definition
commite4c7c191ab3441b3fd91bbcdda4144497dead6b1 authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:26 (10 years ago) parentacf315c
1 file changed+128−4
gen/model/civicinfo/v2/civicinfo-api.json+128−4
gen/model/civicinfo/v2/civicinfo-api.json+128−4
@@ -1,19 +1,19 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/dddQ_XrBtLta7hoQNz6vCsWY1OE\"",
3+ "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/sNrwy4GBJh0JDl02KcW1-1MdJOM\"",
44 "discoveryVersion": "v1",
55 "id": "civicinfo:v2",
66 "name": "civicinfo",
77 "canonicalName": "Civic Info",
88 "version": "v2",
9− "revision": "20161017",
9+ "revision": "20161102",
1010 "title": "Google Civic Information API",
1111 "description": "Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.",
1212 "ownerDomain": "google.com",
1313 "ownerName": "Google",
1414 "icons": {
15− "x16": "http://www.google.com/images/icons/product/search-16.gif",
16− "x32": "http://www.google.com/images/icons/product/search-32.gif"
15+ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
16+ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
1717 },
1818 "documentationLink": "https://developers.google.com/civic-information",
1919 "protocol": "rest",
@@ -688,6 +688,108 @@
688688 }
689689 }
690690 },
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+ },
691793 "RepresentativeInfoData": {
692794 "id": "RepresentativeInfoData",
693795 "type": "object",
@@ -821,6 +923,9 @@
821923 "properties": {
822924 "contextParams": {
823925 "$ref": "ContextParams"
926+ },
927+ "voterInfoSegmentResult": {
928+ "$ref": "VoterInfoSegmentResult"
824929 }
825930 }
826931 },
@@ -892,6 +997,25 @@
892997 }
893998 }
894999 }
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+ }
8951019 }
8961020 },
8971021 "resources": {