You need to know the congressional district you were querying, in this case 3, 
then the parent key is:

> ocd-division/country:us/state:wi/cd:3

 and the full record

> "ocd-division/country:us/state:wi/cd:3": {
>    "name": "Wisconsin's 3rd congressional district",
>    "officeIndices": [
>     3
>    ]
>   },



> On Nov 20, 2018, at 6:38 PM, Alex Dvoretskiy <advoretski...@gmail.com> wrote:
> 
> Hello,
> 
> I'm writing a tool for extracting congressional district. Getting http JSON 
> response from google civic api.
> I need only one line "name": "Wisconsin's 3rd congressional district"  How 
> web developers usually proceed with such task?
> 
> {
>  "normalizedInput": {
>   "line1": "9732 570th Avenue",
>   "city": "Ellsworth",
>   "state": "WI",
>   "zip": "54011"
>  },
>  "divisions": {
>   "ocd-division/country:us": {
>    "name": "United States",
>    "officeIndices": [
>     0,
>     1
>    ]
>   },
>   "ocd-division/country:us/state:wi": {
>    "name": "Wisconsin",
>    "officeIndices": [
>     2,
>     4,
>     5,
>     8,
>     9,
>     10,
>     11
>    ]
>   },
>   "ocd-division/country:us/state:wi/cd:3": {
>    "name": "Wisconsin's 3rd congressional district",
>    "officeIndices": [
>     3
>    ]
>   },
>   "ocd-division/country:us/state:wi/county:pierce": {
>    "name": "Pierce County",
>    "officeIndices": [
>     12,
>     13,
>     14,
>     15,
>     16,
>     17,
>     18
>    ]
>   },
>   "ocd-division/country:us/state:wi/county:pierce/council_district:13": {
>    "name": "Pierce County Supervisor District 13",
>    "officeIndices": [
>     19
>    ]
>   },
>   "ocd-division/country:us/state:wi/county:pierce/place:oak_grove": {
>    "name": "Oak Grove town"
>   },
>   
> "ocd-division/country:us/state:wi/county:pierce/school_district:prescott_school_district":
>  {
>    "name": "prescott school district"
>   },
>   "ocd-division/country:us/state:wi/court_of_appeals:3": {
>    "name": "WI State Court of Appeals - District III (3)"
>   },
>   "ocd-division/country:us/state:wi/sldl:93": {
>    "name": "Wisconsin Assembly district 93",
>    "officeIndices": [
>     7
>    ]
>   },
>   "ocd-division/country:us/state:wi/sldu:31": {
>    "name": "Wisconsin State Senate district 31",
>    "officeIndices": [
>     6
>    ]
>   }
>  }
> }
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com 
> <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to