This repo contains some data on the administrative levels of Ghana (Regions, MMDA and Towns) in a sqlite database, csv and json formats. Please note that not all towns are captured in the data and there may be repitions in towns
To install
npm install
For easy download, the csv and json data are provided. To regenerate the data, you can make use of the following commands
- To export all tables into csv and json
node main.js
- To return only a single table, add the table option in the command. For example, if you want to retrieve the list of regions
node main.js --table=regions
- if you want the table in a particular format(csv, json)
node main.js --table=regions --format=csv
To make changes to the sqlite db, you can use any of the available sqlite editors out there. The one that worked well for me was SQLiteStudio
Calling all volunteers to help maintain this repo in the following ways
- Updating information in a timely manner
- adding necessary features to make it more user and dev friendly