MartinsOnuoha / countriesNowAPI

CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
http://countriesnow.space
MIT License
185 stars 59 forks source link

Inconsistent State suffix: error fetching cities in lagos state #143

Closed johnexzy closed 1 year ago

johnexzy commented 1 year ago

Hi @MartinsOnuoha

I guess i am known for these kinda issues by now😅, saw this one while watching hotjar's recordings,

After reviewing Issue #136 and its fix, we also need to do same with the StateCity by appending "state" to Lagos in model/countriesStateCity.js Line 486046 on the datastore.

More context

api/v0.1/countries/state/cities/q?country=Nigeria&state=kaduna%20state 200 OK api/v0.1/countries/state/cities/q?country=Nigeria&state=niger%20state 200 OK api/v0.1/countries/state/cities/q?country=Nigeria&state=lagos%20state 404 Not Found

MartinsOnuoha commented 1 year ago

Thanks for spotting this out again! ❤️