states-cities icon indicating copy to clipboard operation
states-cities copied to clipboard

Providing a public API for states and cities in Nigeria

Results 9 states-cities issues
Sort by recently updated
recently updated
newest added

It would be nice to have the data in a json file

It would be nice to have the data in a json file

Please I have been trying to access the site, but it is offline

I get 404 everytime i follow the URL, it will make a lot of sense if a project like this online 247. lemme know how I can contribute

The LGAs returned via http://states-and-cities.com/api/v1/state/lagos/lgas have just the LGA Name. Shouldn't there be more information? Also, it's an incomplete list. Lagos state has more local governments than the API returns.

I tried making an AJAX get call to the state endpoint, but got this in console instead - "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource...

I have had to change the get_all_states and get_one_state methods from static methods to module methods. http://googletesting.blogspot.com.ng/2008/12/static-methods-are-death-to-testability.html Let me know what you guys think. :)