/people.districtID ? #288
Replies: 3 comments 4 replies
-
Hi Steven,
Thanks for getting in touch.
When you say districtID, what are you referring to?
We have a way to get legislators by state (jurisdiction) — most just get a whole state’s worth and don’t iterate over districts (which is tricky for a number of reasons) but if you have a need we can consider it.
James
…On Feb 11, 2021, 9:39 PM -0500, stevenromalewski ***@***.***>, wrote:
We're just starting to use the v3 API. There's an option to identify legislators and their office contact info via the /people.geo API call. But that requires a lat/lon, as far as we can tell. Maybe we're missing something obvious, but is there an API call that will retrieve legislators and their office contact info via a district ID?
We used an earlier version of the API at our Census 2020 Hard to Count/Response Rate map https://www.censushardtocountmaps2020.us/ and it was terrific. It really helped census stakeholders visualize the implications of the 2020 census for state legislative districts (and connect these stakeholders with state elected officials).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
Adding FIPS would be interesting, and something to consider for sure. In the interim, it wouldn't be too hard to add a district= parameter to the people endpoint that would allow searching by district name/number. If you have a chance before I get to it, can you open a feature request ticket? I'll find some time soon to squeeze this in, I don't think it'd be a major lift and the use case makes sense. |
Beta Was this translation helpful? Give feedback.
-
I had some time, so squeezed in the district= parameter -- you can see it here: https://v3.openstates.org/docs#/people/people_search_people_get |
Beta Was this translation helpful? Give feedback.
-
We're just starting to use the v3 API. There's an option to identify legislators and their office contact info via the /people.geo API call. But that requires a lat/lon, as far as we can tell. Maybe we're missing something obvious, but is there an API call that will retrieve legislators and their office contact info via a district ID?
We used an earlier version of the API at our Census 2020 Hard to Count/Response Rate map https://www.censushardtocountmaps2020.us/ and it was terrific. It really helped census stakeholders visualize the implications of the 2020 census for state legislative districts (and connect these stakeholders with state elected officials).
Beta Was this translation helpful? Give feedback.
All reactions