Making public data more readable and accessible
2 minutes read
The idea first came to me while building a web portal for the Hunza landslide and the 2010 floods. We had to collect information by hand from official sources and convert it into a digital format before we could put any of it on the web.
Last year I set up CodePakistan on GitHub to tackle this and asked everyone to contribute. I didn't know a group of people were already doing something similar under the same name, so I shut CodePakistan down. No point reinventing the wheel. They focus on apps and code, so I decided to stick to public data. The result is Geography of Pakistan on GitHub, a sister project to the Geography of Pakistan blog.
The first data set is the 1998 population census, available in common formats at http://git.io/pk-census. The official source (census.gov.pk) doesn't publish it in a reusable format, the data is inconsistent, and 1998 is the only census it has. I worked through it in five steps:
- Fetch the data as it is
- Convert it to a reusable format
- Restructure it
- Make it accessible
- Build a real example that uses it
I also made a deck about it and posted progress on social media under #MeraData.
The second data set is district boundaries, also in several formats, at http://git.io/pk-districts.
Neither set is complete. There's missing data and some of it was compiled wrongly. I've logged these problems in the issue tracker of each repository under the Geography of Pakistan hub, and I'd welcome your help with them.
There was still enough data for a working example, so I built a web portal that visualises it interactively. The point of all this is to make the data easier to find, read and reuse.
Visit it at http://pkgeography.github.io/pk-census
This is a first version and I'll update it as I add more data. Have a look and share it with anyone who might use it.