The Civic Choreo allows you to retrieve a host of information about your district and representatives based on the Latitude and Logitude inputs you provide. Currently, this Choreo returns:
- Demographic census data for your current location
- The Congressional representatives for your current location
- The last five votes those representatives cast in congress
- The last five bills those representatives sponsored
- A list of 100 words most frequently used by the representative When the credentials input includes an optional LittleSis API Key, the Choreo additionally returns:
- A set of LittleSis lists in which the representative appears
- A list of key people and organizations to which the representative may have either a business, personal, or political connection (This list tracks known memberships, education, family connections, past positions, and business ownerships in the LIttleSis database).
Below is a sample set of inputs:
Latitude: 40.718503
Longitude: -74.005652
APICredentials:
{
"SunlightLabs": {
"APIKey": "YOUR SUNLIGHT API KEY"
},
"LittleSis": {
"APIKey": "YOUR LITTLE SIS API KEY"
}
}
This Choreo chains one or more "Child Choreos" together. Below is a list of the Temboo Library Choreos that are called by this Choreo:
- Library.SunlightLabs.Congress.Legislator.GetByCoordinates
- Library.GovTrack.VoteAndVoter
- Library.GovTrack.Bill
- Library.SunlightLabs.CapitolWords.Phrases
- Library.DataGov.GetDemographicsByCoordinates
- Library.LittleSis.Entity.GetEntityByOutsideID
- Library.LittleSis.Entity.GetEntitiesWithRelationship
- Library.LittleSis.Entity.GetListsByEntity
The following is a partial sample of the JSON information returned by this Choreo:
{
"demographics": {
"Results": {
"blockFips": "360610033002006",
"incomeBelowPoverty": "0.16600",
"medianIncome": "91133.00000",
"incomeLessThan25": "0.10400",
"incomeBetween25to50": "0.03180",
"incomeBetween50to100": "0.16180",
"incomeBetween100to200": "0.32080",
"incomeGreater200": "0.38150",
"educationHighSchoolGraduate": "0.93560",
"educationBachelorOrGreater": "0.78410"
}
},
"legislators": [
{
"website": "http://www.gillibrand.senate.gov",
"fax": "202-225-1168",
"govtrack_id": "412223",
"firstname": "Kirsten",
"chamber": "senate",
"middlename": "E.",
"lastname": "Gillibrand",
"congress_office": "478 Russell Senate Office Building",
"eventful_id": [],
"phone": "202-224-4451",
"webform": "http://www.gillibrand.senate.gov/contact/",
"youtube_url": "http://www.youtube.com/KirstenEGillibrand",
"nickname": [],
"gender": "F",
"district": "Junior Seat",
"title": "Sen",
"congresspedia_url": "http://www.opencongress.org/wiki/Kirsten_Gillibrand",
"in_office": "True",
"senate_class": "I",
"name_suffix": [],
"twitter_id": "SenGillibrand",
"birthdate": "1966-12-09",
"bioguide_id": "G000555",
"fec_id": "H6NY20167",
"state": "NY",
"crp_id": "N00027658",
"official_rss": [],
"facebook_id": "KirstenGillibrand",
"party": "D",
"email": [],
"votesmart_id": "65147",
"votes": {
"objects": [
{
"person_name": "Sen. Kirsten Gillibrand [D-NY]",
"option": "+",
"created": "2011-04-14T17:28:00",
"person": "/api/v1/person/412223/",
"link": "http://www.govtrack.us/congress/votes/112-2011/s61",
"vote_description": "Senate Vote #61",
"vote": "/api/v1/vote/3/",
"voter_type_label": "Member of Congress",
"resource_uri": "/api/v1/vote_voter/26198046/",
"id": "26198046",
"voter_type": "member"
},
{
"person_name": "Sen. Kirsten Gillibrand [D-NY]",
"option": "+",
"created": "2011-05-23T17:01:00",
"person": "/api/v1/person/412223/",
"link": "http://www.govtrack.us/congress/votes/112-2011/s75",
"vote_description": "Senate Vote #75",
"vote": "/api/v1/vote/15/",
"voter_type_label": "Member of Congress",
"resource_uri": "/api/v1/vote_voter/26198139/",
"id": "26198139",
"voter_type": "member"
},
{
"person_name": "Sen. Kirsten Gillibrand [D-NY]",
"option": "-",
"created": "2011-02-02T18:05:00",
"person": "/api/v1/person/412223/",
"link": "http://www.govtrack.us/congress/votes/112-2011/s9",
"vote_description": "Senate Vote #9",
"vote": "/api/v1/vote/16/",
"voter_type_label": "Member of Congress",
"resource_uri": "/api/v1/vote_voter/26198279/",
"id": "26198279",
"voter_type": "member"
}
]
},
"bills": {
"object": {
"number": 303,
"docs_house_gov_postdate": [],
"sponsor": {
"sortname": "Gillibrand, Kirsten (Sen.) [D-NY]",
"firstname": "Kirsten",
"twitterid": "SenGillibrand",
"middlename": "E.",
"lastname": "Gillibrand",
"bioguideid": "G000555",
"namemod": [],
"name": "Sen. Kirsten Gillibrand [D-NY]",
"metavidid": "Kirsten_Gillibrand",
"birthday": [],
"link": "http://www.govtrack.us/congress/members/kirsten_gillibrand/412223",
"youtubeid": "KirstenEGillibrand",
"gender": "female",
"gender_label": "Female",
"osid": "N00027658",
"resource_uri": "/api/v1/person/412223/",
"nickname": [],
"id": "412223",
"pvsid": "65147"
},
"id": "142791",
"thomas_link": "http://thomas.loc.gov/cgi-bin/bdquery/z?d110:hres303:",
"title": "H.Res. 303 (110th): Expressing the sense of the House of Representatives that a day ought to be established to bring awareness to the issue of missing persons.",
"senate_floor_schedule_postdate": [],
"current_status_description": "This simple resolution passed on September 24, 2007. That is the end of the legislative process for a simple resolution.",
"current_status_label": "Passed (Simple Resolution)",
"sponsor_role": {
"website": "http://gillibrand.house.gov",
"startdate": "2007-01-04",
"role_type_label": "Representative",
"enddate": "2009-01-03",
"description": "Representative for New York's 20th congressional district",
"district": 20,
"title": "Rep.",
"congress_numbers": {
"value": 110
},
"title_long": "Representative",
"current": false,
"state": "NY",
"senator_class": [],
"party": "Democrat",
"id": "41732",
"role_type": "representative",
"resource_uri": "/api/v1/role/41732/"
},
"is_alive": false,
"title_without_number": "Expressing the sense of the House of Representatives that a day ought to be established to bring awareness to the issue of missing persons.",
"congress": 110,
"bill_type": "house_resolution",
"is_current": false,
"display_number": "H.Res. 303",
"bill_type_label": "H.Res.",
"bill_resolution_type": "resolution",
"current_status_date": "2007-09-24",
"current_status": "passed_simpleres",
"introduced_date": "2007-04-17",
"link": "http://www.govtrack.us/congress/bills/110/hres303",
"resource_uri": "/api/v1/bill/142791/"
}
},
"words": {
"response": [
{
"tfidf": "0.00164044506709",
"count": "22",
"ngram": "sojourner"
},
{
"tfidf": "0.00150617435333",
"count": "28",
"ngram": "upstate"
}
]
}
}
]
}