Re: [go-nuts] Re: google civic api

2018-11-21 Thread Alex Dvoretskiy
Thanks! This is so helpful. I got an idea. Now I can get integer congressional id :) ср, 21 нояб. 2018 г. в 12:14, Caleb Mingle : > I'm not entirely clear on what you're after, but does this help? > https://play.golang.org/p/AcNBcUVtXGg > > That will return you the name field given a state name.

Re: [go-nuts] Re: google civic api

2018-11-21 Thread Caleb Mingle
I'm not entirely clear on what you're after, but does this help? https://play.golang.org/p/AcNBcUVtXGg That will return you the name field given a state name. If you need an integer congressional district number, that will require some modification. If you want this to work without having to pro

[go-nuts] Re: google civic api

2018-11-20 Thread Alex Dvoretskiy
I need the other states, CA, IL... and the other districts 3, 5, 15...: "ocd-division/country:us/state:wi/cd:3" "ocd-division/country:us/state:ca/cd:6" "ocd-division/country:us/state:il/cd:7" I think it's not quite possible to unmarshal this... perhaps use string functions to get congressional di