So Devs on DCsquare decided to take on another open source project. A simple API that lets you get a list of states, cities and local government areas in Nigeria. We attempted to make the most comprehensive dump of this data as it is not readily available anywhere. It’s in JSON. It’s made for the developer who wants to make a simple drop down list of Nigerian locations for any app in any language. (It’s also not limited to that developer’s use case).
It’s built in Python with Flask using Parse as a data store.
Nice project. Built one too. But looking at a larger scale of this. Planning to add more to it. Anyone interested in another kind of mashape? Please contact me: 08066194746
You REST API keys and application IDs are in your code, are those supposed to be public?
BTW I think this is a nice stuff. I have data for Polygon bounds of states, used in a previous project, I’ll work on adding this to your project once I get my Python game together.
One other thing, I think you should reconsider using hyphen in property names, it makes the properties a bit difficult to use directly with JavaScript.
Nice! consider using plurals for api resource name …v1/states/kaduna over v1/state/kaduna. Where states being a resource should be plural not state (singular). Good job guys
I read all the comments here and much advise coming from those who know things. I am a Python programmer and I code in Flask. One sure thing I consider is the seldom overlooked part of Unicode issues in Python.
You’ve got to work on urllib.unquote(state_name_or_code) in your def get_state(state_name_or_code). While we do not have Tanım in any place in Nigeria, it’s a reality that someone might break it one day.
Hello @nwaomachux Thanks so much for this! About your comments, thing is, this project is open source and you can get involved. Pull and fix it. .You can also join the slack channel and talk to the guys that put this together.