akhapwoyaco / GeneralElectionsKenya

Dashboards of Kenya Elections: Held on the 9th August, 2022 by the Independent Electoral and Boundaries Commission of Kenya
Apache License 2.0
1 stars 0 forks source link

data request #1

Open KelvinNYUAD opened 1 week ago

KelvinNYUAD commented 1 week ago

How did you get accurate geodata of polling stations in Kenya and also accurate demarcations of the ward boundaries and any kind of administrative boundaries? I am working on something similar, starting as far back as 2013 and looking at the three elections, but geodata is not easy to get.

akhapwoyaco commented 4 days ago

There are sites providing admin level geoData. On the polling stations, IEBC provides the list, but for geodata requires much more, will share the links ASAP

KelvinNYUAD commented 4 days ago

Hope it's not too much to ask but can you share the data in any format that has coordinates? I have about 80% done but I'm running into issues especially with larger counties in the Northern Kenya and North Eastern Kenya. And your database would be really really helpful.

akhapwoyaco commented 4 days ago

Here is the link to the geo data https://www.geoboundaries.org, you can head up to the individual county data. Although there have been recent changes in some wards/sub counties. Not sure if there have been geo-data demarcation.

akhapwoyaco commented 4 days ago

Would gladly assist, which issues are you running into.

KelvinNYUAD commented 4 days ago

I cannot find a way to get data for many places, especially rural and arid places with locations. So far I have used data from the Ministry of health and Ministry of health and churches as well as many other sources, cleaned them and did a FastLink match but a good chunk remains unmatched. If there is a way to get the centralized data like the one you use in 2022 I can use the same data for 2017 and 2013 as polling stations increase overtime.

akhapwoyaco commented 4 days ago

Are you okay with geodata of admin levels? Seems the issue is polling stations

KelvinNYUAD commented 4 days ago

Yes the admin levels looks great. The source I was using had some errors when it came to some shapefiles in the ward level

akhapwoyaco commented 4 days ago

I think the issue may be with polling stations, right?

KelvinNYUAD commented 4 days ago

yes absolutely I do not have enough data on polling stations to credibly link them to a geographical location in Kenya

KelvinNYUAD commented 4 days ago

I was hoping to use your data in any format possible or get a method on how you got to obtain it

akhapwoyaco commented 4 days ago

Oooh I get it, there was one way I used to obtain most but not all polling stations, there is this site https://mycandidate-kenya.opencitieslab.org/. So the site requires name of polling, so on supply it provides lon and lat within the html. I got majority there, some manual search, though not all polling stations were found. You can obtain most via scrapping the site in any programming language.

KelvinNYUAD commented 4 days ago

Thanks for this. I am a bit proficient in R but not to the level of scrapping them. Do you have a script I can use to get an idea? Or even python works because I'm learning it.

KelvinNYUAD commented 4 days ago

This conversation has been really helpful so asanti sana.