Skip to content

This API provides needed structured national data for use by developers starting with Nigerian States, LGAs, Wards and Polling Units

License

Notifications You must be signed in to change notification settings

aligorithm/allnigeria-api

Repository files navigation

allnigeria-api

This API aims to provide needed structured national data for use by developers

This API aims to provide needed structured national data for use by developers and other individuals or organisations. For now, data available includes all states, LGAs, Wards and Polling units correctly structured with the hierarchy. Feel free to use or contribute. Data is also provided as .sql or JSON:

JSON download

SQL download

How to use

Consume the api

https://allnigeria-api.herokuapp.com

Setup

  • Run composer install
  • Set DB_DATABASE to the name of your SQLite database file (which should be located in the database directory)
  • Run php artisan migrate:fresh --seed to load the data
  • Run php artisan serve to start the development server

You can download the SQL file here

Contact Info

If you have any other enquiries or you just want to link up, follow me on twitter

About

This API provides needed structured national data for use by developers starting with Nigerian States, LGAs, Wards and Polling Units

Topics

Resources

License

Stars

Watchers

Forks