I am getting closer to finishing my project to produce Google + GIS maps that show all the state legislative districts. Along the way I have done some data validation on json files produced by the openstates API and have noticed a few cases of extra or missing data. If there is a better way to report that kind of info other than posting in this forum, please let me know.
The json files on which I did the data validation are the downloads for each state.
The ‘extra’ legislators are all shown in the json files to be ‘active’. I have confirmed the correct number of seats. My data validation was just doing a simple count so I do not know which names need to be deleted from the openstates data.
When someone clicks a district on the maps I am producing, then my code makes an API call to openstates and displays a popup with info on the person(s) representing that district. For example, here is the API call that my code would make if someone is looking at the Wyoming house map and clicks district 6:
https://openstates.org/api/v1/legislators/?state=wy&chamber=lower&district=6The above call returns 2 ‘active’ names. However, Wyoming only has 1 representative per district.Does openstates have software it can run to fix these issues or does identifying the names that need to be deleted require a bunch of manual work?
Here is a list of the data problems that I have found.Arkansas
json_state_house_seats = 119 Correct value = 100
json_state_senate_seats = 39 Correct value = 35
Colorado
json_state_house_seats = 66 Correct value = 65
json_state_senate_seats = 36 Correct value = 35
Connecticut
house district not in json: 115
senate district not in json: 2 and 32
Delaware
json_state_senate_seats = 22 Correct value = 21
Louisiana
json_state_house_seats = 108 Correct value = 105
Missouri
house district name not in json: 50
senate district name not in json: 28
New York
json_state_house_seats = 151 Correct value = 150
json_state_senate_seats = 31 Correct value = 29
Utah
json_state_house_seats = 88 Correct value = 75
json_state_senate_seats = 31 Correct value = 29
Virginia
json_state_house_seats = 104 Correct value = 100
json_state_senate_seats = 44 Correct value = 40
Vermont
json_state_house_seats = 156 Correct value = 150
Wyoming
json_state_house_seats = 79 Correct value = 60
json_state_senate_seats = 37 Correct value = 30
Joseph Elfelt
https://mappingsupport.com