On Aug 16, 2016, at 3:31 PM, Josh Evans <josh....@brigade.com> wrote:
Hitting the representativeInfoByDivision endpoint with ocdId "ocd-division/country:us/state:ak/cd:1", I get back an empty hash with status code 200 OK. This also applies for many other ocdIds, such as "ocd-division/country:us/state:az/sldl:1" and all other Arizona sldl divisions. I would expect the data returned to be consistent with other ocdIds (i.e., a Representatives Resource) instead of being an empty hash.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
{
"divisions": {
"ocd-division/country:us/state:ak/cd:1": {
"name": "Alaska",
"alsoKnownAs": [
"ocd-division/country:us/state:ak"
],
"officeIndices": [ 0, 1, 2, 3 ]
},
"offices": [ ... ],
"officials": [ ... ],
}
i.e. the same response, but for the aliased OCDID.
The use-case would be that occasionally it's helpful to iterate through OCDIDs in a structured way. For example if you download some CSV that tells you how many congressional districts each state
has, you could make API queries easily with just string interpolation: "ocd-division/country:us/state:" + state + "/cd:" + i
Cheers,
Tom
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
Thanks, Chetan and Jason!This is somewhat off-topic, but: You say "non-canonical OCD ID". Is that an actual thing?
Is there some way to tell that given two OCDID aliases, say ocd-division/country:us/state:ca/place:san_francisco and ocd-division/country:us/state:ca/county:san_francisco, that one or the other is "canonical"?Intuitively, it seems like the canonical-ness ("canon"?) depends on your use-case -- if you are looking to display a set of counties then the "county:san_francisco" one is canonical; if you are looking to display a set of census places, then "place:san_francisco" is canonical.Tom
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsubscrib...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsubscrib...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsubscrib...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsubscrib...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsubscrib...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsubscrib...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo-api+unsubscrib...@googlegroups.com.